Next: setkey
, Previous: setitimer
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
setjmp
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/setjmp.html
Gnulib module: —
Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
setjmp
saves the signal mask in the
jmp_buf
. It does on BSD platforms, and on glibc platforms when
_BSD_SOURCE
(and/or _DEFAULT_SOURCE
on glibc >= 2.19) is defined;
in this case setjmp
behaves like sigsetjmp(.,1)
, and functions
_setjmp
and _longjmp
are available that don’t save or restore
the signal mask. On System V platforms (excluding HP-UX), and on glibc
platforms by default, setjmp
doesn’t save the signal mask.