Sam Ravnborg | f5e706a | 2008-07-17 21:55:51 -0700 | [diff] [blame] | 1 | #ifndef _SPARC_STAT_H |
| 2 | #define _SPARC_STAT_H |
| 3 | |
| 4 | #include <linux/types.h> |
| 5 | |
| 6 | struct __old_kernel_stat { |
| 7 | unsigned short st_dev; |
| 8 | unsigned short st_ino; |
| 9 | unsigned short st_mode; |
| 10 | unsigned short st_nlink; |
| 11 | unsigned short st_uid; |
| 12 | unsigned short st_gid; |
| 13 | unsigned short st_rdev; |
| 14 | unsigned long st_size; |
| 15 | unsigned long st_atime; |
| 16 | unsigned long st_mtime; |
| 17 | unsigned long st_ctime; |
| 18 | }; |
| 19 | |
| 20 | struct stat { |
| 21 | unsigned short st_dev; |
| 22 | unsigned long st_ino; |
| 23 | unsigned short st_mode; |
| 24 | short st_nlink; |
| 25 | unsigned short st_uid; |
| 26 | unsigned short st_gid; |
| 27 | unsigned short st_rdev; |
| 28 | long st_size; |
| 29 | long st_atime; |
| 30 | unsigned long st_atime_nsec; |
| 31 | long st_mtime; |
| 32 | unsigned long st_mtime_nsec; |
| 33 | long st_ctime; |
| 34 | unsigned long st_ctime_nsec; |
| 35 | long st_blksize; |
| 36 | long st_blocks; |
| 37 | unsigned long __unused4[2]; |
| 38 | }; |
| 39 | |
| 40 | #define STAT_HAVE_NSEC 1 |
| 41 | |
| 42 | struct stat64 { |
| 43 | unsigned long long st_dev; |
| 44 | |
| 45 | unsigned long long st_ino; |
| 46 | |
| 47 | unsigned int st_mode; |
| 48 | unsigned int st_nlink; |
| 49 | |
| 50 | unsigned int st_uid; |
| 51 | unsigned int st_gid; |
| 52 | |
| 53 | unsigned long long st_rdev; |
| 54 | |
| 55 | unsigned char __pad3[8]; |
| 56 | |
| 57 | long long st_size; |
| 58 | unsigned int st_blksize; |
| 59 | |
| 60 | unsigned char __pad4[8]; |
| 61 | unsigned int st_blocks; |
| 62 | |
| 63 | unsigned int st_atime; |
| 64 | unsigned int st_atime_nsec; |
| 65 | |
| 66 | unsigned int st_mtime; |
| 67 | unsigned int st_mtime_nsec; |
| 68 | |
| 69 | unsigned int st_ctime; |
| 70 | unsigned int st_ctime_nsec; |
| 71 | |
| 72 | unsigned int __unused4; |
| 73 | unsigned int __unused5; |
| 74 | }; |
| 75 | |
| 76 | #endif |