blob: 1f6abfffc602855dc9285bb88f95dc65bbfb993a [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
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 Hughesabd62612013-11-08 11:45:48 -080023struct statfs {
Tao Baod7db5942015-01-28 10:07:51 -080024 long f_type;
Elliott Hughesabd62612013-11-08 11:45:48 -080025#define f_fstyp f_type
Tao Baod7db5942015-01-28 10:07:51 -080026 long f_bsize;
Tao Baod7db5942015-01-28 10:07:51 -080027 long f_frsize;
28 long f_blocks;
29 long f_bfree;
30 long f_files;
Tao Baod7db5942015-01-28 10:07:51 -080031 long f_ffree;
32 long f_bavail;
33 __kernel_fsid_t f_fsid;
34 long f_namelen;
Tao Baod7db5942015-01-28 10:07:51 -080035 long f_flags;
36 long f_spare[5];
Elliott Hughesabd62612013-11-08 11:45:48 -080037};
38#if _MIPS_SIM == _MIPS_SIM_ABI32 || _MIPS_SIM == _MIPS_SIM_NABI32
Elliott Hughesabd62612013-11-08 11:45:48 -080039struct statfs64 {
Tao Baod7db5942015-01-28 10:07:51 -080040 __u32 f_type;
41 __u32 f_bsize;
42 __u32 f_frsize;
Tao Baod7db5942015-01-28 10:07:51 -080043 __u32 __pad;
44 __u64 f_blocks;
45 __u64 f_bfree;
46 __u64 f_files;
Tao Baod7db5942015-01-28 10:07:51 -080047 __u64 f_ffree;
48 __u64 f_bavail;
49 __kernel_fsid_t f_fsid;
50 __u32 f_namelen;
Tao Baod7db5942015-01-28 10:07:51 -080051 __u32 f_flags;
52 __u32 f_spare[5];
Elliott Hughesabd62612013-11-08 11:45:48 -080053};
54#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080055#if _MIPS_SIM == _MIPS_SIM_ABI64
56struct statfs64 {
Tao Baod7db5942015-01-28 10:07:51 -080057 long f_type;
58 long f_bsize;
Tao Baod7db5942015-01-28 10:07:51 -080059 long f_frsize;
60 long f_blocks;
61 long f_bfree;
62 long f_files;
Tao Baod7db5942015-01-28 10:07:51 -080063 long f_ffree;
64 long f_bavail;
65 __kernel_fsid_t f_fsid;
66 long f_namelen;
Tao Baod7db5942015-01-28 10:07:51 -080067 long f_flags;
68 long f_spare[5];
Elliott Hughesabd62612013-11-08 11:45:48 -080069};
70struct compat_statfs64 {
Tao Baod7db5942015-01-28 10:07:51 -080071 __u32 f_type;
72 __u32 f_bsize;
73 __u32 f_frsize;
74 __u32 __pad;
Tao Baod7db5942015-01-28 10:07:51 -080075 __u64 f_blocks;
76 __u64 f_bfree;
77 __u64 f_files;
78 __u64 f_ffree;
Tao Baod7db5942015-01-28 10:07:51 -080079 __u64 f_bavail;
80 __kernel_fsid_t f_fsid;
81 __u32 f_namelen;
82 __u32 f_flags;
Tao Baod7db5942015-01-28 10:07:51 -080083 __u32 f_spare[5];
Elliott Hughesabd62612013-11-08 11:45:48 -080084};
85#endif
86#endif