diff options
Diffstat (limited to 'arch/blackfin/include/asm/stat.h')
-rw-r--r-- | arch/blackfin/include/asm/stat.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/stat.h b/arch/blackfin/include/asm/stat.h new file mode 100644 index 000000000000..d2b6f11ec231 --- /dev/null +++ b/arch/blackfin/include/asm/stat.h | |||
@@ -0,0 +1,63 @@ | |||
1 | #ifndef _BFIN_STAT_H | ||
2 | #define _BFIN_STAT_H | ||
3 | |||
4 | struct stat { | ||
5 | unsigned short st_dev; | ||
6 | unsigned short __pad1; | ||
7 | unsigned long st_ino; | ||
8 | unsigned short st_mode; | ||
9 | unsigned short st_nlink; | ||
10 | unsigned short st_uid; | ||
11 | unsigned short st_gid; | ||
12 | unsigned short st_rdev; | ||
13 | unsigned short __pad2; | ||
14 | unsigned long st_size; | ||
15 | unsigned long st_blksize; | ||
16 | unsigned long st_blocks; | ||
17 | unsigned long st_atime; | ||
18 | unsigned long __unused1; | ||
19 | unsigned long st_mtime; | ||
20 | unsigned long __unused2; | ||
21 | unsigned long st_ctime; | ||
22 | unsigned long __unused3; | ||
23 | unsigned long __unused4; | ||
24 | unsigned long __unused5; | ||
25 | }; | ||
26 | |||
27 | /* This matches struct stat64 in glibc2.1, hence the absolutely | ||
28 | * insane amounts of padding around dev_t's. | ||
29 | */ | ||
30 | struct stat64 { | ||
31 | unsigned long long st_dev; | ||
32 | unsigned char __pad1[4]; | ||
33 | |||
34 | #define STAT64_HAS_BROKEN_ST_INO 1 | ||
35 | unsigned long __st_ino; | ||
36 | |||
37 | unsigned int st_mode; | ||
38 | unsigned int st_nlink; | ||
39 | |||
40 | unsigned long st_uid; | ||
41 | unsigned long st_gid; | ||
42 | |||
43 | unsigned long long st_rdev; | ||
44 | unsigned char __pad2[4]; | ||
45 | |||
46 | long long st_size; | ||
47 | unsigned long st_blksize; | ||
48 | |||
49 | long long st_blocks; /* Number 512-byte blocks allocated. */ | ||
50 | |||
51 | unsigned long st_atime; | ||
52 | unsigned long st_atime_nsec; | ||
53 | |||
54 | unsigned long st_mtime; | ||
55 | unsigned long st_mtime_nsec; | ||
56 | |||
57 | unsigned long st_ctime; | ||
58 | unsigned long st_ctime_nsec; | ||
59 | |||
60 | unsigned long long st_ino; | ||
61 | }; | ||
62 | |||
63 | #endif /* _BFIN_STAT_H */ | ||