X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Fstatfs.h;h=d8128a25894c2b647fbd4f673efa927e58737511;hb=e9e2b66e687bc0b4d07305a2b288ed8ff4ae5b4b;hp=7eaa7e7c74938d2d1fcdbd6eac0718a80a016c06;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/include/sys/statfs.h b/include/sys/statfs.h index 7eaa7e7c..d8128a25 100644 --- a/include/sys/statfs.h +++ b/include/sys/statfs.h @@ -1,10 +1,32 @@ #ifndef _SYS_STATFS_H #define _SYS_STATFS_H +#ifdef __cplusplus +extern "C" { +#endif + +#include + #include -#define statfs statvfs -#define fstatfs fstatvfs -#define f_namelen f_namemax +typedef struct { + int __val[2]; +} fsid_t; + +#include + +int statfs (const char *, struct statfs *); +int fstatfs (int, struct statfs *); + +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) +#define statfs64 statfs +#define fstatfs64 fstatfs +#define fsblkcnt64_t fsblkcnt_t +#define fsfilcnt64_t fsfilcnt_t +#endif + +#ifdef __cplusplus +} +#endif #endif