Save the environment, including the signal mask
#include <setjmp.h> int sigsetjmp( sigjmp_buf env, int savemask );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The sigsetjmp() function behaves in the same way as the setjmp() function when savemask is zero. If savemask is nonzero, then sigsetjmp() also saves the thread's current signal mask as part of the calling environment.
Zero if invoked directly, or nonzero if the return is the result of a call to siglongjmp().
See setjmp().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |