From 114c80f1416617399c85c2df09dd307532399903 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 19 Sep 2011 23:35:48 -0400 Subject: 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. --- include/sys/statfs.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'include/sys/statfs.h') 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 -#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 *); #endif -- cgit v1.2.1