1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef __ASM_GENERIC_POSIX_TYPES_H 20 #define __ASM_GENERIC_POSIX_TYPES_H 21 #include <asm/bitsperlong.h> 22 #ifndef __kernel_long_t 23 typedef long __kernel_long_t; 24 typedef unsigned long __kernel_ulong_t; 25 #endif 26 #ifndef __kernel_ino_t 27 typedef __kernel_ulong_t __kernel_ino_t; 28 #endif 29 #ifndef __kernel_mode_t 30 typedef unsigned int __kernel_mode_t; 31 #endif 32 #ifndef __kernel_pid_t 33 typedef int __kernel_pid_t; 34 #endif 35 #ifndef __kernel_ipc_pid_t 36 typedef int __kernel_ipc_pid_t; 37 #endif 38 #ifndef __kernel_uid_t 39 typedef unsigned int __kernel_uid_t; 40 typedef unsigned int __kernel_gid_t; 41 #endif 42 #ifndef __kernel_suseconds_t 43 typedef __kernel_long_t __kernel_suseconds_t; 44 #endif 45 #ifndef __kernel_daddr_t 46 typedef int __kernel_daddr_t; 47 #endif 48 #ifndef __kernel_uid32_t 49 typedef unsigned int __kernel_uid32_t; 50 typedef unsigned int __kernel_gid32_t; 51 #endif 52 #ifndef __kernel_old_uid_t 53 typedef __kernel_uid_t __kernel_old_uid_t; 54 typedef __kernel_gid_t __kernel_old_gid_t; 55 #endif 56 #ifndef __kernel_old_dev_t 57 typedef unsigned int __kernel_old_dev_t; 58 #endif 59 #ifndef __kernel_size_t 60 #if __BITS_PER_LONG != 64 61 typedef unsigned int __kernel_size_t; 62 typedef int __kernel_ssize_t; 63 typedef int __kernel_ptrdiff_t; 64 #else 65 typedef __kernel_ulong_t __kernel_size_t; 66 typedef __kernel_long_t __kernel_ssize_t; 67 typedef __kernel_long_t __kernel_ptrdiff_t; 68 #endif 69 #endif 70 #ifndef __kernel_fsid_t 71 typedef struct { 72 int val[2]; 73 } __kernel_fsid_t; 74 #endif 75 typedef __kernel_long_t __kernel_off_t; 76 typedef long long __kernel_loff_t; 77 typedef __kernel_long_t __kernel_time_t; 78 typedef long long __kernel_time64_t; 79 typedef __kernel_long_t __kernel_clock_t; 80 typedef int __kernel_timer_t; 81 typedef int __kernel_clockid_t; 82 typedef char * __kernel_caddr_t; 83 typedef unsigned short __kernel_uid16_t; 84 typedef unsigned short __kernel_gid16_t; 85 #endif 86