summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_getdirentries.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/uthread/uthread_getdirentries.c')
-rw-r--r--lib/libc_r/uthread/uthread_getdirentries.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc_r/uthread/uthread_getdirentries.c b/lib/libc_r/uthread/uthread_getdirentries.c
index 3cd5450..cda3f5d 100644
--- a/lib/libc_r/uthread/uthread_getdirentries.c
+++ b/lib/libc_r/uthread/uthread_getdirentries.c
@@ -33,21 +33,19 @@
*/
#include <sys/types.h>
#include <dirent.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak getdirentries=_getdirentries
+
int
_getdirentries(int fd, char *buf, int nbytes, long *basep)
{
int ret;
if ((ret = _FD_LOCK(fd, FD_RDWR, NULL)) == 0) {
- ret = _thread_sys_getdirentries(fd, buf, nbytes, basep);
+ ret = __sys_getdirentries(fd, buf, nbytes, basep);
_FD_UNLOCK(fd, FD_RDWR);
}
return (ret);
}
-
-__strong_reference(_getdirentries, getdirentries);
-#endif
OpenPOWER on IntegriCloud