X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Fstatvfs.h;h=e0839ecac3266a40f3fcd33bc059fa77038a6e1e;hb=e9e2b66e687bc0b4d07305a2b288ed8ff4ae5b4b;hp=fd22faba8afa0d554b01e7e545805f89f71995fd;hpb=114c80f1416617399c85c2df09dd307532399903;p=musl diff --git a/include/sys/statvfs.h b/include/sys/statvfs.h index fd22faba..e0839eca 100644 --- a/include/sys/statvfs.h +++ b/include/sys/statvfs.h @@ -1,6 +1,11 @@ #ifndef _SYS_STATVFS_H #define _SYS_STATVFS_H +#ifdef __cplusplus +extern "C" { +#endif + +#include #define __NEED_fsblkcnt_t #define __NEED_fsfilcnt_t @@ -23,7 +28,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 @@ -38,5 +43,15 @@ int fstatvfs (int, struct statvfs *); #define ST_NOATIME 1024 #define ST_NODIRATIME 2048 +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) +#define statvfs64 statvfs +#define fstatvfs64 fstatvfs +#define fsblkcnt64_t fsblkcnt_t +#define fsfilcnt64_t fsfilcnt_t +#endif + +#ifdef __cplusplus +} +#endif #endif