1: /* ANSI C namespace clean utility typedefs */ 2: 3: /* This file defines various typedefs needed by the system calls that support 4: the C library. Basically, they're just the POSIX versions with an '_' 5: prepended. This file lives in the `sys' directory so targets can provide 6: their own if desired (or they can put target dependant conditionals here). 7: */ 8: 9: #ifndef _SYS__TYPES_H 10: #define _SYS__TYPES_H 11: 12: typedef long _off_t; 13: __extension__ typedef long long _off64_t; 14: 15: #if defined(__INT_MAX__) && __INT_MAX__ == 2147483647 16: typedef int _ssize_t; 17: #else 18: typedef long _ssize_t; 19: #endif 20: 21: #define __need_wint_t 22: #include <stddef.h> 23: 24: /* Conversion state information. */ 25: typedef struct 26: { 27: int __count; 28: union 29: { 30: wint_t __wch; 31: unsigned char __wchb[4]; 32: } __value; /* Value so far. */ 33: } _mbstate_t; 34: 35: typedef int _flock_t; 36: 37: /* Iconv descriptor type */ 38: typedef void *_iconv_t; 39: 40: #endif /* _SYS__TYPES_H */ 41: