4 #include <linux/posix_types.h>
7 #ifndef __KERNEL_STRICT_NAMES
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 typedef __kernel_key_t key_t
;
20 typedef __kernel_suseconds_t suseconds_t
;
22 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
23 typedef __kernel_loff_t loff_t
;
27 * The following typedefs are also protected by individual ifdefs for
32 typedef __kernel_size_t
size_t;
37 typedef __kernel_ssize_t ssize_t
;
42 typedef __kernel_ptrdiff_t
ptrdiff_t;
47 typedef __kernel_time_t
time_t;
52 typedef __kernel_clock_t
clock_t;
57 typedef __kernel_caddr_t caddr_t
;
61 typedef unsigned char u_char
;
62 typedef unsigned short u_short
;
63 typedef unsigned int u_int
;
64 typedef unsigned long u_long
;
67 typedef unsigned char unchar
;
68 typedef unsigned short ushort
;
69 typedef unsigned int uint
;
70 typedef unsigned long ulong
;
72 #ifndef __BIT_TYPES_DEFINED__
73 #define __BIT_TYPES_DEFINED__
75 typedef __u8 u_int8_t
;
77 typedef __u16 u_int16_t
;
78 typedef __s16
int16_t;
79 typedef __u32 u_int32_t
;
80 typedef __s32
int32_t;
82 #endif /* !(__BIT_TYPES_DEFINED__) */
85 typedef __u16
uint16_t;
86 typedef __u32
uint32_t;
88 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
89 typedef __u64
uint64_t;
90 typedef __u64 u_int64_t
;
91 typedef __s64
int64_t;
94 #endif /* __KERNEL_STRICT_NAMES */
97 * Below are truly Linux-specific types that should never collide with
98 * any application/library that wants linux/types.h.
102 __kernel_daddr_t f_tfree
;
103 __kernel_ino_t f_tinode
;
108 #endif /* _LINUX_TYPES_H */