diff options
Diffstat (limited to 'include/asm-sh/stat.h')
-rw-r--r-- | include/asm-sh/stat.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/include/asm-sh/stat.h b/include/asm-sh/stat.h index 6c41a60657f1..6d6ad26e3a2a 100644 --- a/include/asm-sh/stat.h +++ b/include/asm-sh/stat.h | |||
@@ -16,15 +16,13 @@ struct __old_kernel_stat { | |||
16 | }; | 16 | }; |
17 | 17 | ||
18 | struct stat { | 18 | struct stat { |
19 | unsigned short st_dev; | 19 | unsigned long st_dev; |
20 | unsigned short __pad1; | 20 | unsigned long st_ino; |
21 | unsigned long st_ino; | ||
22 | unsigned short st_mode; | 21 | unsigned short st_mode; |
23 | unsigned short st_nlink; | 22 | unsigned short st_nlink; |
24 | unsigned short st_uid; | 23 | unsigned short st_uid; |
25 | unsigned short st_gid; | 24 | unsigned short st_gid; |
26 | unsigned short st_rdev; | 25 | unsigned long st_rdev; |
27 | unsigned short __pad2; | ||
28 | unsigned long st_size; | 26 | unsigned long st_size; |
29 | unsigned long st_blksize; | 27 | unsigned long st_blksize; |
30 | unsigned long st_blocks; | 28 | unsigned long st_blocks; |
@@ -38,8 +36,6 @@ struct stat { | |||
38 | unsigned long __unused5; | 36 | unsigned long __unused5; |
39 | }; | 37 | }; |
40 | 38 | ||
41 | #define STAT_HAVE_NSEC 1 | ||
42 | |||
43 | /* This matches struct stat64 in glibc2.1, hence the absolutely | 39 | /* This matches struct stat64 in glibc2.1, hence the absolutely |
44 | * insane amounts of padding around dev_t's. | 40 | * insane amounts of padding around dev_t's. |
45 | */ | 41 | */ |
@@ -47,7 +43,9 @@ struct stat64 { | |||
47 | unsigned long long st_dev; | 43 | unsigned long long st_dev; |
48 | unsigned char __pad0[4]; | 44 | unsigned char __pad0[4]; |
49 | 45 | ||
50 | unsigned long st_ino; | 46 | #define STAT64_HAS_BROKEN_ST_INO 1 |
47 | unsigned long __st_ino; | ||
48 | |||
51 | unsigned int st_mode; | 49 | unsigned int st_mode; |
52 | unsigned int st_nlink; | 50 | unsigned int st_nlink; |
53 | 51 | ||
@@ -71,8 +69,9 @@ struct stat64 { | |||
71 | unsigned long st_ctime; | 69 | unsigned long st_ctime; |
72 | unsigned long st_ctime_nsec; | 70 | unsigned long st_ctime_nsec; |
73 | 71 | ||
74 | unsigned long __unused1; | 72 | unsigned long long st_ino; |
75 | unsigned long __unused2; | ||
76 | }; | 73 | }; |
77 | 74 | ||
75 | #define STAT_HAVE_NSEC 1 | ||
76 | |||
78 | #endif /* __ASM_SH_STAT_H */ | 77 | #endif /* __ASM_SH_STAT_H */ |