diff options
Diffstat (limited to 'libc/misc/dirent')
-rw-r--r-- | libc/misc/dirent/closedir.c | 4 | ||||
-rw-r--r-- | libc/misc/dirent/dirfd.c | 3 | ||||
-rw-r--r-- | libc/misc/dirent/opendir.c | 3 | ||||
-rw-r--r-- | libc/misc/dirent/scandir.c | 2 | ||||
-rw-r--r-- | libc/misc/dirent/scandir64.c | 2 |
5 files changed, 10 insertions, 4 deletions
diff --git a/libc/misc/dirent/closedir.c b/libc/misc/dirent/closedir.c index 25c424566..8066b5861 100644 --- a/libc/misc/dirent/closedir.c +++ b/libc/misc/dirent/closedir.c @@ -4,8 +4,7 @@ #include <unistd.h> #include "dirstream.h" - -int closedir(DIR * dir) +int attribute_hidden __closedir(DIR * dir) { int fd; @@ -27,3 +26,4 @@ int closedir(DIR * dir) free(dir); return __close(fd); } +strong_alias(__closedir,closedir) diff --git a/libc/misc/dirent/dirfd.c b/libc/misc/dirent/dirfd.c index b658b5a9c..48e955450 100644 --- a/libc/misc/dirent/dirfd.c +++ b/libc/misc/dirent/dirfd.c @@ -2,7 +2,7 @@ #include <errno.h> #include "dirstream.h" -int dirfd(DIR * dir) +int attribute_hidden __dirfd(DIR * dir) { if (!dir || dir->dd_fd == -1) { __set_errno(EBADF); @@ -11,3 +11,4 @@ int dirfd(DIR * dir) return dir->dd_fd; } +strong_alias(__dirfd,dirfd) diff --git a/libc/misc/dirent/opendir.c b/libc/misc/dirent/opendir.c index fd14213a5..5c9762f85 100644 --- a/libc/misc/dirent/opendir.c +++ b/libc/misc/dirent/opendir.c @@ -11,7 +11,7 @@ /* opendir just makes an open() call - it return NULL if it fails * (open sets errno), otherwise it returns a DIR * pointer. */ -DIR *opendir(const char *name) +DIR attribute_hidden *__opendir(const char *name) { int fd; struct stat statbuf; @@ -54,3 +54,4 @@ DIR *opendir(const char *name) __pthread_mutex_init(&(ptr->dd_lock), NULL); return ptr; } +strong_alias(__opendir,opendir) diff --git a/libc/misc/dirent/scandir.c b/libc/misc/dirent/scandir.c index e80df58dc..cc76bed5e 100644 --- a/libc/misc/dirent/scandir.c +++ b/libc/misc/dirent/scandir.c @@ -21,6 +21,8 @@ */ #define qsort __qsort +#define opendir __opendir +#define closedir __closedir #include <dirent.h> #include <stdio.h> diff --git a/libc/misc/dirent/scandir64.c b/libc/misc/dirent/scandir64.c index 46b6d5cef..377f55fe6 100644 --- a/libc/misc/dirent/scandir64.c +++ b/libc/misc/dirent/scandir64.c @@ -21,6 +21,8 @@ */ #define qsort __qsort +#define opendir __opendir +#define closedir __closedir #include <features.h> #ifdef __UCLIBC_HAS_LFS__ |