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_STAT_H 20 #define _ASM_STAT_H 21 #include <linux/types.h> 22 #include <asm/sgidefs.h> 23 #if _MIPS_SIM == _MIPS_SIM_ABI32 || _MIPS_SIM == _MIPS_SIM_NABI32 24 struct stat { 25 unsigned st_dev; 26 long st_pad1[3]; 27 ino_t st_ino; 28 mode_t st_mode; 29 __u32 st_nlink; 30 uid_t st_uid; 31 gid_t st_gid; 32 unsigned st_rdev; 33 long st_pad2[2]; 34 __kernel_off_t st_size; 35 long st_pad3; 36 time_t st_atime; 37 long st_atime_nsec; 38 time_t st_mtime; 39 long st_mtime_nsec; 40 time_t st_ctime; 41 long st_ctime_nsec; 42 long st_blksize; 43 long st_blocks; 44 long st_pad4[14]; 45 }; 46 struct stat64 { 47 unsigned long st_dev; 48 unsigned long st_pad0[3]; 49 unsigned long long st_ino; 50 mode_t st_mode; 51 __u32 st_nlink; 52 uid_t st_uid; 53 gid_t st_gid; 54 unsigned long st_rdev; 55 unsigned long st_pad1[3]; 56 long long st_size; 57 time_t st_atime; 58 unsigned long st_atime_nsec; 59 time_t st_mtime; 60 unsigned long st_mtime_nsec; 61 time_t st_ctime; 62 unsigned long st_ctime_nsec; 63 unsigned long st_blksize; 64 unsigned long st_pad2; 65 long long st_blocks; 66 }; 67 #endif 68 #if _MIPS_SIM == _MIPS_SIM_ABI64 69 struct stat { 70 unsigned int st_dev; 71 unsigned int st_pad0[3]; 72 unsigned long st_ino; 73 mode_t st_mode; 74 __u32 st_nlink; 75 uid_t st_uid; 76 gid_t st_gid; 77 unsigned int st_rdev; 78 unsigned int st_pad1[3]; 79 __kernel_off_t st_size; 80 unsigned int st_atime; 81 unsigned int st_atime_nsec; 82 unsigned int st_mtime; 83 unsigned int st_mtime_nsec; 84 unsigned int st_ctime; 85 unsigned int st_ctime_nsec; 86 unsigned int st_blksize; 87 unsigned int st_pad2; 88 unsigned long st_blocks; 89 }; 90 #endif 91 #define STAT_HAVE_NSEC 1 92 #endif 93