SIGSETJMP(3) BSD SIGSETJMP(3)
NAME
sigsetjmp - Sets jump point for a nonlocal goto
SYNOPSIS
#include <setjmp.h>
int sigsetjmp (env, savemask)
sigjmp_buf env;
int savemask;
DESCRIPTION
The sigsetjmp macro saves its calling environment in its env argument for
later use by the siglongjmp(3) function. The env argument specifies an
address for a sigjmp_buf structure and the savemask argument specifies
whether the current signal mask should be saved.
If the value of the savemask argument is not 0 (zero) the sigsetjmp
function will also save the process' current signal mask as part of the
calling environment.
DIAGNOSTICS
If the return is from a successful direct invocation, the sigsetjmp
function returns the value 0 (zero). If the return is from a call to the
siglongjmp function, the sigsetjmp(3) function returns a nonzero value.
SEE ALSO
sigaction(2), siglongjmp(3), sigprocmask(2), sigsuspend(2)