From 942357a798dd789d081616ce696f1221f7d27dd2 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 8 Dec 2005 14:17:36 +0000 Subject: Implement __x versions --- libc/misc/dirent/closedir.c | 4 ++-- libc/misc/dirent/opendir.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'libc/misc/dirent') 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 #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/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) -- cgit v1.2.3