FreeBSD/sys/amd64/linux32/linux32_machdep.c
/*
 * Linux has two extra args, restart and oldmask.  We don't use these,
 * but it seems that "restart" is actually a context pointer that
 * enables the signal to happen with a different register set.
 */
Linux has two extra args, restart and oldmask.  We don't use these,
but it seems that "restart" is actually a context pointer that
enables the signal to happen with a different register set.
Linux has two extra args restart and oldmask . We don ' t use these but it seems that " restart " is actually a context pointer that enables the signal to happen with a different register set .
int
linux_sigsuspend(struct thread *td, struct linux_sigsuspend_args *args)
{
	sigset_t sigmask;
	l_sigset_t mask;
#ifdef DEBUG
	if (ldebug(sigsuspend))
		printf(ARGS(sigsuspend, "%08lx"), (unsigned long)args->mask);
#endif
	LINUX_SIGEMPTYSET(mask);
	mask.__mask = args->mask;
	linux_to_bsd_sigset(&mask, &sigmask);
	return (kern_sigsuspend(td, sigmask));
}
int linux_sigsuspend ( struct thread * td , struct linux_sigsuspend_args * args ) { sigset_t sigmask ; l_sigset_t mask ; #ifdef DEBUG if ( ldebug ( sigsuspend ) ) printf ( ARGS ( sigsuspend , " " ) , ( unsigned long ) args -> mask ) ; #endif LINUX_SIGEMPTYSET ( mask ) ; mask . __mask = args -> mask ; linux_to_bsd_sigset ( & mask , & sigmask ) ; return ( kern_sigsuspend ( td , sigmask ) ) ; }
Linux has two extra args, restart and oldmask.
Linux has two extra args restart and oldmask .