1 /* 2 * Copyright 2002-2010, Haiku Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _SYS_TYPES_H 6 #define _SYS_TYPES_H 7 8 9 #include <config/types.h> 10 11 #include <BeBuild.h> 12 13 14 /* BSD compatibility */ 15 typedef unsigned long u_long; 16 typedef unsigned int u_int; 17 typedef unsigned short u_short; 18 typedef unsigned char u_char; 19 20 21 /* sysV compatibility */ 22 typedef unsigned long ulong; 23 typedef unsigned short ushort; 24 typedef unsigned int uint; 25 typedef unsigned char unchar; 26 27 28 typedef __haiku_int64 blkcnt_t; 29 typedef __haiku_std_int32 blksize_t; 30 typedef __haiku_int64 fsblkcnt_t; 31 typedef __haiku_int64 fsfilcnt_t; 32 typedef __haiku_int64 off_t; 33 typedef __haiku_int64 ino_t; 34 typedef __haiku_std_int32 cnt_t; 35 typedef __haiku_int32 dev_t; 36 typedef __haiku_int32 pid_t; 37 typedef __haiku_int32 id_t; 38 39 typedef __haiku_std_uint32 uid_t; 40 typedef __haiku_std_uint32 gid_t; 41 typedef __haiku_std_uint32 mode_t; 42 typedef __haiku_std_uint32 umode_t; 43 typedef __haiku_std_int32 nlink_t; 44 45 #ifdef __HAIKU_BEOS_COMPATIBLE_TYPES 46 typedef int daddr_t; /* disk address */ 47 #else 48 typedef off_t daddr_t; /* disk address */ 49 #endif 50 typedef char* caddr_t; 51 52 typedef __haiku_addr_t addr_t; 53 typedef __haiku_int32 key_t; 54 55 #include <null.h> 56 #include <size_t.h> 57 #include <time.h> 58 59 #endif 60