FreeBSD/lib/libthr/thread/thr_syscalls.c
/*
 * Cancellation behavior:
 *   Thread may be canceled after system call.
 */
Cancellation behavior:
Thread may be canceled after system call.
Cancellation behavior : Thread may be canceled after system call .
static int
__thr_msync(void *addr, size_t len, int flags)
{
	struct pthread *curthread;
	int ret;
	curthread = _get_curthread();
	_thr_cancel_enter2(curthread, 0);
	ret = __sys_msync(addr, len, flags);
	_thr_cancel_leave(curthread, 1);
	return (ret);
}
static int __thr_msync ( void * addr , size_t len , int flags ) { struct pthread * curthread ; int ret ; curthread = _get_curthread ( ) ; _thr_cancel_enter2 ( curthread , 0 ) ; ret = __sys_msync ( addr , len , flags ) ; _thr_cancel_leave ( curthread , 1 ) ; return ( ret ) ; }
Cancellation behavior:
   Thread may be canceled after system call.
Cancellation behavior : Thread may be canceled after system call .