Mercurial > hg > octave-nkf > gnulib-hg
changeset 17809:c09cc53c0ae6
doc: mention that _BSD_SOURCE is deprecated for _DEFAULT_SOURCE
* doc/posix-functions/setjmp.texi: Defining _BSD_SOURCE will induce
warnings unless _DEFAULT_SOURCE is also defined.
author | Pádraig Brady <P@draigBrady.com> |
---|---|
date | Fri, 28 Nov 2014 10:57:31 +0000 |
parents | ca2d3c70f7e8 |
children | bd0ea7eae3d0 |
files | doc/posix-functions/setjmp.texi |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/posix-functions/setjmp.texi +++ b/doc/posix-functions/setjmp.texi @@ -15,9 +15,9 @@ @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