|
|
#include <setjmp.h>int sigsetjmp (env, savemask) sigjmp_buf env; int savemask;
void siglongjmp (env,val) sigjmp_buf env; int val;
If the value of the savemask argument is not zero, the sigsetjmp function also saves the process's current signal mask (see signal(M)) as part of the calling environment.
The siglongjmp macro complies with the definition of the longjmp function. If and only if the env argument was initialized by a call to the sigsetjmp function with a non-zero savemask argument, the siglongjmp function restores the saved signal mask.
If the call to siglongjmp is in a different function from the corresponding call to setjmp, variables with register storage class may have unpredictable values.
IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C Language] (ISO/IEC 9945-1)
;
and
NIST FIPS 151-1
.