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/stat.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/stat.h')
-rw-r--r-- | include/asm-sparc64/stat.h | 49 |
1 files changed, 17 insertions, 32 deletions
diff --git a/include/asm-sparc64/stat.h b/include/asm-sparc64/stat.h index 48e06618a5a4..128c27e57f0b 100644 --- a/include/asm-sparc64/stat.h +++ b/include/asm-sparc64/stat.h | |||
@@ -21,43 +21,28 @@ struct stat { | |||
21 | unsigned long __unused4[2]; | 21 | unsigned long __unused4[2]; |
22 | }; | 22 | }; |
23 | 23 | ||
24 | #ifdef __KERNEL__ | ||
25 | /* This is sparc32 stat64 structure. */ | ||
26 | |||
27 | struct stat64 { | 24 | struct stat64 { |
28 | unsigned long long st_dev; | 25 | unsigned long st_dev; |
29 | 26 | unsigned long st_ino; | |
30 | unsigned long long st_ino; | 27 | unsigned long st_nlink; |
31 | 28 | ||
32 | unsigned int st_mode; | 29 | unsigned int st_mode; |
33 | unsigned int st_nlink; | ||
34 | |||
35 | unsigned int st_uid; | 30 | unsigned int st_uid; |
36 | unsigned int st_gid; | 31 | unsigned int st_gid; |
37 | 32 | unsigned int __pad0; | |
38 | unsigned long long st_rdev; | 33 | |
39 | 34 | unsigned long st_rdev; | |
40 | unsigned char __pad3[8]; | 35 | long st_size; |
41 | 36 | long st_blksize; | |
42 | long long st_size; | 37 | long st_blocks; |
43 | unsigned int st_blksize; | 38 | |
44 | 39 | unsigned long st_atime; | |
45 | unsigned char __pad4[8]; | 40 | unsigned long st_atime_nsec; |
46 | unsigned int st_blocks; | 41 | unsigned long st_mtime; |
47 | 42 | unsigned long st_mtime_nsec; | |
48 | unsigned int st_atime; | 43 | unsigned long st_ctime; |
49 | unsigned int st_atime_nsec; | 44 | unsigned long st_ctime_nsec; |
50 | 45 | long __unused[3]; | |
51 | unsigned int st_mtime; | ||
52 | unsigned int st_mtime_nsec; | ||
53 | |||
54 | unsigned int st_ctime; | ||
55 | unsigned int st_ctime_nsec; | ||
56 | |||
57 | unsigned int __unused4; | ||
58 | unsigned int __unused5; | ||
59 | }; | 46 | }; |
60 | 47 | ||
61 | #endif | 48 | #endif |
62 | |||
63 | #endif | ||