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