| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [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 _UAPI_GENERIC_STATFS_H | 
 | 20 | #define _UAPI_GENERIC_STATFS_H | 
 | 21 | #include <linux/types.h> | 
 | 22 | #ifndef __statfs_word | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #if __BITS_PER_LONG == 64 | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 24 | #define __statfs_word __kernel_long_t | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 25 | #else | 
 | 26 | #define __statfs_word __u32 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #endif | 
 | 28 | #endif | 
 | 29 | struct statfs { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 30 |   __statfs_word f_type; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 |   __statfs_word f_bsize; | 
 | 32 |   __statfs_word f_blocks; | 
 | 33 |   __statfs_word f_bfree; | 
 | 34 |   __statfs_word f_bavail; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 |   __statfs_word f_files; | 
 | 36 |   __statfs_word f_ffree; | 
 | 37 |   __kernel_fsid_t f_fsid; | 
 | 38 |   __statfs_word f_namelen; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 |   __statfs_word f_frsize; | 
 | 40 |   __statfs_word f_flags; | 
 | 41 |   __statfs_word f_spare[4]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 42 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #ifndef ARCH_PACK_STATFS64 | 
 | 44 | #define ARCH_PACK_STATFS64 | 
 | 45 | #endif | 
 | 46 | struct statfs64 { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 |   __statfs_word f_type; | 
 | 48 |   __statfs_word f_bsize; | 
 | 49 |   __u64 f_blocks; | 
 | 50 |   __u64 f_bfree; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 |   __u64 f_bavail; | 
 | 52 |   __u64 f_files; | 
 | 53 |   __u64 f_ffree; | 
 | 54 |   __kernel_fsid_t f_fsid; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 |   __statfs_word f_namelen; | 
 | 56 |   __statfs_word f_frsize; | 
 | 57 |   __statfs_word f_flags; | 
 | 58 |   __statfs_word f_spare[4]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 59 | } ARCH_PACK_STATFS64; | 
 | 60 | #ifndef ARCH_PACK_COMPAT_STATFS64 | 
 | 61 | #define ARCH_PACK_COMPAT_STATFS64 | 
 | 62 | #endif | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 63 | struct compat_statfs64 { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 64 |   __u32 f_type; | 
 | 65 |   __u32 f_bsize; | 
 | 66 |   __u64 f_blocks; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 67 |   __u64 f_bfree; | 
 | 68 |   __u64 f_bavail; | 
 | 69 |   __u64 f_files; | 
 | 70 |   __u64 f_ffree; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 71 |   __kernel_fsid_t f_fsid; | 
 | 72 |   __u32 f_namelen; | 
 | 73 |   __u32 f_frsize; | 
 | 74 |   __u32 f_flags; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 75 |   __u32 f_spare[4]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 76 | } ARCH_PACK_COMPAT_STATFS64; | 
 | 77 | #endif |