diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-mips/statfs.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-mips/statfs.h')
-rw-r--r-- | include/asm-mips/statfs.h | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/include/asm-mips/statfs.h b/include/asm-mips/statfs.h new file mode 100644 index 000000000000..5076fec65780 --- /dev/null +++ b/include/asm-mips/statfs.h | |||
@@ -0,0 +1,96 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 1995, 1999 by Ralf Baechle | ||
7 | */ | ||
8 | #ifndef _ASM_STATFS_H | ||
9 | #define _ASM_STATFS_H | ||
10 | |||
11 | #include <linux/posix_types.h> | ||
12 | #include <asm/sgidefs.h> | ||
13 | |||
14 | #ifndef __KERNEL_STRICT_NAMES | ||
15 | |||
16 | #include <linux/types.h> | ||
17 | |||
18 | typedef __kernel_fsid_t fsid_t; | ||
19 | |||
20 | #endif | ||
21 | |||
22 | struct statfs { | ||
23 | long f_type; | ||
24 | #define f_fstyp f_type | ||
25 | long f_bsize; | ||
26 | long f_frsize; /* Fragment size - unsupported */ | ||
27 | long f_blocks; | ||
28 | long f_bfree; | ||
29 | long f_files; | ||
30 | long f_ffree; | ||
31 | long f_bavail; | ||
32 | |||
33 | /* Linux specials */ | ||
34 | __kernel_fsid_t f_fsid; | ||
35 | long f_namelen; | ||
36 | long f_spare[6]; | ||
37 | }; | ||
38 | |||
39 | #if (_MIPS_SIM == _MIPS_SIM_ABI32) || (_MIPS_SIM == _MIPS_SIM_NABI32) | ||
40 | |||
41 | /* | ||
42 | * Unlike the traditional version the LFAPI version has none of the ABI junk | ||
43 | */ | ||
44 | struct statfs64 { | ||
45 | __u32 f_type; | ||
46 | __u32 f_bsize; | ||
47 | __u32 f_frsize; /* Fragment size - unsupported */ | ||
48 | __u32 __pad; | ||
49 | __u64 f_blocks; | ||
50 | __u64 f_bfree; | ||
51 | __u64 f_files; | ||
52 | __u64 f_ffree; | ||
53 | __u64 f_bavail; | ||
54 | __kernel_fsid_t f_fsid; | ||
55 | __u32 f_namelen; | ||
56 | __u32 f_spare[6]; | ||
57 | }; | ||
58 | |||
59 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | ||
60 | |||
61 | #if _MIPS_SIM == _MIPS_SIM_ABI64 | ||
62 | |||
63 | struct statfs64 { /* Same as struct statfs */ | ||
64 | long f_type; | ||
65 | long f_bsize; | ||
66 | long f_frsize; /* Fragment size - unsupported */ | ||
67 | long f_blocks; | ||
68 | long f_bfree; | ||
69 | long f_files; | ||
70 | long f_ffree; | ||
71 | long f_bavail; | ||
72 | |||
73 | /* Linux specials */ | ||
74 | __kernel_fsid_t f_fsid; | ||
75 | long f_namelen; | ||
76 | long f_spare[6]; | ||
77 | }; | ||
78 | |||
79 | struct compat_statfs64 { | ||
80 | __u32 f_type; | ||
81 | __u32 f_bsize; | ||
82 | __u32 f_frsize; /* Fragment size - unsupported */ | ||
83 | __u32 __pad; | ||
84 | __u64 f_blocks; | ||
85 | __u64 f_bfree; | ||
86 | __u64 f_files; | ||
87 | __u64 f_ffree; | ||
88 | __u64 f_bavail; | ||
89 | __kernel_fsid_t f_fsid; | ||
90 | __u32 f_namelen; | ||
91 | __u32 f_spare[6]; | ||
92 | }; | ||
93 | |||
94 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | ||
95 | |||
96 | #endif /* _ASM_STATFS_H */ | ||