diff options
Diffstat (limited to 'libc/misc/dirent')
-rw-r--r-- | libc/misc/dirent/opendir.c | 2 | ||||
-rw-r--r-- | libc/misc/dirent/rewinddir.c | 2 | ||||
-rw-r--r-- | libc/misc/dirent/scandir.c | 2 | ||||
-rw-r--r-- | libc/misc/dirent/scandir64.c | 2 | ||||
-rw-r--r-- | libc/misc/dirent/seekdir.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/libc/misc/dirent/opendir.c b/libc/misc/dirent/opendir.c index efa6daba6..82e7f364f 100644 --- a/libc/misc/dirent/opendir.c +++ b/libc/misc/dirent/opendir.c @@ -29,7 +29,7 @@ DIR attribute_hidden *__opendir(const char *name) /* According to POSIX, directory streams should be closed when * exec. From "Anna Pluzhnikov" <besp@midway.uchicago.edu>. */ - if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) + if (__fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) return NULL; if (!(ptr = malloc(sizeof(*ptr)))) { __close(fd); diff --git a/libc/misc/dirent/rewinddir.c b/libc/misc/dirent/rewinddir.c index f41ecc389..18d6547a8 100644 --- a/libc/misc/dirent/rewinddir.c +++ b/libc/misc/dirent/rewinddir.c @@ -12,7 +12,7 @@ void rewinddir(DIR * dir) return; } __pthread_mutex_lock(&(dir->dd_lock)); - lseek(dir->dd_fd, 0, SEEK_SET); + __lseek(dir->dd_fd, 0, SEEK_SET); dir->dd_nextoff = dir->dd_nextloc = dir->dd_size = 0; __pthread_mutex_unlock(&(dir->dd_lock)); } diff --git a/libc/misc/dirent/scandir.c b/libc/misc/dirent/scandir.c index cc76bed5e..72929fb57 100644 --- a/libc/misc/dirent/scandir.c +++ b/libc/misc/dirent/scandir.c @@ -49,7 +49,7 @@ int scandir(const char *dir, struct dirent ***namelist, __set_errno (0); pos = 0; - while ((current = readdir (dp)) != NULL) + while ((current = __readdir (dp)) != NULL) if (selector == NULL || (*selector) (current)) { struct dirent *vnew; diff --git a/libc/misc/dirent/scandir64.c b/libc/misc/dirent/scandir64.c index 377f55fe6..7a661996b 100644 --- a/libc/misc/dirent/scandir64.c +++ b/libc/misc/dirent/scandir64.c @@ -64,7 +64,7 @@ int scandir64(const char *dir, struct dirent64 ***namelist, __set_errno (0); pos = 0; - while ((current = readdir64 (dp)) != NULL) + while ((current = __readdir64 (dp)) != NULL) if (selector == NULL || (*selector) (current)) { struct dirent64 *vnew; diff --git a/libc/misc/dirent/seekdir.c b/libc/misc/dirent/seekdir.c index 507131097..6e841291a 100644 --- a/libc/misc/dirent/seekdir.c +++ b/libc/misc/dirent/seekdir.c @@ -10,7 +10,7 @@ void seekdir(DIR * dir, long int offset) return; } __pthread_mutex_lock(&(dir->dd_lock)); - dir->dd_nextoff = lseek(dir->dd_fd, offset, SEEK_SET); + dir->dd_nextoff = __lseek(dir->dd_fd, offset, SEEK_SET); dir->dd_size = dir->dd_nextloc = 0; __pthread_mutex_unlock(&(dir->dd_lock)); } |