1 #ifndef __ASM_GENERIC_POSIX_TYPES_H 2 #define __ASM_GENERIC_POSIX_TYPES_H 3 4 #include <asm/bitsperlong.h> 5 /* 6 * This file is generally used by user-level software, so you need to 7 * be a little careful about namespace pollution etc. 8 * 9 * First the types that are often defined in different ways across 10 * architectures, so that you can override them. 11 */ 12 13 #ifndef __kernel_long_t 14 typedef long __kernel_long_t; 15 typedef unsigned long __kernel_ulong_t; 16 #endif 17 18 #ifndef __kernel_ino_t 19 typedef __kernel_ulong_t __kernel_ino_t; 20 #endif 21 22 #ifndef __kernel_mode_t 23 typedef unsigned int __kernel_mode_t; 24 #endif 25 26 #ifndef __kernel_nlink_t 27 typedef __kernel_ulong_t __kernel_nlink_t; 28 #endif 29 30 #ifndef __kernel_pid_t 31 typedef int __kernel_pid_t; 32 #endif 33 34 #ifndef __kernel_ipc_pid_t 35 typedef int __kernel_ipc_pid_t; 36 #endif 37 38 #ifndef __kernel_uid_t 39 typedef unsigned int __kernel_uid_t; 40 typedef unsigned int __kernel_gid_t; 41 #endif 42 43 #ifndef __kernel_suseconds_t 44 typedef __kernel_long_t __kernel_suseconds_t; 45 #endif 46 47 #ifndef __kernel_daddr_t 48 typedef int __kernel_daddr_t; 49 #endif 50 51 #ifndef __kernel_uid32_t 52 typedef unsigned int __kernel_uid32_t; 53 typedef unsigned int __kernel_gid32_t; 54 #endif 55 56 #ifndef __kernel_old_uid_t 57 typedef __kernel_uid_t __kernel_old_uid_t; 58 typedef __kernel_gid_t __kernel_old_gid_t; 59 #endif 60 61 #ifndef __kernel_old_dev_t 62 typedef unsigned int __kernel_old_dev_t; 63 #endif 64 65 /* 66 * Most 32 bit architectures use "unsigned int" size_t, 67 * and all 64 bit architectures use "unsigned long" size_t. 68 */ 69 #ifndef __kernel_size_t 70 #if __BITS_PER_LONG != 64 71 typedef unsigned int __kernel_size_t; 72 typedef int __kernel_ssize_t; 73 typedef int __kernel_ptrdiff_t; 74 #else 75 typedef __kernel_ulong_t __kernel_size_t; 76 typedef __kernel_long_t __kernel_ssize_t; 77 typedef __kernel_long_t __kernel_ptrdiff_t; 78 #endif 79 #endif 80 81 #ifndef __kernel_fsid_t 82 typedef struct { 83 int val[2]; 84 } __kernel_fsid_t; 85 #endif 86 87 /* 88 * anything below here should be completely generic 89 */ 90 typedef __kernel_long_t __kernel_off_t; 91 typedef long long __kernel_loff_t; 92 typedef __kernel_long_t __kernel_time_t; 93 typedef __kernel_long_t __kernel_clock_t; 94 typedef int __kernel_timer_t; 95 typedef int __kernel_clockid_t; 96 typedef char * __kernel_caddr_t; 97 typedef unsigned short __kernel_uid16_t; 98 typedef unsigned short __kernel_gid16_t; 99 100 #endif /* __ASM_GENERIC_POSIX_TYPES_H */ 101