1#define __LITTLE_ENDIAN 1234 2#define __BIG_ENDIAN 4321 3#define __USE_TIME_BITS64 1 4 5TYPEDEF unsigned _Addr size_t; 6TYPEDEF unsigned _Addr uintptr_t; 7TYPEDEF _Addr ptrdiff_t; 8TYPEDEF _Addr ssize_t; 9TYPEDEF _Addr intptr_t; 10TYPEDEF _Addr regoff_t; 11TYPEDEF _Reg register_t; 12TYPEDEF _Int64 time_t; 13TYPEDEF _Int64 suseconds_t; 14 15TYPEDEF signed char int8_t; 16TYPEDEF signed short int16_t; 17TYPEDEF signed int int32_t; 18TYPEDEF signed _Int64 int64_t; 19TYPEDEF signed _Int64 intmax_t; 20TYPEDEF unsigned char uint8_t; 21TYPEDEF unsigned short uint16_t; 22TYPEDEF unsigned int uint32_t; 23TYPEDEF unsigned _Int64 uint64_t; 24TYPEDEF unsigned _Int64 u_int64_t; 25TYPEDEF unsigned _Int64 uintmax_t; 26 27TYPEDEF unsigned mode_t; 28TYPEDEF unsigned _Reg nlink_t; 29TYPEDEF _Int64 off_t; 30TYPEDEF unsigned _Int64 ino_t; 31TYPEDEF unsigned _Int64 dev_t; 32TYPEDEF long blksize_t; 33TYPEDEF _Int64 blkcnt_t; 34TYPEDEF unsigned _Int64 fsblkcnt_t; 35TYPEDEF unsigned _Int64 fsfilcnt_t; 36 37TYPEDEF unsigned wint_t; 38TYPEDEF unsigned long wctype_t; 39 40TYPEDEF void * timer_t; 41TYPEDEF int clockid_t; 42TYPEDEF long clock_t; 43STRUCT timeval { time_t tv_sec; suseconds_t tv_usec; }; 44STRUCT timespec { time_t tv_sec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER==4321); long tv_nsec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER!=4321); }; 45 46TYPEDEF int pid_t; 47TYPEDEF unsigned id_t; 48TYPEDEF unsigned uid_t; 49TYPEDEF unsigned gid_t; 50TYPEDEF int key_t; 51TYPEDEF unsigned useconds_t; 52 53#ifdef __cplusplus 54TYPEDEF unsigned long pthread_t; 55#else 56TYPEDEF struct __pthread * pthread_t; 57#endif 58TYPEDEF int pthread_once_t; 59TYPEDEF unsigned pthread_key_t; 60TYPEDEF int pthread_spinlock_t; 61TYPEDEF struct { unsigned __attr; } pthread_mutexattr_t; 62TYPEDEF struct { unsigned __attr; } pthread_condattr_t; 63TYPEDEF struct { unsigned __attr; } pthread_barrierattr_t; 64TYPEDEF struct { unsigned __attr[2]; } pthread_rwlockattr_t; 65 66STRUCT _IO_FILE { char __x; }; 67TYPEDEF struct _IO_FILE FILE; 68 69TYPEDEF __builtin_va_list va_list; 70TYPEDEF __builtin_va_list __isoc_va_list; 71 72TYPEDEF struct __mbstate_t { unsigned __opaque1, __opaque2; } mbstate_t; 73 74TYPEDEF struct __locale_struct * locale_t; 75 76TYPEDEF struct __sigset_t { unsigned long __bits[128/sizeof(long)]; } sigset_t; 77 78STRUCT iovec { void *iov_base; size_t iov_len; }; 79 80TYPEDEF unsigned socklen_t; 81TYPEDEF unsigned short sa_family_t; 82 83TYPEDEF struct { union { int __i[sizeof(long)==8?14:9]; volatile int __vi[sizeof(long)==8?14:9]; unsigned long __s[sizeof(long)==8?7:9]; } __u; } pthread_attr_t; 84TYPEDEF struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatile void *volatile __p[sizeof(long)==8?5:6]; } __u; } pthread_mutex_t; 85TYPEDEF struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatile void *volatile __p[sizeof(long)==8?5:6]; } __u; } mtx_t; 86TYPEDEF struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)]; } __u; } pthread_cond_t; 87TYPEDEF struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)]; } __u; } cnd_t; 88TYPEDEF struct { union { int __i[sizeof(long)==8?14:8]; volatile int __vi[sizeof(long)==8?14:8]; void *__p[sizeof(long)==8?7:8]; } __u; } pthread_rwlock_t; 89TYPEDEF struct { union { int __i[sizeof(long)==8?8:5]; volatile int __vi[sizeof(long)==8?8:5]; void *__p[sizeof(long)==8?4:5]; } __u; } pthread_barrier_t; 90 91#undef _Addr 92#undef _Int64 93#undef _Reg 94