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_X86_STAT_H 20 #define _ASM_X86_STAT_H 21 #define STAT_HAVE_NSEC 1 22 #ifdef __i386__ 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 struct stat { 25 unsigned long st_dev; 26 unsigned long st_ino; 27 unsigned short st_mode; 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 unsigned short st_nlink; 30 unsigned short st_uid; 31 unsigned short st_gid; 32 unsigned long st_rdev; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 unsigned long st_size; 35 unsigned long st_blksize; 36 unsigned long st_blocks; 37 unsigned long st_atime; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 unsigned long st_atime_nsec; 40 unsigned long st_mtime; 41 unsigned long st_mtime_nsec; 42 unsigned long st_ctime; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 unsigned long st_ctime_nsec; 45 unsigned long __unused4; 46 unsigned long __unused5; 47 }; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define INIT_STRUCT_STAT_PADDING(st) do { st.__unused4 = 0; st.__unused5 = 0; } while (0) 50 #define STAT64_HAS_BROKEN_ST_INO 1 51 struct stat64 { 52 unsigned long long st_dev; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 unsigned char __pad0[4]; 55 unsigned long __st_ino; 56 unsigned int st_mode; 57 unsigned int st_nlink; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 unsigned long st_uid; 60 unsigned long st_gid; 61 unsigned long long st_rdev; 62 unsigned char __pad3[4]; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 long long st_size; 65 unsigned long st_blksize; 66 unsigned long long st_blocks; 67 unsigned long st_atime; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 unsigned long st_atime_nsec; 70 unsigned long st_mtime; 71 unsigned int st_mtime_nsec; 72 unsigned long st_ctime; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 unsigned long st_ctime_nsec; 75 unsigned long long st_ino; 76 }; 77 #define INIT_STRUCT_STAT64_PADDING(st) do { memset(&st.__pad0, 0, sizeof(st.__pad0)); memset(&st.__pad3, 0, sizeof(st.__pad3)); } while (0) 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #else 80 struct stat { 81 unsigned long st_dev; 82 unsigned long st_ino; 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 unsigned long st_nlink; 85 unsigned int st_mode; 86 unsigned int st_uid; 87 unsigned int st_gid; 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 unsigned int __pad0; 90 unsigned long st_rdev; 91 long st_size; 92 long st_blksize; 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 long st_blocks; 95 unsigned long st_atime; 96 unsigned long st_atime_nsec; 97 unsigned long st_mtime; 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 unsigned long st_mtime_nsec; 100 unsigned long st_ctime; 101 unsigned long st_ctime_nsec; 102 long __linux_unused[3]; 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 }; 105 #define INIT_STRUCT_STAT_PADDING(st) do { st.__pad0 = 0; st.__linux_unused[0] = 0; st.__linux_unused[1] = 0; st.__linux_unused[2] = 0; } while (0) 106 #endif 107 struct __old_kernel_stat { 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 unsigned short st_dev; 110 unsigned short st_ino; 111 unsigned short st_mode; 112 unsigned short st_nlink; 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 unsigned short st_uid; 115 unsigned short st_gid; 116 unsigned short st_rdev; 117 #ifdef __i386__ 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 unsigned long st_size; 120 unsigned long st_atime; 121 unsigned long st_mtime; 122 unsigned long st_ctime; 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 #else 125 unsigned int st_size; 126 unsigned int st_atime; 127 unsigned int st_mtime; 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 unsigned int st_ctime; 130 #endif 131 }; 132 #endif 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134