This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix netdb.h addrinfo namespace (bug 18529)
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Fri, 12 Jun 2015 15:56:50 -0700 (PDT)
- Subject: Re: Fix netdb.h addrinfo namespace (bug 18529)
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1506122147090 dot 17561 at digraph dot polyomino dot org dot uk> <20150612222117 dot 83AC02C3BCC at topped-with-meat dot com> <alpine dot DEB dot 2 dot 10 dot 1506122237120 dot 17561 at digraph dot polyomino dot org dot uk>
> I've made the existing comment refer to POSIX.1:2001 instead of POSIX.1g
> (a reference to POSIX.1:2001 seems the most useful in terms of the
> standards supported by glibc). I don't think the fact that there was once
> a bug is particularly useful information to go in comments in the header.
The "bug" here was an explicit change in the API surface that affects the
build choices of code that is trying to be portable. So I think it is
appropriate to make clear how the API has evolved over time.
> I think of these changes (that do not affect _DEFAULT_SOURCE or
> _GNU_SOURCE and do not obsolete or remove any API) as much like any other
> ordinary bug fix
I don't know why _GNU_SOURCE and _DEFAULT_SOURCE are special in your mind
for this subject. The API for users of a different feature-test macro
state has changed, so the API has changed.