xref: /haiku/headers/posix/sys/types.h (revision 93aeb8c3bc3f13cb1f282e3e749258a23790d947)
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 typedef long				id_t;
37 
38 typedef unsigned int 		uid_t;
39 typedef unsigned int 		gid_t;
40 typedef unsigned int        mode_t;
41 typedef unsigned int 		umode_t;
42 typedef int                 nlink_t;
43 
44 typedef int          		daddr_t;
45 typedef char *				caddr_t;
46 
47 typedef unsigned long		addr_t;
48 
49 #include <null.h>
50 #include <size_t.h>
51 #include <time.h>
52 
53 #endif
54