diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_fchown.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_fchown.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc_r/uthread/uthread_fchown.c b/lib/libc_r/uthread/uthread_fchown.c index 06bfbcb..39ee79d 100644 --- a/lib/libc_r/uthread/uthread_fchown.c +++ b/lib/libc_r/uthread/uthread_fchown.c @@ -34,21 +34,19 @@ #include <sys/types.h> #include <unistd.h> #include <dirent.h> -#ifdef _THREAD_SAFE #include <pthread.h> #include "pthread_private.h" +#pragma weak fchown=_fchown + int _fchown(int fd, uid_t owner, gid_t group) { int ret; if ((ret = _FD_LOCK(fd, FD_WRITE, NULL)) == 0) { - ret = _thread_sys_fchown(fd, owner, group); + ret = __sys_fchown(fd, owner, group); _FD_UNLOCK(fd, FD_WRITE); } return (ret); } - -__strong_reference(_fchown, fchown); -#endif |