diff options
Diffstat (limited to 'libc/misc')
-rw-r--r-- | libc/misc/statfs/fstatfs64.c | 5 | ||||
-rw-r--r-- | libc/misc/statfs/fstatvfs.c | 3 | ||||
-rw-r--r-- | libc/misc/statfs/fstatvfs64.c | 8 | ||||
-rw-r--r-- | libc/misc/statfs/statfs64.c | 6 |
4 files changed, 14 insertions, 8 deletions
diff --git a/libc/misc/statfs/fstatfs64.c b/libc/misc/statfs/fstatfs64.c index a7f94b125..dfd027941 100644 --- a/libc/misc/statfs/fstatfs64.c +++ b/libc/misc/statfs/fstatfs64.c @@ -26,7 +26,8 @@ #include <stddef.h> /* Experimentally off - libc_hidden_proto(memcpy) */ -libc_hidden_proto(fstatfs) +extern __typeof(fstatfs) __libc_fstatfs; +libc_hidden_proto(__libc_fstatfs) /* Return information about the filesystem on which FD resides. */ libc_hidden_proto(fstatfs64) @@ -34,7 +35,7 @@ int fstatfs64 (int fd, struct statfs64 *buf) { struct statfs buf32; - if (fstatfs (fd, &buf32) < 0) + if (__libc_fstatfs (fd, &buf32) < 0) return -1; buf->f_type = buf32.f_type; diff --git a/libc/misc/statfs/fstatvfs.c b/libc/misc/statfs/fstatvfs.c index e21235e01..7956e014b 100644 --- a/libc/misc/statfs/fstatvfs.c +++ b/libc/misc/statfs/fstatvfs.c @@ -33,6 +33,7 @@ libc_hidden_proto(setmntent) libc_hidden_proto(getmntent_r) libc_hidden_proto(endmntent) +libc_hidden_proto(stat) #ifndef __USE_FILE_OFFSET64 extern int fstatfs (int __fildes, struct statfs *__buf) @@ -50,6 +51,7 @@ extern __typeof(fstatfs) __libc_fstatfs; libc_hidden_proto(__libc_fstatfs) libc_hidden_proto(fstat) libc_hidden_proto(stat) +libc_hidden_proto(fstatvfs) int fstatvfs (int fd, struct statvfs *buf) { @@ -66,3 +68,4 @@ int fstatvfs (int fd, struct statvfs *buf) /* We signal success if the statfs call succeeded. */ return 0; } +libc_hidden_def(fstatvfs) diff --git a/libc/misc/statfs/fstatvfs64.c b/libc/misc/statfs/fstatvfs64.c index 2d44e4217..638a211a7 100644 --- a/libc/misc/statfs/fstatvfs64.c +++ b/libc/misc/statfs/fstatvfs64.c @@ -38,11 +38,13 @@ libc_hidden_proto(endmntent) #undef stat #define stat stat64 -#if defined __UCLIBC_LINUX_SPECIFIC__ +#if !defined __UCLIBC_LINUX_SPECIFIC__ +libc_hidden_proto(fstatvfs) +#else libc_hidden_proto(fstatfs64) -libc_hidden_proto(fstat64) #endif -libc_hidden_proto(stat64) +libc_hidden_proto(fstat64) +libc_hidden_proto(stat) int fstatvfs64 (int fd, struct statvfs64 *buf) { diff --git a/libc/misc/statfs/statfs64.c b/libc/misc/statfs/statfs64.c index 18ce33be8..6b3558b5e 100644 --- a/libc/misc/statfs/statfs64.c +++ b/libc/misc/statfs/statfs64.c @@ -23,9 +23,9 @@ #include <stddef.h> #include <sys/statfs.h> - /* Experimentally off - libc_hidden_proto(memcpy) */ -libc_hidden_proto(statfs) +extern __typeof(statfs) __libc_statfs; +libc_hidden_proto(__libc_statfs) /* Return information about the filesystem on which FILE resides. */ libc_hidden_proto(statfs64) @@ -33,7 +33,7 @@ int statfs64 (const char *file, struct statfs64 *buf) { struct statfs buf32; - if (statfs (file, &buf32) < 0) + if (__libc_statfs (file, &buf32) < 0) return -1; buf->f_type = buf32.f_type; |