Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_GENERIC_STATFS_H |
| 8 | #define _UAPI_GENERIC_STATFS_H |
| 9 | #include <linux/types.h> |
| 10 | #ifndef __statfs_word |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #if __BITS_PER_LONG == 64 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 12 | #define __statfs_word __kernel_long_t |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 13 | #else |
| 14 | #define __statfs_word __u32 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | #endif |
| 16 | #endif |
| 17 | struct statfs { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 18 | __statfs_word f_type; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 19 | __statfs_word f_bsize; |
| 20 | __statfs_word f_blocks; |
| 21 | __statfs_word f_bfree; |
| 22 | __statfs_word f_bavail; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | __statfs_word f_files; |
| 24 | __statfs_word f_ffree; |
| 25 | __kernel_fsid_t f_fsid; |
| 26 | __statfs_word f_namelen; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | __statfs_word f_frsize; |
| 28 | __statfs_word f_flags; |
| 29 | __statfs_word f_spare[4]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 30 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #ifndef ARCH_PACK_STATFS64 |
| 32 | #define ARCH_PACK_STATFS64 |
| 33 | #endif |
| 34 | struct statfs64 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | __statfs_word f_type; |
| 36 | __statfs_word f_bsize; |
| 37 | __u64 f_blocks; |
| 38 | __u64 f_bfree; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | __u64 f_bavail; |
| 40 | __u64 f_files; |
| 41 | __u64 f_ffree; |
| 42 | __kernel_fsid_t f_fsid; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 | __statfs_word f_namelen; |
| 44 | __statfs_word f_frsize; |
| 45 | __statfs_word f_flags; |
| 46 | __statfs_word f_spare[4]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | } ARCH_PACK_STATFS64; |
| 48 | #ifndef ARCH_PACK_COMPAT_STATFS64 |
| 49 | #define ARCH_PACK_COMPAT_STATFS64 |
| 50 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | struct compat_statfs64 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 52 | __u32 f_type; |
| 53 | __u32 f_bsize; |
| 54 | __u64 f_blocks; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | __u64 f_bfree; |
| 56 | __u64 f_bavail; |
| 57 | __u64 f_files; |
| 58 | __u64 f_ffree; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | __kernel_fsid_t f_fsid; |
| 60 | __u32 f_namelen; |
| 61 | __u32 f_frsize; |
| 62 | __u32 f_flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 63 | __u32 f_spare[4]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 64 | } ARCH_PACK_COMPAT_STATFS64; |
| 65 | #endif |