Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * This file is subject to the terms and conditions of the GNU General Public
0004  * License.  See the file "COPYING" in the main directory of this archive
0005  * for more details.
0006  *
0007  * Copyright (C) 1995, 1999 by Ralf Baechle
0008  */
0009 #ifndef _ASM_STATFS_H
0010 #define _ASM_STATFS_H
0011 
0012 #include <linux/posix_types.h>
0013 #include <asm/sgidefs.h>
0014 
0015 #ifndef __KERNEL_STRICT_NAMES
0016 
0017 #include <linux/types.h>
0018 
0019 typedef __kernel_fsid_t        fsid_t;
0020 
0021 #endif
0022 
0023 struct statfs {
0024     long        f_type;
0025 #define f_fstyp f_type
0026     long        f_bsize;
0027     long        f_frsize;   /* Fragment size - unsupported */
0028     long        f_blocks;
0029     long        f_bfree;
0030     long        f_files;
0031     long        f_ffree;
0032     long        f_bavail;
0033 
0034     /* Linux specials */
0035     __kernel_fsid_t f_fsid;
0036     long        f_namelen;
0037     long        f_flags;
0038     long        f_spare[5];
0039 };
0040 
0041 #if (_MIPS_SIM == _MIPS_SIM_ABI32) || (_MIPS_SIM == _MIPS_SIM_NABI32)
0042 
0043 /*
0044  * Unlike the traditional version the LFAPI version has none of the ABI junk
0045  */
0046 struct statfs64 {
0047     __u32   f_type;
0048     __u32   f_bsize;
0049     __u32   f_frsize;   /* Fragment size - unsupported */
0050     __u32   __pad;
0051     __u64   f_blocks;
0052     __u64   f_bfree;
0053     __u64   f_files;
0054     __u64   f_ffree;
0055     __u64   f_bavail;
0056     __kernel_fsid_t f_fsid;
0057     __u32   f_namelen;
0058     __u32   f_flags;
0059     __u32   f_spare[5];
0060 };
0061 
0062 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
0063 
0064 #if _MIPS_SIM == _MIPS_SIM_ABI64
0065 
0066 struct statfs64 {           /* Same as struct statfs */
0067     long        f_type;
0068     long        f_bsize;
0069     long        f_frsize;   /* Fragment size - unsupported */
0070     long        f_blocks;
0071     long        f_bfree;
0072     long        f_files;
0073     long        f_ffree;
0074     long        f_bavail;
0075 
0076     /* Linux specials */
0077     __kernel_fsid_t f_fsid;
0078     long        f_namelen;
0079     long        f_flags;
0080     long        f_spare[5];
0081 };
0082 
0083 struct compat_statfs64 {
0084     __u32   f_type;
0085     __u32   f_bsize;
0086     __u32   f_frsize;   /* Fragment size - unsupported */
0087     __u32   __pad;
0088     __u64   f_blocks;
0089     __u64   f_bfree;
0090     __u64   f_files;
0091     __u64   f_ffree;
0092     __u64   f_bavail;
0093     __kernel_fsid_t f_fsid;
0094     __u32   f_namelen;
0095     __u32   f_flags;
0096     __u32   f_spare[5];
0097 };
0098 
0099 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
0100 
0101 #endif /* _ASM_STATFS_H */