diff options
Diffstat (limited to 'lib/libpthread/thread/thr_fsync.c')
-rw-r--r-- | lib/libpthread/thread/thr_fsync.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/libpthread/thread/thr_fsync.c b/lib/libpthread/thread/thr_fsync.c index 608e8b0..0ede529 100644 --- a/lib/libpthread/thread/thr_fsync.c +++ b/lib/libpthread/thread/thr_fsync.c @@ -38,24 +38,12 @@ __weak_reference(__fsync, fsync); int -_fsync(int fd) -{ - int ret; - - if ((ret = _FD_LOCK(fd, FD_RDWR, NULL)) == 0) { - ret = __sys_fsync(fd); - _FD_UNLOCK(fd, FD_RDWR); - } - return (ret); -} - -int __fsync(int fd) { int ret; _thread_enter_cancellation_point(); - ret = _fsync(fd); + ret = __sys_fsync(fd); _thread_leave_cancellation_point(); return ret; |