X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fsys%2Fstatfs.h;h=c1cbe9e082685b0c9e40e18b8941dbfdd3a8e9f2;hp=7eaa7e7c74938d2d1fcdbd6eac0718a80a016c06;hb=f0b85fd926c5a381416c94be62e7bc20d9fdbdb1;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/include/sys/statfs.h b/include/sys/statfs.h index 7eaa7e7c..c1cbe9e0 100644 --- a/include/sys/statfs.h +++ b/include/sys/statfs.h @@ -1,10 +1,30 @@ #ifndef _SYS_STATFS_H #define _SYS_STATFS_H +#ifdef __cplusplus +extern "C" { +#endif + #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 *); + +#ifdef _LARGEFILE64_SOURCE +#define statfs64 statfs +#define fstatfs64 fstatfs +#define fsblkcnt64_t fsblkcnt_t +#define fsfilcnt64_t fsfilcnt_t +#endif + +#ifdef __cplusplus +} +#endif #endif