X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Fstatvfs.h;h=793490b6dc8c171f00809bbf0412bb48e7e220fa;hb=f12bd8e05c8bb2c3e2b91d635887ec424ef8fbd9;hp=3eaa2dcf3961425a27e2153995ba3385b037d851;hpb=f0b85fd926c5a381416c94be62e7bc20d9fdbdb1;p=musl diff --git a/include/sys/statvfs.h b/include/sys/statvfs.h index 3eaa2dcf..793490b6 100644 --- a/include/sys/statvfs.h +++ b/include/sys/statvfs.h @@ -5,12 +5,12 @@ extern "C" { #endif +#include + #define __NEED_fsblkcnt_t #define __NEED_fsfilcnt_t #include -#include - struct statvfs { unsigned long f_bsize, f_frsize; fsblkcnt_t f_blocks, f_bfree, f_bavail; @@ -26,7 +26,7 @@ struct statvfs { int __reserved[6]; }; -int statvfs (const char *, struct statvfs *); +int statvfs (const char *__restrict, struct statvfs *__restrict); int fstatvfs (int, struct statvfs *); #define ST_RDONLY 1 @@ -40,8 +40,9 @@ int fstatvfs (int, struct statvfs *); #define ST_IMMUTABLE 512 #define ST_NOATIME 1024 #define ST_NODIRATIME 2048 +#define ST_RELATIME 4096 -#ifdef _LARGEFILE64_SOURCE +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) #define statvfs64 statvfs #define fstatvfs64 fstatvfs #define fsblkcnt64_t fsblkcnt_t