2 * David Leonard <d@openbsd.org>, 1999. Public Domain.
4 * $OpenBSD: uthread_msync.c,v 1.2 1999/06/09 07:16:17 d Exp $
13 #include "pthread_private.h"
16 msync(addr, len, flags)
24 * XXX This is quite pointless unless we know how to get the
25 * file descriptor associated with the memory, and lock it for
26 * write. The only real use of this wrapper is to guarantee
27 * a cancellation point, as per the standard. sigh.
30 /* This is a cancellation point: */
31 _thread_enter_cancellation_point();
33 ret = _thread_sys_msync(addr, len, flags);
35 /* No longer in a cancellation point: */
36 _thread_leave_cancellation_point();