summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_fsync.c
diff options
context:
space:
mode:
authormini <mini@FreeBSD.org>2002-09-16 19:52:52 +0000
committermini <mini@FreeBSD.org>2002-09-16 19:52:52 +0000
commit6077cee24228562d15e285d132213eeb718439b7 (patch)
tree19954471d255ce812e704c80bd079f406bc31378 /lib/libpthread/thread/thr_fsync.c
parented825a4bd02ff20716e59e0da4db93b761df2734 (diff)
downloadFreeBSD-src-6077cee24228562d15e285d132213eeb718439b7.zip
FreeBSD-src-6077cee24228562d15e285d132213eeb718439b7.tar.gz
Make libpthread KSE aware.
Reviewed by: deischen, julian Approved by: -arch
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 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;
OpenPOWER on IntegriCloud