diff options
Diffstat (limited to 'include/asm-sparc/stat.h')
-rw-r--r-- | include/asm-sparc/stat.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/include/asm-sparc/stat.h b/include/asm-sparc/stat.h new file mode 100644 index 000000000000..a5b4272f2894 --- /dev/null +++ b/include/asm-sparc/stat.h | |||
@@ -0,0 +1,77 @@ | |||
1 | /* $Id: stat.h,v 1.12 2000/08/04 05:35:55 davem Exp $ */ | ||
2 | #ifndef _SPARC_STAT_H | ||
3 | #define _SPARC_STAT_H | ||
4 | |||
5 | #include <linux/types.h> | ||
6 | |||
7 | struct __old_kernel_stat { | ||
8 | unsigned short st_dev; | ||
9 | unsigned short st_ino; | ||
10 | unsigned short st_mode; | ||
11 | unsigned short st_nlink; | ||
12 | unsigned short st_uid; | ||
13 | unsigned short st_gid; | ||
14 | unsigned short st_rdev; | ||
15 | unsigned long st_size; | ||
16 | unsigned long st_atime; | ||
17 | unsigned long st_mtime; | ||
18 | unsigned long st_ctime; | ||
19 | }; | ||
20 | |||
21 | struct stat { | ||
22 | unsigned short st_dev; | ||
23 | unsigned long st_ino; | ||
24 | unsigned short st_mode; | ||
25 | short st_nlink; | ||
26 | unsigned short st_uid; | ||
27 | unsigned short st_gid; | ||
28 | unsigned short st_rdev; | ||
29 | long st_size; | ||
30 | long st_atime; | ||
31 | unsigned long st_atime_nsec; | ||
32 | long st_mtime; | ||
33 | unsigned long st_mtime_nsec; | ||
34 | long st_ctime; | ||
35 | unsigned long st_ctime_nsec; | ||
36 | long st_blksize; | ||
37 | long st_blocks; | ||
38 | unsigned long __unused4[2]; | ||
39 | }; | ||
40 | |||
41 | #define STAT_HAVE_NSEC 1 | ||
42 | |||
43 | struct stat64 { | ||
44 | unsigned long long st_dev; | ||
45 | |||
46 | unsigned long long st_ino; | ||
47 | |||
48 | unsigned int st_mode; | ||
49 | unsigned int st_nlink; | ||
50 | |||
51 | unsigned int st_uid; | ||
52 | unsigned int st_gid; | ||
53 | |||
54 | unsigned long long st_rdev; | ||
55 | |||
56 | unsigned char __pad3[8]; | ||
57 | |||
58 | long long st_size; | ||
59 | unsigned int st_blksize; | ||
60 | |||
61 | unsigned char __pad4[8]; | ||
62 | unsigned int st_blocks; | ||
63 | |||
64 | unsigned int st_atime; | ||
65 | unsigned int st_atime_nsec; | ||
66 | |||
67 | unsigned int st_mtime; | ||
68 | unsigned int st_mtime_nsec; | ||
69 | |||
70 | unsigned int st_ctime; | ||
71 | unsigned int st_ctime_nsec; | ||
72 | |||
73 | unsigned int __unused4; | ||
74 | unsigned int __unused5; | ||
75 | }; | ||
76 | |||
77 | #endif | ||