summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/fpathconf.c6
-rw-r--r--libc/unistd/pathconf.c6
-rw-r--r--libc/unistd/usershell.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/libc/unistd/fpathconf.c b/libc/unistd/fpathconf.c
index 2f6cf7214..5404e7b01 100644
--- a/libc/unistd/fpathconf.c
+++ b/libc/unistd/fpathconf.c
@@ -53,7 +53,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 +127,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 +201,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;
diff --git a/libc/unistd/pathconf.c b/libc/unistd/pathconf.c
index affec4e69..579b99be0 100644
--- a/libc/unistd/pathconf.c
+++ b/libc/unistd/pathconf.c
@@ -57,7 +57,7 @@ long int pathconf(const char *path, int name)
struct statfs fsbuf;
/* Determine the filesystem type. */
- if (statfs (path, &fsbuf) < 0)
+ if (__statfs (path, &fsbuf) < 0)
{
if (errno == ENOSYS)
/* not possible, return the default value. */
@@ -131,7 +131,7 @@ long int pathconf(const char *path, int name)
struct statfs buf;
int save_errno = errno;
- if (statfs (path, &buf) < 0)
+ if (__statfs (path, &buf) < 0)
{
if (errno == ENOSYS)
{
@@ -205,7 +205,7 @@ long int pathconf(const char *path, int name)
/* AIO is only allowed on regular files and block devices. */
struct stat st;
- if (stat (path, &st) < 0 || (! S_ISREG (st.st_mode) && ! S_ISBLK (st.st_mode)))
+ if (__stat (path, &st) < 0 || (! S_ISREG (st.st_mode) && ! S_ISBLK (st.st_mode)))
return -1;
else
return 1;
diff --git a/libc/unistd/usershell.c b/libc/unistd/usershell.c
index 2e1f75d38..143dc2630 100644
--- a/libc/unistd/usershell.c
+++ b/libc/unistd/usershell.c
@@ -103,7 +103,7 @@ static char ** initshells(void)
if ((fp = fopen(_PATH_SHELLS, "r")) == NULL)
return (char **) validsh;
- if (fstat(fileno(fp), &statb) == -1) {
+ if (__fstat(fileno(fp), &statb) == -1) {
goto cleanup;
}
if ((strings = malloc((unsigned)statb.st_size + 1)) == NULL) {