summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_fsync.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2001-01-24 13:03:38 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2001-01-24 13:03:38 +0000
commite5106342c6de9cbe26c4827e4e29bae309cd8cfb (patch)
tree5199387f09deaa21f12482317c165f815c4e8c2b /lib/libpthread/thread/thr_fsync.c
parentf9447cd11209a5fb5ecef3f4cbe539e990f3b1bd (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_fsync.c')
-rw-r--r--lib/libpthread/thread/thr_fsync.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpthread/thread/thr_fsync.c b/lib/libpthread/thread/thr_fsync.c
index 0d8832077238..b90d8963b9f9 100644
--- a/lib/libpthread/thread/thr_fsync.c
+++ b/lib/libpthread/thread/thr_fsync.c
@@ -32,24 +32,25 @@
* $FreeBSD$
*/
#include <unistd.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak fsync=__fsync
+
int
_fsync(int fd)
{
int ret;
if ((ret = _FD_LOCK(fd, FD_RDWR, NULL)) == 0) {
- ret = _thread_sys_fsync(fd);
+ ret = __sys_fsync(fd);
_FD_UNLOCK(fd, FD_RDWR);
}
return (ret);
}
int
-fsync(int fd)
+__fsync(int fd)
{
int ret;
@@ -59,4 +60,3 @@ fsync(int fd)
return ret;
}
-#endif