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 **************************************************************************** 11 ****************************************************************************/ 12 #ifndef _ASM_X86_STAT_H 13 #define _ASM_X86_STAT_H 14 15 #define STAT_HAVE_NSEC 1 16 17 #ifdef __i386__ 18 struct stat { 19 unsigned long st_dev; 20 unsigned long st_ino; 21 unsigned short st_mode; 22 unsigned short st_nlink; 23 unsigned short st_uid; 24 unsigned short st_gid; 25 unsigned long st_rdev; 26 unsigned long st_size; 27 unsigned long st_blksize; 28 unsigned long st_blocks; 29 unsigned long st_atime; 30 unsigned long st_atime_nsec; 31 unsigned long st_mtime; 32 unsigned long st_mtime_nsec; 33 unsigned long st_ctime; 34 unsigned long st_ctime_nsec; 35 unsigned long __unused4; 36 unsigned long __unused5; 37 }; 38 39 #define STAT64_HAS_BROKEN_ST_INO 1 40 41 struct stat64 { 42 unsigned long long st_dev; 43 unsigned char __pad0[4]; 44 45 unsigned long __st_ino; 46 47 unsigned int st_mode; 48 unsigned int st_nlink; 49 50 unsigned long st_uid; 51 unsigned long st_gid; 52 53 unsigned long long st_rdev; 54 unsigned char __pad3[4]; 55 56 long long st_size; 57 unsigned long st_blksize; 58 59 unsigned long long st_blocks; 60 61 unsigned long st_atime; 62 unsigned long st_atime_nsec; 63 64 unsigned long st_mtime; 65 unsigned int st_mtime_nsec; 66 67 unsigned long st_ctime; 68 unsigned long st_ctime_nsec; 69 70 unsigned long long st_ino; 71 }; 72 73 #else 74 75 struct stat { 76 unsigned long st_dev; 77 unsigned long st_ino; 78 unsigned long st_nlink; 79 80 unsigned int st_mode; 81 unsigned int st_uid; 82 unsigned int st_gid; 83 unsigned int __pad0; 84 unsigned long st_rdev; 85 long st_size; 86 long st_blksize; 87 long st_blocks; 88 89 unsigned long st_atime; 90 unsigned long st_atime_nsec; 91 unsigned long st_mtime; 92 unsigned long st_mtime_nsec; 93 unsigned long st_ctime; 94 unsigned long st_ctime_nsec; 95 long __unused[3]; 96 }; 97 #endif 98 99 struct __old_kernel_stat { 100 unsigned short st_dev; 101 unsigned short st_ino; 102 unsigned short st_mode; 103 unsigned short st_nlink; 104 unsigned short st_uid; 105 unsigned short st_gid; 106 unsigned short st_rdev; 107 #ifdef __i386__ 108 unsigned long st_size; 109 unsigned long st_atime; 110 unsigned long st_mtime; 111 unsigned long st_ctime; 112 #else 113 unsigned int st_size; 114 unsigned int st_atime; 115 unsigned int st_mtime; 116 unsigned int st_ctime; 117 #endif 118 }; 119 120 #endif 121