From 9724a293f7f7df7e791661a0a5159fe124c80f7d Mon Sep 17 00:00:00 2001 From: obrien Date: Tue, 9 Oct 2007 14:16:39 +0000 Subject: Repo copy libpthreads to libkse. This introduces the WITHOUT_LIBKSE nob, and changes WITHOUT_LIBPTHREADS to mean with neither threading libs. Approved by: re(kensmith) --- lib/libpthread/thread/thr_msync.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 lib/libpthread/thread/thr_msync.c (limited to 'lib/libpthread/thread/thr_msync.c') diff --git a/lib/libpthread/thread/thr_msync.c b/lib/libpthread/thread/thr_msync.c deleted file mode 100644 index 66e88c5..0000000 --- a/lib/libpthread/thread/thr_msync.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * David Leonard , 1999. Public Domain. - * - * $OpenBSD: uthread_msync.c,v 1.2 1999/06/09 07:16:17 d Exp $ - * - * $FreeBSD$ - */ - -#include -#include -#include -#include "thr_private.h" - -LT10_COMPAT_PRIVATE(__msync); -LT10_COMPAT_DEFAULT(msync); - -__weak_reference(__msync, msync); - -int -__msync(void *addr, size_t len, int flags) -{ - struct pthread *curthread = _get_curthread(); - int ret; - - /* - * XXX This is quite pointless unless we know how to get the - * file descriptor associated with the memory, and lock it for - * write. The only real use of this wrapper is to guarantee - * a cancellation point, as per the standard. sigh. - */ - _thr_cancel_enter(curthread); - ret = __sys_msync(addr, len, flags); - _thr_cancel_leave(curthread, 1); - - return ret; -} -- cgit v1.1