1 #ifndef _SYS_TYPES_H 2 #define _SYS_TYPES_H 3 #ifdef __cplusplus 4 extern "C" { 5 #endif 6 7 #include <features.h> 8 9 #define __NEED_ino_t 10 #define __NEED_dev_t 11 #define __NEED_uid_t 12 #define __NEED_gid_t 13 #define __NEED_mode_t 14 #define __NEED_nlink_t 15 #define __NEED_off_t 16 #define __NEED_pid_t 17 #define __NEED_size_t 18 #define __NEED_ssize_t 19 #define __NEED_time_t 20 #define __NEED_timer_t 21 #define __NEED_clockid_t 22 23 #define __NEED_blkcnt_t 24 #define __NEED_fsblkcnt_t 25 #define __NEED_fsfilcnt_t 26 27 #define __NEED_id_t 28 #define __NEED_key_t 29 #define __NEED_clock_t 30 #define __NEED_suseconds_t 31 #define __NEED_blksize_t 32 33 #define __NEED_pthread_t 34 #define __NEED_pthread_attr_t 35 #define __NEED_pthread_mutexattr_t 36 #define __NEED_pthread_condattr_t 37 #define __NEED_pthread_rwlockattr_t 38 #define __NEED_pthread_barrierattr_t 39 #define __NEED_pthread_mutex_t 40 #define __NEED_pthread_cond_t 41 #define __NEED_pthread_rwlock_t 42 #define __NEED_pthread_barrier_t 43 #define __NEED_pthread_spinlock_t 44 #define __NEED_pthread_key_t 45 #define __NEED_pthread_once_t 46 #define __NEED_useconds_t 47 48 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 49 #define __NEED_int8_t 50 #define __NEED_int16_t 51 #define __NEED_int32_t 52 #define __NEED_int64_t 53 #define __NEED_u_int64_t 54 #define __NEED_register_t 55 #endif 56 57 #include <bits/alltypes.h> 58 59 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 60 typedef unsigned char u_int8_t; 61 typedef unsigned short u_int16_t; 62 typedef unsigned u_int32_t; 63 typedef char *caddr_t; 64 typedef unsigned char u_char; 65 typedef unsigned short u_short, ushort; 66 typedef unsigned u_int, uint; 67 typedef unsigned long u_long, ulong; 68 typedef long long quad_t; 69 typedef unsigned long long u_quad_t; 70 #include <endian.h> 71 #include <sys/select.h> 72 #endif 73 74 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) 75 #define blkcnt64_t blkcnt_t 76 #define fsblkcnt64_t fsblkcnt_t 77 #define fsfilcnt64_t fsfilcnt_t 78 #define ino64_t ino_t 79 #define off64_t off_t 80 #endif 81 82 #ifdef __cplusplus 83 } 84 #endif 85 #endif 86