xref: /haiku/headers/posix/sys/types.h (revision 81f5654c124bf46fba0fd251f208e2d88d81e1ce)
1 /*
2  * Distributed under the terms of the OpenBeOS license
3  */
4 #ifndef _SYS_TYPES_H
5 #define _SYS_TYPES_H
6 
7 
8 #include <BeBuild.h>
9 
10 
11 /* BSD compatibility */
12 typedef unsigned long 		u_long;
13 typedef unsigned int 		u_int;
14 typedef unsigned short 		u_short;
15 typedef unsigned char 		u_char;
16 
17 
18 /* sysV compatibility */
19 #ifndef _SUPPORT_DEFS_H
20   typedef unsigned long 	ulong;
21   typedef unsigned short 	ushort;
22   typedef unsigned int 		uint;
23 #endif
24 typedef unsigned char		unchar;
25 
26 
27 typedef long long 			blkcnt_t;
28 typedef int 				blksize_t;
29 typedef long long 			fsblkcnt_t;
30 typedef long long			fsfilcnt_t;
31 typedef long long           off_t;
32 typedef long long           ino_t;
33 typedef int                 cnt_t;
34 typedef long                dev_t;
35 typedef long		        pid_t;
36 
37 typedef unsigned int 		uid_t;
38 typedef unsigned int 		gid_t;
39 typedef unsigned int        mode_t;
40 typedef unsigned int 		umode_t;
41 typedef int                 nlink_t;
42 
43 typedef int          		daddr_t;
44 typedef char *				caddr_t;
45 
46 typedef unsigned long		addr_t;
47 
48 #include <null.h>
49 #include <size_t.h>
50 #include <time.h>
51 
52 #endif
53