1 // Copyright (C) 2017 The Android Open Source Project
2 // SPDX-License-Identifier: BSD-2-Clause
3
4 #include <sys/statvfs.h>
5
6 #include "header_checks.h"
7
sys_statvfs_h()8 static void sys_statvfs_h() {
9 TYPE(struct statvfs);
10 STRUCT_MEMBER(struct statvfs, unsigned long, f_bsize);
11 STRUCT_MEMBER(struct statvfs, unsigned long, f_frsize);
12 STRUCT_MEMBER(struct statvfs, fsblkcnt_t, f_blocks);
13 STRUCT_MEMBER(struct statvfs, fsblkcnt_t, f_bfree);
14 STRUCT_MEMBER(struct statvfs, fsblkcnt_t, f_bavail);
15 STRUCT_MEMBER(struct statvfs, fsfilcnt_t, f_files);
16 STRUCT_MEMBER(struct statvfs, fsfilcnt_t, f_ffree);
17 STRUCT_MEMBER(struct statvfs, fsfilcnt_t, f_favail);
18 STRUCT_MEMBER(struct statvfs, unsigned long, f_fsid);
19 STRUCT_MEMBER(struct statvfs, unsigned long, f_flag);
20 STRUCT_MEMBER(struct statvfs, unsigned long, f_namemax);
21
22 TYPE(fsblkcnt_t);
23 TYPE(fsfilcnt_t);
24
25 MACRO(ST_RDONLY);
26 MACRO(ST_NOSUID);
27
28 FUNCTION(fstatvfs, int (*f)(int, struct statvfs*));
29 FUNCTION(statvfs, int (*f)(const char*, struct statvfs*));
30 }
31