]> Savannah Git Hosting - gnulib.git/commitdiff
doc: mention that _BSD_SOURCE is deprecated for _DEFAULT_SOURCE
authorPádraig Brady <P@draigBrady.com>
Fri, 28 Nov 2014 10:57:31 +0000 (10:57 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 28 Nov 2014 11:10:09 +0000 (11:10 +0000)
* doc/posix-functions/setjmp.texi: Defining _BSD_SOURCE will induce
warnings unless _DEFAULT_SOURCE is also defined.

doc/posix-functions/setjmp.texi

index fbf6cc5b5018cc5a1208964063cc0ab65c37382f..fbed1093cd22f04ef4acc115b53d5a70dd762734 100644 (file)
@@ -15,9 +15,9 @@ Portability problems not fixed by Gnulib:
 @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} 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.
+@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