1 #ifndef _LINUX_TYPES_H
2 #define _LINUX_TYPES_H
3
4 #include <linux/posix_types.h>
5 #include <asm/types.h>
6
7 #ifndef _LINUX_TYPES_DONT_EXPORT
8
9 typedef __kernel_fd_set fd_set;
10 typedef __kernel_dev_t dev_t;
11 typedef __kernel_ino_t ino_t;
12 typedef __kernel_mode_t mode_t;
13 typedef __kernel_nlink_t nlink_t;
14 typedef __kernel_off_t off_t;
15 typedef __kernel_pid_t pid_t;
16 typedef __kernel_uid_t uid_t;
17 typedef __kernel_gid_t gid_t;
18 typedef __kernel_daddr_t daddr_t;
19
20 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
21 typedef __kernel_loff_t loff_t;
22 #endif
23
24
25
26
27
28 #ifndef _SIZE_T
29 #define _SIZE_T
30 typedef __kernel_size_t size_t;
31 #endif
32
33 #ifndef _SSIZE_T
34 #define _SSIZE_T
35 typedef __kernel_ssize_t ssize_t;
36 #endif
37
38 #ifndef _PTRDIFF_T
39 #define _PTRDIFF_T
40 typedef __kernel_ptrdiff_t ptrdiff_t;
41 #endif
42
43 #ifndef _TIME_T
44 #define _TIME_T
45 typedef __kernel_time_t time_t;
46 #endif
47
48 #ifndef _CLOCK_T
49 #define _CLOCK_T
50 typedef __kernel_clock_t clock_t;
51 #endif
52
53 #ifndef _CADDR_T
54 #define _CADDR_T
55 typedef __kernel_caddr_t caddr_t;
56 #endif
57
58
59 typedef unsigned char u_char;
60 typedef unsigned short u_short;
61 typedef unsigned int u_int;
62 typedef unsigned long u_long;
63
64
65 typedef unsigned char unchar;
66 typedef unsigned short ushort;
67 typedef unsigned int uint;
68 typedef unsigned long ulong;
69
70 #endif
71
72
73
74
75
76
77 struct ustat {
78 __kernel_daddr_t f_tfree;
79 __kernel_ino_t f_tinode;
80 char f_fname[6];
81 char f_fpack[6];
82 };
83
84 #endif