This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Remove _BSD_SOURCE and _SVID_SOURCE
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Roland McGrath <roland at hack dot frob dot com>, <libc-alpha at sourceware dot org>
- Date: Wed, 18 Dec 2013 11:37:33 +0000
- Subject: Re: Remove _BSD_SOURCE and _SVID_SOURCE
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1312052315530 dot 16480 at digraph dot polyomino dot org dot uk> <20131216225338 dot 6FA7E7442E at topped-with-meat dot com> <Pine dot LNX dot 4 dot 64 dot 1312172307580 dot 3620 at digraph dot polyomino dot org dot uk> <mvmr49a312a dot fsf at hawking dot suse dot de>
On Wed, 18 Dec 2013, Andreas Schwab wrote:
> "Joseph S. Myers" <joseph@codesourcery.com> writes:
>
> > 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}).
>
> This looks a bit strange. First it says it's only available on BSD, but
> then it's defined by default anyway.
"on BSD systems (and those derived from them)" is a description of the
systems, not necessarily glibc-based, supporting a feature. The
description of feature test macros could always be removed in such cases
where a symbol is available by default, but that may not be the most
helpful thing given that if someone e.g. uses _POSIX_C_SOURCE they'll find
such symbols no longer available.
--
Joseph S. Myers
joseph@codesourcery.com