12 typedef ptrdiff_t ssize_t;
14 #include <linux/posix_types.h>
15 #include <asm/types.h>
17 /* Keeps linux/types.h from getting included elsewhere */
18 #define _LINUX_TYPES_H
20 typedef __kernel_fd_set fd_set;
21 typedef uint32_t dev_t;
22 typedef __kernel_ino_t ino_t;
23 typedef __kernel_mode_t mode_t;
24 typedef __kernel_nlink_t nlink_t;
25 typedef __kernel_off_t off_t; /* Should become __kernel_loff_t... */
26 typedef __kernel_pid_t pid_t;
27 typedef __kernel_daddr_t daddr_t;
28 typedef __kernel_key_t key_t;
29 typedef __kernel_suseconds_t suseconds_t;
30 typedef __kernel_timer_t timer_t;
32 typedef __kernel_uid32_t uid_t;
33 typedef __kernel_gid32_t gid_t;
35 typedef __kernel_loff_t loff_t;
38 * The following typedefs are also protected by individual ifdefs for
43 typedef __kernel_size_t size_t;
48 typedef __kernel_ssize_t ssize_t;
53 typedef __kernel_ptrdiff_t ptrdiff_t;
58 typedef __kernel_time_t time_t;
63 typedef __kernel_clock_t clock_t;
68 typedef __kernel_caddr_t caddr_t;
72 typedef unsigned char u_char;
73 typedef unsigned short u_short;
74 typedef unsigned int u_int;
75 typedef unsigned long u_long;
78 typedef unsigned char unchar;
79 typedef unsigned short ushort;
80 typedef unsigned int uint;
81 typedef unsigned long ulong;
84 typedef uint8_t u_int8_t;
85 typedef uint16_t u_int16_t;
86 typedef uint32_t u_int32_t;
87 typedef uint64_t u_int64_t;
90 * transition to 64-bit sector_t, possibly making it an option...
92 #undef BLK_64BIT_SECTOR
94 #ifdef BLK_64BIT_SECTOR
97 typedef unsigned long sector_t;
101 * The type of an index into the pagecache. Use a #define so asm/types.h
105 #define pgoff_t unsigned long
109 * Below are truly Linux-specific types that should never collide with
110 * any application/library that wants linux/types.h.
114 __kernel_daddr_t f_tfree;
115 __kernel_ino_t f_tinode;
121 * Some apps want this in <sys/types.h>
123 #include <sys/sysmacros.h>