blob: 1fe2c09ffb11681aa581fa37c4fc8d7cdc460e3d [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI_GENERIC_STATFS_H
8#define _UAPI_GENERIC_STATFS_H
9#include <linux/types.h>
10#ifndef __statfs_word
Ben Cheng655a7c02013-10-16 16:09:24 -070011#if __BITS_PER_LONG == 64
Christopher Ferris38062f92014-07-09 15:33:25 -070012#define __statfs_word __kernel_long_t
Ben Cheng655a7c02013-10-16 16:09:24 -070013#else
14#define __statfs_word __u32
Ben Cheng655a7c02013-10-16 16:09:24 -070015#endif
16#endif
17struct statfs {
Tao Baod7db5942015-01-28 10:07:51 -080018 __statfs_word f_type;
Tao Baod7db5942015-01-28 10:07:51 -080019 __statfs_word f_bsize;
20 __statfs_word f_blocks;
21 __statfs_word f_bfree;
22 __statfs_word f_bavail;
Tao Baod7db5942015-01-28 10:07:51 -080023 __statfs_word f_files;
24 __statfs_word f_ffree;
25 __kernel_fsid_t f_fsid;
26 __statfs_word f_namelen;
Tao Baod7db5942015-01-28 10:07:51 -080027 __statfs_word f_frsize;
28 __statfs_word f_flags;
29 __statfs_word f_spare[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070030};
Ben Cheng655a7c02013-10-16 16:09:24 -070031#ifndef ARCH_PACK_STATFS64
32#define ARCH_PACK_STATFS64
33#endif
34struct statfs64 {
Tao Baod7db5942015-01-28 10:07:51 -080035 __statfs_word f_type;
36 __statfs_word f_bsize;
37 __u64 f_blocks;
38 __u64 f_bfree;
Tao Baod7db5942015-01-28 10:07:51 -080039 __u64 f_bavail;
40 __u64 f_files;
41 __u64 f_ffree;
42 __kernel_fsid_t f_fsid;
Tao Baod7db5942015-01-28 10:07:51 -080043 __statfs_word f_namelen;
44 __statfs_word f_frsize;
45 __statfs_word f_flags;
46 __statfs_word f_spare[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070047} ARCH_PACK_STATFS64;
48#ifndef ARCH_PACK_COMPAT_STATFS64
49#define ARCH_PACK_COMPAT_STATFS64
50#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070051struct compat_statfs64 {
Tao Baod7db5942015-01-28 10:07:51 -080052 __u32 f_type;
53 __u32 f_bsize;
54 __u64 f_blocks;
Tao Baod7db5942015-01-28 10:07:51 -080055 __u64 f_bfree;
56 __u64 f_bavail;
57 __u64 f_files;
58 __u64 f_ffree;
Tao Baod7db5942015-01-28 10:07:51 -080059 __kernel_fsid_t f_fsid;
60 __u32 f_namelen;
61 __u32 f_frsize;
62 __u32 f_flags;
Tao Baod7db5942015-01-28 10:07:51 -080063 __u32 f_spare[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070064} ARCH_PACK_COMPAT_STATFS64;
65#endif