summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_fsync.c
diff options
context:
space:
mode:
authorJonathan Mini <mini@FreeBSD.org>2002-09-16 19:52:52 +0000
committerJonathan Mini <mini@FreeBSD.org>2002-09-16 19:52:52 +0000
commit255ab70cdf6eb0005e7494657f35d318f666de50 (patch)
tree19954471d255ce812e704c80bd079f406bc31378 /lib/libpthread/thread/thr_fsync.c
parent51f42932d165603bcfdafe9d900a392fd821a9eb (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_fsync.c')
-rw-r--r--lib/libpthread/thread/thr_fsync.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/libpthread/thread/thr_fsync.c b/lib/libpthread/thread/thr_fsync.c
index 608e8b055b56..0ede52952dd8 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;