summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_fchflags.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/uthread/uthread_fchflags.c')
-rw-r--r--lib/libc_r/uthread/uthread_fchflags.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc_r/uthread/uthread_fchflags.c b/lib/libc_r/uthread/uthread_fchflags.c
index 0cd37e3..f43c13d 100644
--- a/lib/libc_r/uthread/uthread_fchflags.c
+++ b/lib/libc_r/uthread/uthread_fchflags.c
@@ -7,21 +7,18 @@
#include <sys/stat.h>
#include <unistd.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak fchflags=_fchflags
int
_fchflags(int fd, u_long flags)
{
int ret;
if ((ret = _FD_LOCK(fd, FD_WRITE, NULL)) == 0) {
- ret = _thread_sys_fchflags(fd, flags);
+ ret = __sys_fchflags(fd, flags);
_FD_UNLOCK(fd, FD_WRITE);
}
return (ret);
}
-
-__strong_reference(_fchflags, fchflags);
-#endif
OpenPOWER on IntegriCloud