diff options
Diffstat (limited to 'include/asm-m32r/stat.h')
-rw-r--r-- | include/asm-m32r/stat.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/include/asm-m32r/stat.h b/include/asm-m32r/stat.h new file mode 100644 index 000000000000..05748fef4c8e --- /dev/null +++ b/include/asm-m32r/stat.h | |||
@@ -0,0 +1,91 @@ | |||
1 | #ifndef _ASM_M32R_STAT_H | ||
2 | #define _ASM_M32R_STAT_H | ||
3 | |||
4 | /* $Id$ */ | ||
5 | |||
6 | /* orig : i386 2.4.18 */ | ||
7 | |||
8 | #include <asm/byteorder.h> | ||
9 | |||
10 | struct __old_kernel_stat { | ||
11 | unsigned short st_dev; | ||
12 | unsigned short st_ino; | ||
13 | unsigned short st_mode; | ||
14 | unsigned short st_nlink; | ||
15 | unsigned short st_uid; | ||
16 | unsigned short st_gid; | ||
17 | unsigned short st_rdev; | ||
18 | unsigned long st_size; | ||
19 | unsigned long st_atime; | ||
20 | unsigned long st_mtime; | ||
21 | unsigned long st_ctime; | ||
22 | }; | ||
23 | |||
24 | #define STAT_HAVE_NSEC 1 | ||
25 | |||
26 | struct stat { | ||
27 | unsigned short st_dev; | ||
28 | unsigned short __pad1; | ||
29 | unsigned long st_ino; | ||
30 | unsigned short st_mode; | ||
31 | unsigned short st_nlink; | ||
32 | unsigned short st_uid; | ||
33 | unsigned short st_gid; | ||
34 | unsigned short st_rdev; | ||
35 | unsigned short __pad2; | ||
36 | unsigned long st_size; | ||
37 | unsigned long st_blksize; | ||
38 | unsigned long st_blocks; | ||
39 | unsigned long st_atime; | ||
40 | unsigned long st_atime_nsec; | ||
41 | unsigned long st_mtime; | ||
42 | unsigned long st_mtime_nsec; | ||
43 | unsigned long st_ctime; | ||
44 | unsigned long st_ctime_nsec; | ||
45 | unsigned long __unused4; | ||
46 | unsigned long __unused5; | ||
47 | }; | ||
48 | |||
49 | /* This matches struct stat64 in glibc2.1, hence the absolutely | ||
50 | * insane amounts of padding around dev_t's. | ||
51 | */ | ||
52 | struct stat64 { | ||
53 | unsigned long long st_dev; | ||
54 | unsigned char __pad0[4]; | ||
55 | #define STAT64_HAS_BROKEN_ST_INO | ||
56 | unsigned long __st_ino; | ||
57 | |||
58 | unsigned int st_mode; | ||
59 | unsigned int st_nlink; | ||
60 | |||
61 | unsigned long st_uid; | ||
62 | unsigned long st_gid; | ||
63 | |||
64 | unsigned long long st_rdev; | ||
65 | unsigned char __pad3[4]; | ||
66 | |||
67 | long long st_size; | ||
68 | unsigned long st_blksize; | ||
69 | |||
70 | #if defined(__BIG_ENDIAN) | ||
71 | unsigned long __pad4; /* future possible st_blocks high bits */ | ||
72 | unsigned long st_blocks; /* Number 512-byte blocks allocated. */ | ||
73 | #elif defined(__LITTLE_ENDIAN) | ||
74 | unsigned long st_blocks; /* Number 512-byte blocks allocated. */ | ||
75 | unsigned long __pad4; /* future possible st_blocks high bits */ | ||
76 | #else | ||
77 | #error no endian defined | ||
78 | #endif | ||
79 | unsigned long st_atime; | ||
80 | unsigned long st_atime_nsec; | ||
81 | |||
82 | unsigned long st_mtime; | ||
83 | unsigned long st_mtime_nsec; | ||
84 | |||
85 | unsigned long st_ctime; | ||
86 | unsigned long st_ctime_nsec; | ||
87 | |||
88 | unsigned long long st_ino; | ||
89 | }; | ||
90 | |||
91 | #endif /* _ASM_M32R_STAT_H */ | ||