Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _ASM_STATFS_H |
| 20 | #define _ASM_STATFS_H |
| 21 | #include <linux/posix_types.h> |
| 22 | #include <asm/sgidefs.h> |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 23 | struct statfs { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 24 | long f_type; |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 25 | #define f_fstyp f_type |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 26 | long f_bsize; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | long f_frsize; |
| 28 | long f_blocks; |
| 29 | long f_bfree; |
| 30 | long f_files; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 | long f_ffree; |
| 32 | long f_bavail; |
| 33 | __kernel_fsid_t f_fsid; |
| 34 | long f_namelen; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | long f_flags; |
| 36 | long f_spare[5]; |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 37 | }; |
| 38 | #if _MIPS_SIM == _MIPS_SIM_ABI32 || _MIPS_SIM == _MIPS_SIM_NABI32 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 39 | struct statfs64 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 40 | __u32 f_type; |
| 41 | __u32 f_bsize; |
| 42 | __u32 f_frsize; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 | __u32 __pad; |
| 44 | __u64 f_blocks; |
| 45 | __u64 f_bfree; |
| 46 | __u64 f_files; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | __u64 f_ffree; |
| 48 | __u64 f_bavail; |
| 49 | __kernel_fsid_t f_fsid; |
| 50 | __u32 f_namelen; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | __u32 f_flags; |
| 52 | __u32 f_spare[5]; |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 53 | }; |
| 54 | #endif |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 55 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
| 56 | struct statfs64 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 57 | long f_type; |
| 58 | long f_bsize; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | long f_frsize; |
| 60 | long f_blocks; |
| 61 | long f_bfree; |
| 62 | long f_files; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 63 | long f_ffree; |
| 64 | long f_bavail; |
| 65 | __kernel_fsid_t f_fsid; |
| 66 | long f_namelen; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 67 | long f_flags; |
| 68 | long f_spare[5]; |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 69 | }; |
| 70 | struct compat_statfs64 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 71 | __u32 f_type; |
| 72 | __u32 f_bsize; |
| 73 | __u32 f_frsize; |
| 74 | __u32 __pad; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 75 | __u64 f_blocks; |
| 76 | __u64 f_bfree; |
| 77 | __u64 f_files; |
| 78 | __u64 f_ffree; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 79 | __u64 f_bavail; |
| 80 | __kernel_fsid_t f_fsid; |
| 81 | __u32 f_namelen; |
| 82 | __u32 f_flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 83 | __u32 f_spare[5]; |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 84 | }; |
| 85 | #endif |
| 86 | #endif |