Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [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_GENERIC_STAT_H |
| 20 | #define __ASM_GENERIC_STAT_H |
| 21 | #include <asm/bitsperlong.h> |
| 22 | #define STAT_HAVE_NSEC 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | struct stat { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 24 | unsigned long st_dev; |
| 25 | unsigned long st_ino; |
| 26 | unsigned int st_mode; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | unsigned int st_nlink; |
| 28 | unsigned int st_uid; |
| 29 | unsigned int st_gid; |
| 30 | unsigned long st_rdev; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 | unsigned long __pad1; |
| 32 | long st_size; |
| 33 | int st_blksize; |
| 34 | int __pad2; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | long st_blocks; |
| 36 | long st_atime; |
| 37 | unsigned long st_atime_nsec; |
| 38 | long st_mtime; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | unsigned long st_mtime_nsec; |
| 40 | long st_ctime; |
| 41 | unsigned long st_ctime_nsec; |
| 42 | unsigned int __unused4; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 | unsigned int __unused5; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 44 | }; |
Elliott Hughes | 40596aa | 2013-11-05 14:54:29 -0800 | [diff] [blame] | 45 | #if __BITS_PER_LONG != 64 || defined(__ARCH_WANT_STAT64) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 46 | struct stat64 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | unsigned long long st_dev; |
| 48 | unsigned long long st_ino; |
| 49 | unsigned int st_mode; |
| 50 | unsigned int st_nlink; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | unsigned int st_uid; |
| 52 | unsigned int st_gid; |
| 53 | unsigned long long st_rdev; |
| 54 | unsigned long long __pad1; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | long long st_size; |
| 56 | int st_blksize; |
| 57 | int __pad2; |
| 58 | long long st_blocks; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | int st_atime; |
| 60 | unsigned int st_atime_nsec; |
| 61 | int st_mtime; |
| 62 | unsigned int st_mtime_nsec; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 63 | int st_ctime; |
| 64 | unsigned int st_ctime_nsec; |
| 65 | unsigned int __unused4; |
| 66 | unsigned int __unused5; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 67 | }; |
| 68 | #endif |
| 69 | #endif |