mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-16 01:22:18 +03:00
* doc/posix-functions/setjmp.texi: Defining _BSD_SOURCE will induce warnings unless _DEFAULT_SOURCE is also defined.
24 lines
818 B
Plaintext
24 lines
818 B
Plaintext
@node setjmp
|
|
@section @code{setjmp}
|
|
@findex setjmp
|
|
|
|
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/setjmp.html}
|
|
|
|
Gnulib module: ---
|
|
|
|
Portability problems fixed by Gnulib:
|
|
@itemize
|
|
@end itemize
|
|
|
|
Portability problems not fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
POSIX does not specify whether @code{setjmp} saves the signal mask in the
|
|
@code{jmp_buf}. It does on BSD platforms, and on glibc platforms when
|
|
@code{_BSD_SOURCE} (and/or @code{_DEFAULT_SOURCE} on glibc >= 2.19) is defined;
|
|
in this case @code{setjmp} behaves like @code{sigsetjmp(.,1)}, and functions
|
|
@code{_setjmp} and @code{_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, @code{setjmp} doesn't save the signal mask.
|
|
@end itemize
|