Saves or restores stack context and signal mask.
#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.
These subroutines are part of Base Operating System (BOS) Runtime.
The setjmp or longjmp subroutine, sigaction subroutine, sigprocmask subroutine, sigsuspend subroutine.