1 #ifndef __ASM_GENERIC_POSIX_TYPES_H
2 #define __ASM_GENERIC_POSIX_TYPES_H
4 #include <asm/bitsperlong.h>
6 * This file is generally used by user-level software, so you need to
7 * be a little careful about namespace pollution etc.
9 * First the types that are often defined in different ways across
10 * architectures, so that you can override them.
13 #ifndef __kernel_long_t
14 typedef long __kernel_long_t
;
15 typedef unsigned long __kernel_ulong_t
;
18 #ifndef __kernel_ino_t
19 typedef __kernel_ulong_t __kernel_ino_t
;
22 #ifndef __kernel_mode_t
23 typedef unsigned int __kernel_mode_t
;
26 #ifndef __kernel_pid_t
27 typedef int __kernel_pid_t
;
30 #ifndef __kernel_ipc_pid_t
31 typedef int __kernel_ipc_pid_t
;
34 #ifndef __kernel_uid_t
35 typedef unsigned int __kernel_uid_t
;
36 typedef unsigned int __kernel_gid_t
;
39 #ifndef __kernel_suseconds_t
40 typedef __kernel_long_t __kernel_suseconds_t
;
43 #ifndef __kernel_daddr_t
44 typedef int __kernel_daddr_t
;
47 #ifndef __kernel_uid32_t
48 typedef unsigned int __kernel_uid32_t
;
49 typedef unsigned int __kernel_gid32_t
;
52 #ifndef __kernel_old_uid_t
53 typedef __kernel_uid_t __kernel_old_uid_t
;
54 typedef __kernel_gid_t __kernel_old_gid_t
;
57 #ifndef __kernel_old_dev_t
58 typedef unsigned int __kernel_old_dev_t
;
62 * Most 32 bit architectures use "unsigned int" size_t,
63 * and all 64 bit architectures use "unsigned long" size_t.
65 #ifndef __kernel_size_t
66 #if __BITS_PER_LONG != 64
67 typedef unsigned int __kernel_size_t
;
68 typedef int __kernel_ssize_t
;
69 typedef int __kernel_ptrdiff_t
;
71 typedef __kernel_ulong_t __kernel_size_t
;
72 typedef __kernel_long_t __kernel_ssize_t
;
73 typedef __kernel_long_t __kernel_ptrdiff_t
;
77 #ifndef __kernel_fsid_t
84 * anything below here should be completely generic
86 typedef __kernel_long_t __kernel_off_t
;
87 typedef long long __kernel_loff_t
;
88 typedef __kernel_long_t __kernel_time_t
;
89 typedef __kernel_long_t __kernel_clock_t
;
90 typedef int __kernel_timer_t
;
91 typedef int __kernel_clockid_t
;
92 typedef char * __kernel_caddr_t
;
93 typedef unsigned short __kernel_uid16_t
;
94 typedef unsigned short __kernel_gid16_t
;
96 #endif /* __ASM_GENERIC_POSIX_TYPES_H */