summaryrefslogtreecommitdiffstats
path: root/src/include/sys/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/sys/types.h')
-rw-r--r--src/include/sys/types.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/include/sys/types.h b/src/include/sys/types.h
new file mode 100644
index 0000000..557aa31
--- /dev/null
+++ b/src/include/sys/types.h
@@ -0,0 +1,46 @@
1#ifndef _SYS_TYPES_H
2#define _SYS_TYPES_H
3
4#ifndef _SIZE_T
5#define _SIZE_T
6typedef unsigned int size_t;
7#endif
8
9#ifndef _TIME_T
10#define _TIME_T
11typedef long time_t;
12#endif
13
14#ifndef _PTRDIFF_T
15#define _PTRDIFF_T
16typedef long ptrdiff_t;
17#endif
18
19#ifndef NULL
20#define NULL ((void *) 0)
21#endif
22
23typedef int pid_t;
24typedef unsigned short uid_t;
25typedef unsigned char gid_t;
26typedef unsigned short dev_t;
27typedef unsigned short ino_t;
28typedef unsigned short mode_t;
29typedef unsigned short umode_t;
30typedef unsigned char nlink_t;
31typedef int daddr_t;
32typedef long off_t;
33typedef unsigned char u_char;
34typedef unsigned short ushort;
35
36typedef struct { int quot,rem; } div_t;
37typedef struct { long quot,rem; } ldiv_t;
38
39struct ustat {
40 daddr_t f_tfree;
41 ino_t f_tinode;
42 char f_fname[6];
43 char f_fpack[6];
44};
45
46#endif