00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef _SYS_TYPES_H_
00040 #define _SYS_TYPES_H_
00041 #ifdef __ARMCC__
00042
00043 #pragma diag_remark 1296
00044 #endif
00045
00046 #include <sys/cdefs.h>
00047
00048
00049 #ifndef __SYMBIAN32__
00050 #include <machine/endian.h>
00051 #endif
00052
00053 #include <sys/_types.h>
00054
00055 #ifndef __SYMBIAN32__
00056 #include <sys/_pthreadtypes.h>
00057 #endif
00058
00059 #if __BSD_VISIBLE
00060 typedef unsigned char u_char;
00061 typedef unsigned short u_short;
00062 typedef unsigned int u_int;
00063 typedef unsigned long u_long;
00064 #ifndef _KERNEL
00065 typedef unsigned short ushort;
00066 typedef unsigned int uint;
00067 #endif
00068 #endif
00069
00070
00071
00072
00073 #ifndef _INT8_T_DECLARED
00074 typedef __int8_t int8_t;
00075 #define _INT8_T_DECLARED
00076 #endif
00077
00078 #ifndef _INT16_T_DECLARED
00079 typedef __int16_t int16_t;
00080 #define _INT16_T_DECLARED
00081 #endif
00082
00083 #ifndef _INT32_T_DECLARED
00084 typedef __int32_t int32_t;
00085 #define _INT32_T_DECLARED
00086 #endif
00087
00088 #ifndef _INT64_T_DECLARED
00089 typedef __int64_t int64_t;
00090 #define _INT64_T_DECLARED
00091 #endif
00092
00093 #ifndef _UINT8_T_DECLARED
00094 typedef __uint8_t uint8_t;
00095 #define _UINT8_T_DECLARED
00096 #endif
00097
00098 #ifndef _UINT16_T_DECLARED
00099 typedef __uint16_t uint16_t;
00100 #define _UINT16_T_DECLARED
00101 #endif
00102
00103 #ifndef _UINT32_T_DECLARED
00104 typedef __uint32_t uint32_t;
00105 #define _UINT32_T_DECLARED
00106 #endif
00107
00108 #ifndef _UINT64_T_DECLARED
00109 typedef __uint64_t uint64_t;
00110 #define _UINT64_T_DECLARED
00111 #endif
00112
00113 #ifndef _INTPTR_T_DECLARED
00114 typedef __intptr_t intptr_t;
00115 typedef __uintptr_t uintptr_t;
00116 #define _INTPTR_T_DECLARED
00117 #endif
00118
00119 typedef __uint8_t u_int8_t;
00120 typedef __uint16_t u_int16_t;
00121 typedef __uint32_t u_int32_t;
00122 typedef __uint64_t u_int64_t;
00123
00124 typedef __uint64_t u_quad_t;
00125 typedef __int64_t quad_t;
00126 typedef quad_t * qaddr_t;
00127
00128 typedef char * caddr_t;
00129 typedef __const char * c_caddr_t;
00130 typedef __volatile char *v_caddr_t;
00131
00132 #ifndef _BLKSIZE_T_DECLARED
00133 typedef __blksize_t blksize_t;
00134 #define _BLKSIZE_T_DECLARED
00135 #endif
00136
00137 #ifndef _BLKCNT_T_DECLARED
00138 typedef __blkcnt_t blkcnt_t;
00139 #define _BLKCNT_T_DECLARED
00140 #endif
00141
00142 #ifndef _CLOCK_T_DECLARED
00143 typedef __clock_t clock_t;
00144 #define _CLOCK_T_DECLARED
00145 #endif
00146
00147 #ifndef _CLOCKID_T_DECLARED
00148 typedef __clockid_t clockid_t;
00149 #define _CLOCKID_T_DECLARED
00150 #endif
00151
00152 typedef __critical_t critical_t;
00153 typedef __int64_t daddr_t;
00154
00155 #ifndef _DEV_T_DECLARED
00156 typedef __dev_t dev_t;
00157 #define _DEV_T_DECLARED
00158 #endif
00159
00160 #ifndef _FFLAGS_T_DECLARED
00161 typedef __fflags_t fflags_t;
00162 #define _FFLAGS_T_DECLARED
00163 #endif
00164
00165 typedef __fixpt_t fixpt_t;
00166
00167 #ifndef _FSBLKCNT_T_DECLARED
00168 typedef __fsblkcnt_t fsblkcnt_t;
00169 typedef __fsfilcnt_t fsfilcnt_t;
00170 #define _FSBLKCNT_T_DECLARED
00171 #endif
00172
00173 #ifndef _GID_T_DECLARED
00174 typedef __gid_t gid_t;
00175 #define _GID_T_DECLARED
00176 #endif
00177
00178 #ifndef _IN_ADDR_T_DECLARED
00179 typedef __uint32_t in_addr_t;
00180 #define _IN_ADDR_T_DECLARED
00181 #endif
00182
00183 #ifndef _IN_PORT_T_DECLARED
00184 typedef __uint16_t in_port_t;
00185 #define _IN_PORT_T_DECLARED
00186 #endif
00187
00188 #ifndef _ID_T_DECLARED
00189 typedef __id_t id_t;
00190 #define _ID_T_DECLARED
00191 #endif
00192
00193 #ifndef _INO_T_DECLARED
00194 typedef __ino_t ino_t;
00195 #define _INO_T_DECLARED
00196 #endif
00197
00198 #ifndef _KEY_T_DECLARED
00199 typedef __key_t key_t;
00200 #define _KEY_T_DECLARED
00201 #endif
00202
00203 #ifndef _LWPID_T_DECLARED
00204 typedef __lwpid_t lwpid_t;
00205 #define _LWPID_T_DECLARED
00206 #endif
00207
00208 #ifndef _MODE_T_DECLARED
00209 typedef __mode_t mode_t;
00210 #define _MODE_T_DECLARED
00211 #endif
00212
00213 #ifndef _NLINK_T_DECLARED
00214 typedef __nlink_t nlink_t;
00215 #define _NLINK_T_DECLARED
00216 #endif
00217
00218 #ifndef _OFF_T_DECLARED
00219 typedef __off_t off_t;
00220 #define _OFF_T_DECLARED
00221 #endif
00222
00223 #ifndef _PID_T_DECLARED
00224 typedef __pid_t pid_t;
00225 #define _PID_T_DECLARED
00226 #endif
00227
00228 typedef __register_t register_t;
00229
00230 #ifndef _RLIM_T_DECLARED
00231 typedef __rlim_t rlim_t;
00232 #define _RLIM_T_DECLARED
00233 #endif
00234
00235 typedef __segsz_t segsz_t;
00236
00237 #ifndef _SIZE_T_DECLARED
00238 typedef __size_t size_t;
00239 #define _SIZE_T_DECLARED
00240 #endif
00241
00242 #ifndef _SSIZE_T_DECLARED
00243 typedef __ssize_t ssize_t;
00244 #define _SSIZE_T_DECLARED
00245 #endif
00246
00247 #ifndef _SUSECONDS_T_DECLARED
00248 typedef __suseconds_t suseconds_t;
00249 #define _SUSECONDS_T_DECLARED
00250 #endif
00251
00252 #ifndef _TIME_T_DECLARED
00253 typedef __time_t time_t;
00254 #define _TIME_T_DECLARED
00255 #endif
00256
00257 #ifndef _TIMER_T_DECLARED
00258 typedef __timer_t timer_t;
00259 #define _TIMER_T_DECLARED
00260 #endif
00261
00262 typedef __u_register_t u_register_t;
00263
00264 #ifndef _UID_T_DECLARED
00265 typedef __uid_t uid_t;
00266 #define _UID_T_DECLARED
00267 #endif
00268
00269 #ifndef _USECONDS_T_DECLARED
00270 typedef __useconds_t useconds_t;
00271 #define _USECONDS_T_DECLARED
00272 #endif
00273
00274 typedef __vm_offset_t vm_offset_t;
00275 typedef __vm_ooffset_t vm_ooffset_t;
00276 typedef __vm_paddr_t vm_paddr_t;
00277 typedef __vm_pindex_t vm_pindex_t;
00278 typedef __vm_size_t vm_size_t;
00279
00280 #ifdef _KERNEL
00281 typedef int boolean_t;
00282 typedef __cpumask_t cpumask_t;
00283 typedef __intfptr_t intfptr_t;
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293 typedef __uint32_t intrmask_t;
00294
00295 typedef __uintfptr_t uintfptr_t;
00296 typedef __uint64_t uoff_t;
00297 typedef struct vm_page *vm_page_t;
00298
00299 #define offsetof(type, field) __offsetof(type, field)
00300
00301 #endif
00302
00303
00304
00305
00306
00307 #if __BSD_VISIBLE
00308
00309
00310
00311 #ifndef _KERNEL
00312
00313
00314
00315
00316
00317 #define major(x) ((int)(((u_int)(x) >> 8)&0xff))
00318 #define minor(x) ((int)((x)&0xffff00ff))
00319 #endif
00320
00321 #define makedev(x,y) ((dev_t)(((x) << 8) | (y)))
00322
00323
00324
00325
00326
00327
00328 #ifndef _KERNEL
00329 __BEGIN_DECLS
00330 #ifndef _FTRUNCATE_DECLARED
00331 #define _FTRUNCATE_DECLARED
00332 IMPORT_C int ftruncate(int, off_t);
00333 #endif
00334 #ifndef _LSEEK_DECLARED
00335 #define _LSEEK_DECLARED
00336 IMPORT_C off_t lseek(int, off_t, int);
00337 #endif
00338 #ifndef _MMAP_DECLARED
00339 #define _MMAP_DECLARED
00340 IMPORT_C void * mmap(void *, size_t, int, int, int, off_t);
00341 #endif
00342 #ifndef _TRUNCATE_DECLARED
00343 #define _TRUNCATE_DECLARED
00344 IMPORT_C int truncate(const char *, off_t);
00345 #endif
00346 __END_DECLS
00347 #endif
00348
00349 #endif
00350
00351 #endif