diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-25 20:10:56 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-25 20:10:56 +0000 |
commit | bd26ecdcebac54521f8e0e9fd0074db25d97ccfd (patch) | |
tree | 9435aaad0512b4512493246455a446692e44c1c2 /libc/unistd/fpathconf.c | |
parent | bfcbb4284e479504186ededfafd0560da143c0b9 (diff) | |
download | uClibc-alpine-bd26ecdcebac54521f8e0e9fd0074db25d97ccfd.tar.bz2 uClibc-alpine-bd26ecdcebac54521f8e0e9fd0074db25d97ccfd.tar.xz |
Merge from trunk.
Diffstat (limited to 'libc/unistd/fpathconf.c')
-rw-r--r-- | libc/unistd/fpathconf.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/unistd/fpathconf.c b/libc/unistd/fpathconf.c index 5404e7b01..9cb66a927 100644 --- a/libc/unistd/fpathconf.c +++ b/libc/unistd/fpathconf.c @@ -32,6 +32,8 @@ //#include "linux_fsinfo.h" +libc_hidden_proto(fstat) +libc_hidden_proto(fstatfs) /* The Linux kernel headers mention this as a kind of generic value. */ #define LINUX_LINK_MAX 127 @@ -53,7 +55,7 @@ long int fpathconf(int fd, int name) struct statfs fsbuf; /* Determine the filesystem type. */ - if (__fstatfs (fd, &fsbuf) < 0) + if (fstatfs (fd, &fsbuf) < 0) { if (errno == ENOSYS) /* not possible, return the default value. */ @@ -127,7 +129,7 @@ long int fpathconf(int fd, int name) struct statfs buf; int save_errno = errno; - if (__fstatfs (fd, &buf) < 0) + if (fstatfs (fd, &buf) < 0) { if (errno == ENOSYS) { @@ -201,7 +203,7 @@ long int fpathconf(int fd, int name) /* AIO is only allowed on regular files and block devices. */ struct stat st; - if (__fstat (fd, &st) < 0 || (! S_ISREG (st.st_mode) && ! S_ISBLK (st.st_mode))) + if (fstat (fd, &st) < 0 || (! S_ISREG (st.st_mode) && ! S_ISBLK (st.st_mode))) return -1; else return 1; |