diff options
Diffstat (limited to 'libc/misc/statfs/statvfs.c')
| -rw-r--r-- | libc/misc/statfs/statvfs.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/libc/misc/statfs/statvfs.c b/libc/misc/statfs/statvfs.c index a7c553fb6..6c3bf7c56 100644 --- a/libc/misc/statfs/statvfs.c +++ b/libc/misc/statfs/statvfs.c @@ -18,8 +18,6 @@ 02111-1307 USA. */ #include <features.h> - -#define __USE_GNU #include <errno.h> #include <mntent.h> #include <paths.h> @@ -29,16 +27,26 @@ #include <sys/statfs.h> #include <sys/statvfs.h> +libc_hidden_proto(memset) +libc_hidden_proto(strcmp) +libc_hidden_proto(strsep) +libc_hidden_proto(setmntent) +libc_hidden_proto(getmntent_r) +libc_hidden_proto(endmntent) + +libc_hidden_proto(statfs) +libc_hidden_proto(stat) + int statvfs (const char *file, struct statvfs *buf) { struct statfs fsbuf; struct stat st; /* Get as much information as possible from the system. */ - if (__statfs (file, &fsbuf) < 0) + if (statfs (file, &fsbuf) < 0) return -1; -#define STAT(st) __stat (file, st) +#define STAT(st) stat (file, st) #include "internal_statvfs.c" /* We signal success if the statfs call succeeded. */ |
