Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ASM_SH_STAT_H |
| 2 | #define __ASM_SH_STAT_H |
| 3 | |
| 4 | struct __old_kernel_stat { |
| 5 | unsigned short st_dev; |
| 6 | unsigned short st_ino; |
| 7 | unsigned short st_mode; |
| 8 | unsigned short st_nlink; |
| 9 | unsigned short st_uid; |
| 10 | unsigned short st_gid; |
| 11 | unsigned short st_rdev; |
| 12 | unsigned long st_size; |
| 13 | unsigned long st_atime; |
| 14 | unsigned long st_mtime; |
| 15 | unsigned long st_ctime; |
| 16 | }; |
| 17 | |
| 18 | struct stat { |
SUGIOKA Toshinobu | 760bcb1 | 2007-03-30 14:51:44 +0900 | [diff] [blame] | 19 | unsigned long st_dev; |
| 20 | unsigned long st_ino; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | unsigned short st_mode; |
| 22 | unsigned short st_nlink; |
| 23 | unsigned short st_uid; |
| 24 | unsigned short st_gid; |
SUGIOKA Toshinobu | 760bcb1 | 2007-03-30 14:51:44 +0900 | [diff] [blame] | 25 | unsigned long st_rdev; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | /* This matches struct stat64 in glibc2.1, hence the absolutely |
| 40 | * insane amounts of padding around dev_t's. |
| 41 | */ |
| 42 | struct stat64 { |
| 43 | unsigned long long st_dev; |
| 44 | unsigned char __pad0[4]; |
| 45 | |
SUGIOKA Toshinobu | 760bcb1 | 2007-03-30 14:51:44 +0900 | [diff] [blame] | 46 | #define STAT64_HAS_BROKEN_ST_INO 1 |
| 47 | unsigned long __st_ino; |
| 48 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | unsigned int st_mode; |
| 50 | unsigned int st_nlink; |
| 51 | |
| 52 | unsigned long st_uid; |
| 53 | unsigned long st_gid; |
| 54 | |
| 55 | unsigned long long st_rdev; |
| 56 | unsigned char __pad3[4]; |
| 57 | |
| 58 | long long st_size; |
| 59 | unsigned long st_blksize; |
| 60 | |
Takashi Sato | abcb6c9 | 2006-03-26 01:37:51 -0800 | [diff] [blame] | 61 | unsigned long long st_blocks; /* Number 512-byte blocks allocated. */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | |
| 63 | unsigned long st_atime; |
| 64 | unsigned long st_atime_nsec; |
| 65 | |
| 66 | unsigned long st_mtime; |
| 67 | unsigned long st_mtime_nsec; |
| 68 | |
| 69 | unsigned long st_ctime; |
| 70 | unsigned long st_ctime_nsec; |
| 71 | |
SUGIOKA Toshinobu | 760bcb1 | 2007-03-30 14:51:44 +0900 | [diff] [blame] | 72 | unsigned long long st_ino; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 73 | }; |
| 74 | |
SUGIOKA Toshinobu | 760bcb1 | 2007-03-30 14:51:44 +0900 | [diff] [blame] | 75 | #define STAT_HAVE_NSEC 1 |
| 76 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 77 | #endif /* __ASM_SH_STAT_H */ |