summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-13 21:25:39 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-13 21:25:39 +0000
commit77e41221589ef8832845fd8c791ebc91250df8f1 (patch)
tree4719e9d0c2e6a3e94525c373a1d33fd769ccd51f /libc
parentd4c18ff6746eba55161fc8bccaea49c5dd51f41b (diff)
Hidden readdir*
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/dirent/readdir.c5
-rw-r--r--libc/misc/dirent/readdir64.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/libc/misc/dirent/readdir.c b/libc/misc/dirent/readdir.c
index 68a465fc8..48d065f68 100644
--- a/libc/misc/dirent/readdir.c
+++ b/libc/misc/dirent/readdir.c
@@ -5,8 +5,8 @@
#include <dirent.h>
#include "dirstream.h"
-
-struct dirent *readdir(DIR * dir)
+#undef readdir
+struct dirent attribute_hidden *__readdir(DIR * dir)
{
ssize_t bytes;
struct dirent *de;
@@ -45,3 +45,4 @@ all_done:
__pthread_mutex_unlock(&(dir->dd_lock));
return de;
}
+strong_alias(__readdir,readdir)
diff --git a/libc/misc/dirent/readdir64.c b/libc/misc/dirent/readdir64.c
index 8d22a314e..51918e363 100644
--- a/libc/misc/dirent/readdir64.c
+++ b/libc/misc/dirent/readdir64.c
@@ -20,8 +20,8 @@
#include <dirent.h>
#include "dirstream.h"
-
-struct dirent64 *readdir64(DIR * dir)
+#undef readdir64
+struct dirent64 attribute_hidden *__readdir64(DIR * dir)
{
ssize_t bytes;
struct dirent64 *de;
@@ -61,5 +61,6 @@ all_done:
return de;
}
+strong_alias(__readdir64,readdir64)
#endif /* __UCLIBC_HAS_LFS__ */