diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-09-19 23:35:48 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-09-19 23:35:48 -0400 |
commit | 114c80f1416617399c85c2df09dd307532399903 (patch) | |
tree | 5168ccc178e9b854385fa23caab3e055ea7a555c /include/sys/statfs.h | |
parent | 8c07f6eac843c2acb217083d48c4cef95f2b891c (diff) | |
download | musl-114c80f1416617399c85c2df09dd307532399903.tar.gz musl-114c80f1416617399c85c2df09dd307532399903.tar.xz musl-114c80f1416617399c85c2df09dd307532399903.zip |
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.
Diffstat (limited to 'include/sys/statfs.h')
-rw-r--r-- | include/sys/statfs.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/sys/statfs.h b/include/sys/statfs.h index 7eaa7e7c..51ef30a1 100644 --- a/include/sys/statfs.h +++ b/include/sys/statfs.h @@ -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 |