[Previous]
[Contents]
[Next]

sigsetjmp()

save the environment, including the signal mask

Synopsis:

#include <setjmp.h>
int sigsetjmp( sigjmp_buf env, int savemask );

Description:

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 process's current signal mask as part of the calling environment.

Returns:

The sigsetjmp() function returns the same values that setjmp() returns.

Examples:

See setjmp().

Classification:

POSIX 1003.1

Safety:
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

setjmp(), sigaction(), sigprocmask(), sigsuspend()


[Previous]
[Contents]
[Next]