In BSD Unix systems,
longjmp also save and
restore the set of blocked signals; see section Blocking Signals. However,
the POSIX.1 standard requires
longjmp not to
change the set of blocked signals, and provides an additional pair of
sigsetjmp) to get the BSD
The behavior of
longjmp in the GNU library is
controlled by feature test macros; see section Feature Test Macros. The
default in the GNU system is the POSIX.1 behavior rather than the BSD
The facilities in this section are declared in the header file `setjmp.h'.
jmp_buf, except that it can also store state information about the set of blocked signals.
setjmp. If savesigs is nonzero, the set of blocked signals is saved in state and will be restored if a
siglongjmpis later performed with this state.
longjmpexcept for the type of its state argument. If the
sigsetjmpcall that set this state used a nonzero savesigs flag,
siglongjmpalso restores the set of blocked signals.
Go to the first, previous, next, last section, table of contents.