summaryrefslogtreecommitdiff
path: root/libc/misc/dirent
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-08 15:04:23 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-08 15:04:23 +0000
commitafdecae49f81065952da43bb2629fcdb64aad535 (patch)
tree6812f3969a0dc88c8ef60bbbeb41e4a78c064cda /libc/misc/dirent
parentceca97e8eaee5878711eb2c2047859e4ced79be0 (diff)
Use internal versions
Diffstat (limited to 'libc/misc/dirent')
-rw-r--r--libc/misc/dirent/dirfd.c3
-rw-r--r--libc/misc/dirent/scandir.c2
-rw-r--r--libc/misc/dirent/scandir64.c2
3 files changed, 6 insertions, 1 deletions
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/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__