X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Fstatvfs.h;h=b9f72b7ee1fa39dded79e8fabcaedacc94775b0a;hb=8e092217dd92ad3e95257255602c711b3304e38f;hp=6479be6faa287d2e84b3666a2b086e0c23c1d08f;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/include/sys/statvfs.h b/include/sys/statvfs.h index 6479be6f..b9f72b7e 100644 --- a/include/sys/statvfs.h +++ b/include/sys/statvfs.h @@ -1,20 +1,36 @@ #ifndef _SYS_STATVFS_H #define _SYS_STATVFS_H +#ifdef __cplusplus +extern "C" { +#endif #define __NEED_fsblkcnt_t #define __NEED_fsfilcnt_t #include -#include +#include + +struct statvfs { + unsigned long f_bsize, f_frsize; + fsblkcnt_t f_blocks, f_bfree, f_bavail; + fsfilcnt_t f_files, f_ffree, f_favail; +#if __BYTE_ORDER == __LITTLE_ENDIAN + unsigned long f_fsid; + unsigned :8*(2*sizeof(int)-sizeof(long)); +#else + unsigned :8*(2*sizeof(int)-sizeof(long)); + unsigned long f_fsid; +#endif + unsigned long f_flag, f_namemax; + int __reserved[6]; +}; int statvfs (const char *, struct statvfs *); int fstatvfs (int, struct statvfs *); #define ST_RDONLY 1 #define ST_NOSUID 2 - -#if 0 #define ST_NODEV 4 #define ST_NOEXEC 8 #define ST_SYNCHRONOUS 16 @@ -24,7 +40,9 @@ int fstatvfs (int, struct statvfs *); #define ST_IMMUTABLE 512 #define ST_NOATIME 1024 #define ST_NODIRATIME 2048 -#endif +#ifdef __cplusplus +} +#endif #endif