fix the definition of struct statvfs to match lsb abi

at the same time, make struct statfs match the traditional definition
and make it more useful, especially the fsid_t stuff.
This commit is contained in:
Rich Felker 2011-09-19 23:35:48 -04:00
commit 114c80f141
7 changed files with 88 additions and 70 deletions

View file

@ -3,8 +3,13 @@
#include <sys/statvfs.h>
#define statfs statvfs
#define fstatfs fstatvfs
#define f_namelen f_namemax
typedef struct {
int val[2];
} fsid_t;
#include <bits/statfs.h>
int statfs (const char *, struct statfs *);
int fstatfs (int, struct statfs *);
#endif