1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _ASMARM_STAT_H 7 #define _ASMARM_STAT_H 8 struct __old_kernel_stat { 9 unsigned short st_dev; 10 unsigned short st_ino; 11 unsigned short st_mode; 12 unsigned short st_nlink; 13 unsigned short st_uid; 14 unsigned short st_gid; 15 unsigned short st_rdev; 16 unsigned long st_size; 17 unsigned long st_atime; 18 unsigned long st_mtime; 19 unsigned long st_ctime; 20 }; 21 #define STAT_HAVE_NSEC 22 struct stat { 23 #if defined(__ARMEB__) 24 unsigned short st_dev; 25 unsigned short __pad1; 26 #else 27 unsigned long st_dev; 28 #endif 29 unsigned long st_ino; 30 unsigned short st_mode; 31 unsigned short st_nlink; 32 unsigned short st_uid; 33 unsigned short st_gid; 34 #if defined(__ARMEB__) 35 unsigned short st_rdev; 36 unsigned short __pad2; 37 #else 38 unsigned long st_rdev; 39 #endif 40 unsigned long st_size; 41 unsigned long st_blksize; 42 unsigned long st_blocks; 43 unsigned long st_atime; 44 unsigned long st_atime_nsec; 45 unsigned long st_mtime; 46 unsigned long st_mtime_nsec; 47 unsigned long st_ctime; 48 unsigned long st_ctime_nsec; 49 unsigned long __unused4; 50 unsigned long __unused5; 51 }; 52 struct stat64 { 53 unsigned long long st_dev; 54 unsigned char __pad0[4]; 55 #define STAT64_HAS_BROKEN_ST_INO 1 56 unsigned long __st_ino; 57 unsigned int st_mode; 58 unsigned int st_nlink; 59 unsigned long st_uid; 60 unsigned long st_gid; 61 unsigned long long st_rdev; 62 unsigned char __pad3[4]; 63 long long st_size; 64 unsigned long st_blksize; 65 unsigned long long st_blocks; 66 unsigned long st_atime; 67 unsigned long st_atime_nsec; 68 unsigned long st_mtime; 69 unsigned long st_mtime_nsec; 70 unsigned long st_ctime; 71 unsigned long st_ctime_nsec; 72 unsigned long long st_ino; 73 }; 74 #endif 75