diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-02-11 23:40:07 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-02-11 23:40:07 +0000 |
commit | c941736c92fa3a319221f65f6755659b2a5e0a20 (patch) | |
tree | 768abe1db4337e5b7044c75232843a34ef0ab0f2 /manual/filesys.texi | |
parent | e8d8d7ec98af7c3777fd664adca8be5630afbc90 (diff) | |
download | glibc-c941736c92fa3a319221f65f6755659b2a5e0a20.zip glibc-c941736c92fa3a319221f65f6755659b2a5e0a20.tar.gz glibc-c941736c92fa3a319221f65f6755659b2a5e0a20.tar.bz2 |
Remove _BSD_SOURCE and _SVID_SOURCE.
This is a minimal patch to remove _BSD_SOURCE and _SVID_SOURCE from
the documented user API, making them into aliases for _DEFAULT_SOURCE
with a #warning given, but keeping most of the features.h logic using
those macros and all the exising __USE_* conditionals, on the basis
that all the consequent cleanups will go in followup patches.
Tested x86_64.
* include/features.h: Update comment documenting feature test
macros.
[_BSD_SOURCE || _SVID_SOURCE]: Give #warning. Define
_DEFAULT_SOURCE.
* manual/creature.texi (_BSD_SOURCE): Remove documentation.
(_SVID_SOURCE): Likewise.
(_DEFAULT_SOURCE): Update description of default features.
(Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
with _GNU_SOURCE.
* manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
(S_ISVTX): Likewise.
* manual/math.texi (Mathematical Constants): Likewise.
* manual/signal.texi (Interrupted Primitives): Likewise.
* manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
* math/test-matherr.c (_SVID_SOURCE): Do not define.
* sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
Don't refer to _SVID_SOURCE in warning text.
Diffstat (limited to 'manual/filesys.texi')
-rw-r--r-- | manual/filesys.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/manual/filesys.texi b/manual/filesys.texi index 1c9d7d7..9bf5baf 100644 --- a/manual/filesys.texi +++ b/manual/filesys.texi @@ -893,7 +893,7 @@ seeing this value in a @code{ftw} callback function means the referenced file does not exist. The situation for @code{nftw} is different. This value is only available if the program is compiled with -@code{_BSD_SOURCE} or @code{_XOPEN_EXTENDED} defined before including +@code{_XOPEN_EXTENDED} defined before including the first header. The original SVID systems do not have symbolic links. @end vtable @@ -2553,8 +2553,9 @@ the file's modification time onto disk reliably (the idea being that no-one cares for a swap file). This bit is only available on BSD systems (and those derived from -them). Therefore one has to use the @code{_BSD_SOURCE} feature select -macro to get the definition (@pxref{Feature Test Macros}). +them). Therefore one has to use the @code{_GNU_SOURCE} feature select +macro, or not define any feature test macros, to get the definition +(@pxref{Feature Test Macros}). @end table The actual bit values of the symbols are listed in the table above |