This is the mail archive of the
mailing list for the glibc project.
Re: Remove _BSD_SOURCE and _SVID_SOURCE
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Tue, 11 Feb 2014 10:04:57 -0800 (PST)
- 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> <20131220211322 dot F039874435 at topped-with-meat dot com> <Pine dot LNX dot 4 dot 64 dot 1402072338170 dot 12232 at digraph dot polyomino dot org dot uk>
> Ping for the minimal patch
> <https://sourceware.org/ml/libc-alpha/2013-12/msg00652.html>, now 2.19 is
> out with _DEFAULT_SOURCE and the __FAVOR_BSD removal. (Obviously a new
> NEWS entry would go under the 2.20 section in NEWS rather than applying
> the NEWS changes from that patch.)
I guess that is OK now. The sys/ipc.h change should mention _GNU_SOURCE.
It's odd to mention _DEFAULT_SOURCE, since it's the default. If we
encourage anything in particular, it should be _GNU_SOURCE.
I think before we simplify the __USE_* macro set, we should first use it as
a pointer toward obsolete interfaces we can deprecate or remove. sigvec
and some of the other pre-POSIX signal functions come to mind. Also
sys_errlist et al, since everything should be using strerror/strsigal by
now. And audit of the exported symbols would be good.