diff options
author | David S. Miller <davem@davemloft.net> | 2005-04-18 18:13:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-18 18:13:15 -0400 |
commit | 0ba4da03cc84f54b2574e1abcdaa18ef8456a9fb (patch) | |
tree | 6730c36a12833eaf05ddddd7b26fc4de1284ff5b /include/asm-sparc64/compat.h | |
parent | 0b2cad2f30d0353f2576b1a2207c0792ba713157 (diff) |
[PATCH] sparc64: Fix stat
Like Alpha, sparc64's struct stat was defined before we had the
nanosecond et al. fields added. So like Alpha I have to cons up a
struct stat64 to get this stuff. I'll work on the glibc bits soon.
Also, we were forgetting to fill in the nanosecond fields in the sparc
compat stat64 syscalls.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-sparc64/compat.h')
-rw-r--r-- | include/asm-sparc64/compat.h | 40 |
1 files changed, 37 insertions, 3 deletions
diff --git a/include/asm-sparc64/compat.h b/include/asm-sparc64/compat.h index 2950279dd776..22f58055b8ab 100644 --- a/include/asm-sparc64/compat.h +++ b/include/asm-sparc64/compat.h | |||
@@ -51,16 +51,50 @@ struct compat_stat { | |||
51 | compat_dev_t st_rdev; | 51 | compat_dev_t st_rdev; |
52 | compat_off_t st_size; | 52 | compat_off_t st_size; |
53 | compat_time_t st_atime; | 53 | compat_time_t st_atime; |
54 | u32 __unused1; | 54 | compat_ulong_t st_atime_nsec; |
55 | compat_time_t st_mtime; | 55 | compat_time_t st_mtime; |
56 | u32 __unused2; | 56 | compat_ulong_t st_mtime_nsec; |
57 | compat_time_t st_ctime; | 57 | compat_time_t st_ctime; |
58 | u32 __unused3; | 58 | compat_ulong_t st_ctime_nsec; |
59 | compat_off_t st_blksize; | 59 | compat_off_t st_blksize; |
60 | compat_off_t st_blocks; | 60 | compat_off_t st_blocks; |
61 | u32 __unused4[2]; | 61 | u32 __unused4[2]; |
62 | }; | 62 | }; |
63 | 63 | ||
64 | struct compat_stat64 { | ||
65 | unsigned long long st_dev; | ||
66 | |||
67 | unsigned long long st_ino; | ||
68 | |||
69 | unsigned int st_mode; | ||
70 | unsigned int st_nlink; | ||
71 | |||
72 | unsigned int st_uid; | ||
73 | unsigned int st_gid; | ||
74 | |||
75 | unsigned long long st_rdev; | ||
76 | |||
77 | unsigned char __pad3[8]; | ||
78 | |||
79 | long long st_size; | ||
80 | unsigned int st_blksize; | ||
81 | |||
82 | unsigned char __pad4[8]; | ||
83 | unsigned int st_blocks; | ||
84 | |||
85 | unsigned int st_atime; | ||
86 | unsigned int st_atime_nsec; | ||
87 | |||
88 | unsigned int st_mtime; | ||
89 | unsigned int st_mtime_nsec; | ||
90 | |||
91 | unsigned int st_ctime; | ||
92 | unsigned int st_ctime_nsec; | ||
93 | |||
94 | unsigned int __unused4; | ||
95 | unsigned int __unused5; | ||
96 | }; | ||
97 | |||
64 | struct compat_flock { | 98 | struct compat_flock { |
65 | short l_type; | 99 | short l_type; |
66 | short l_whence; | 100 | short l_whence; |