Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
statfs.h
Go to the documentation of this file.
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 
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 */
35  long f_namelen;
36  long f_flags;
37  long f_spare[5];
38 };
39 
40 #if (_MIPS_SIM == _MIPS_SIM_ABI32) || (_MIPS_SIM == _MIPS_SIM_NABI32)
41 
42 /*
43  * Unlike the traditional version the LFAPI version has none of the ABI junk
44  */
45 struct statfs64 {
48  __u32 f_frsize; /* Fragment size - unsupported */
59 };
60 
61 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
62 
63 #if _MIPS_SIM == _MIPS_SIM_ABI64
64 
65 struct statfs64 { /* Same as struct statfs */
66  long f_type;
67  long f_bsize;
68  long f_frsize; /* Fragment size - unsupported */
69  long f_blocks;
70  long f_bfree;
71  long f_files;
72  long f_ffree;
73  long f_bavail;
74 
75  /* Linux specials */
77  long f_namelen;
78  long f_flags;
79  long f_spare[5];
80 };
81 
85  __u32 f_frsize; /* Fragment size - unsupported */
96 };
97 
98 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
99 
100 #endif /* _ASM_STATFS_H */