blob: 7184ce9c540bac13c7bd685a718f613984f91479 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 Cheng655a7c02013-10-16 16:09:24 -070023#if __BITS_PER_LONG == 64
Christopher Ferris38062f92014-07-09 15:33:25 -070024#define __statfs_word __kernel_long_t
Ben Cheng655a7c02013-10-16 16:09:24 -070025#else
26#define __statfs_word __u32
Ben Cheng655a7c02013-10-16 16:09:24 -070027#endif
28#endif
29struct statfs {
Tao Baod7db5942015-01-28 10:07:51 -080030 __statfs_word f_type;
Tao Baod7db5942015-01-28 10:07:51 -080031 __statfs_word f_bsize;
32 __statfs_word f_blocks;
33 __statfs_word f_bfree;
34 __statfs_word f_bavail;
Tao Baod7db5942015-01-28 10:07:51 -080035 __statfs_word f_files;
36 __statfs_word f_ffree;
37 __kernel_fsid_t f_fsid;
38 __statfs_word f_namelen;
Tao Baod7db5942015-01-28 10:07:51 -080039 __statfs_word f_frsize;
40 __statfs_word f_flags;
41 __statfs_word f_spare[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070042};
Ben Cheng655a7c02013-10-16 16:09:24 -070043#ifndef ARCH_PACK_STATFS64
44#define ARCH_PACK_STATFS64
45#endif
46struct statfs64 {
Tao Baod7db5942015-01-28 10:07:51 -080047 __statfs_word f_type;
48 __statfs_word f_bsize;
49 __u64 f_blocks;
50 __u64 f_bfree;
Tao Baod7db5942015-01-28 10:07:51 -080051 __u64 f_bavail;
52 __u64 f_files;
53 __u64 f_ffree;
54 __kernel_fsid_t f_fsid;
Tao Baod7db5942015-01-28 10:07:51 -080055 __statfs_word f_namelen;
56 __statfs_word f_frsize;
57 __statfs_word f_flags;
58 __statfs_word f_spare[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070059} ARCH_PACK_STATFS64;
60#ifndef ARCH_PACK_COMPAT_STATFS64
61#define ARCH_PACK_COMPAT_STATFS64
62#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070063struct compat_statfs64 {
Tao Baod7db5942015-01-28 10:07:51 -080064 __u32 f_type;
65 __u32 f_bsize;
66 __u64 f_blocks;
Tao Baod7db5942015-01-28 10:07:51 -080067 __u64 f_bfree;
68 __u64 f_bavail;
69 __u64 f_files;
70 __u64 f_ffree;
Tao Baod7db5942015-01-28 10:07:51 -080071 __kernel_fsid_t f_fsid;
72 __u32 f_namelen;
73 __u32 f_frsize;
74 __u32 f_flags;
Tao Baod7db5942015-01-28 10:07:51 -080075 __u32 f_spare[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070076} ARCH_PACK_COMPAT_STATFS64;
77#endif