Saves or restores stack context and signal mask.
Standard C Library (libc.a)
#include <setjmp.h>
int sigsetjmp ( Environment, SaveMask)
sigjmp_buf Environment;
int SaveMask;
void siglongjmp (Environment, Value)
sigjmp_buf Environment;
int Value;
The sigsetjmp subroutine saves the current stack context, and if the value of the SaveMask parameter is not 0, the sigsetjmp subroutine also saves the current signal mask of the process as part of the calling environment.
The siglongjmp subroutine restores the saved signal mask only if the Environment parameter was initialized by a call to the sigsetjmp subroutine with a nonzero SaveMask parameter argument.
The sigsetjmp subroutine returns a value of 0. The siglongjmp subroutine returns a nonzero value.
The setjmp or longjmp (setjmp or longjmp Subroutine) subroutine, sigaction (sigaction, sigvec, or signal Subroutine) subroutine, sigprocmask (sigprocmask, sigsetmask, or sigblock Subroutine) subroutine, sigsuspend (sigsuspend or sigpause Subroutine) subroutine.