diff options
| author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-28 00:08:19 +0000 |
|---|---|---|
| committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-28 00:08:19 +0000 |
| commit | 316667d1503d39e79db42ed4f0091bfa99814b92 (patch) | |
| tree | f19838d4585e9807b8cc8aef1b6105b651dc3711 /libc/misc/statfs/fstatvfs.c | |
| parent | e52a11db3dcc50f2dd72c3f5871afc1d432507de (diff) | |
| download | uClibc-alpine-316667d1503d39e79db42ed4f0091bfa99814b92.tar.bz2 uClibc-alpine-316667d1503d39e79db42ed4f0091bfa99814b92.tar.xz | |
Merge from trunk.
Diffstat (limited to 'libc/misc/statfs/fstatvfs.c')
| -rw-r--r-- | libc/misc/statfs/fstatvfs.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/libc/misc/statfs/fstatvfs.c b/libc/misc/statfs/fstatvfs.c index 14ef6ecce..c28132022 100644 --- a/libc/misc/statfs/fstatvfs.c +++ b/libc/misc/statfs/fstatvfs.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,27 @@ #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(fstatfs) +libc_hidden_proto(fstat) +libc_hidden_proto(stat) + int fstatvfs (int fd, struct statvfs *buf) { struct statfs fsbuf; struct stat st; /* Get as much information as possible from the system. */ - if (__fstatfs (fd, &fsbuf) < 0) + if (fstatfs (fd, &fsbuf) < 0) return -1; -#define STAT(st) __fstat (fd, st) +#define STAT(st) fstat (fd, st) #include "internal_statvfs.c" /* We signal success if the statfs call succeeded. */ |
