xref: /haiku/headers/posix/sys/types.h (revision b671e9bbdbd10268a042b4f4cc4317ccd03d105e)
1 /*
2  * Copyright 2002-2006, 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 <BeBuild.h>
10 
11 
12 /* BSD compatibility */
13 typedef unsigned long 		u_long;
14 typedef unsigned int 		u_int;
15 typedef unsigned short 		u_short;
16 typedef unsigned char 		u_char;
17 
18 
19 /* sysV compatibility */
20 #ifndef _SUPPORT_DEFS_H
21   typedef unsigned long 	ulong;
22   typedef unsigned short 	ushort;
23   typedef unsigned int 		uint;
24 #endif
25 typedef unsigned char		unchar;
26 
27 
28 typedef long long 			blkcnt_t;
29 typedef int 				blksize_t;
30 typedef long long 			fsblkcnt_t;
31 typedef long long			fsfilcnt_t;
32 typedef long long           off_t;
33 typedef long long           ino_t;
34 typedef int                 cnt_t;
35 typedef long                dev_t;
36 typedef long		        pid_t;
37 typedef long				id_t;
38 
39 typedef unsigned int 		uid_t;
40 typedef unsigned int 		gid_t;
41 typedef unsigned int        mode_t;
42 typedef unsigned int 		umode_t;
43 typedef int                 nlink_t;
44 
45 typedef int          		daddr_t;
46 typedef char *				caddr_t;
47 
48 typedef unsigned long		addr_t;
49 typedef long 				key_t;
50 
51 #include <null.h>
52 #include <size_t.h>
53 #include <time.h>
54 
55 #endif
56