public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug network/18529] New: netdb.h addrinfo namespace
@ 2015-06-12 21:06 jsm28 at gcc dot gnu.org
  2015-06-12 22:36 ` [Bug network/18529] " cvs-commit at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-06-12 21:06 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18529

            Bug ID: 18529
           Summary: netdb.h addrinfo namespace
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org
  Target Milestone: ---

netdb.h declares interfaces such as getaddrinfo if __USE_POSIX, i.e.
POSIX.1:1990 or later.  However, these interfaces were new in the 2001 edition
of POSIX, although the header was in XPG4 and UNIX98, so they should not be
declared for XPG4 or UNIX98.  (This produces spurious linknamespace test
failures, although there are other failures for this header as well for the
same standards.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug network/18529] netdb.h addrinfo namespace
  2015-06-12 21:06 [Bug network/18529] New: netdb.h addrinfo namespace jsm28 at gcc dot gnu.org
@ 2015-06-12 22:36 ` cvs-commit at gcc dot gnu.org
  2015-06-12 22:49 ` jsm28 at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-06-12 22:36 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18529

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  8737be806407be51f046b358d8824c4c968912de (commit)
      from  b400fdefc71ccc2a118ddfa78d3658d3ea3af7a2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8737be806407be51f046b358d8824c4c968912de

commit 8737be806407be51f046b358d8824c4c968912de
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Jun 12 22:35:07 2015 +0000

    Fix netdb.h addrinfo namespace (bug 18529).

    netdb.h declares interfaces such as getaddrinfo if __USE_POSIX,
    i.e. POSIX.1:1990 or later.  However, these interfaces were new in the
    2001 edition of POSIX, although the header was in XPG4 and UNIX98, so
    they should not be declared for XPG4 or UNIX98.  (This produces
    spurious linknamespace test failures, although there are other
    failures for this header as well for the same standards so this patch
    doesn't remove any XFAILs.)  This patch corrects the condition, and
    the conform/ test expectations which were similarly wrong.

    Tested for x86_64 and x86 (testsuite, and that installed stripped
    shared libraries are unchanged by the patch).

        [BZ #18529]
        * resolv/netdb.h [__USE_POSIX]: Change condition to
        [__USE_XOPEN2K].
        * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
        not expect.
        [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
        [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
        [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
        [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
        [XPG4 || UNIX98] (AI_ALL): Likewise.
        [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
        [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
        [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
        [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
        [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
        [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
        [XPG4 || UNIX98] (NI_DGRAM): Likewise.
        [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
        [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
        [XPG4 || UNIX98] (EAI_FAIL): Likewise.
        [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
        [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
        [XPG4 || UNIX98] (EAI_NONAME): Likewise.
        [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
        [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
        [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
        [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
        [XPG4 || UNIX98] (freeaddrinfo): Likewise.
        [XPG4 || UNIX98] (gai_strerror): Likewise.
        [XPG4 || UNIX98] (getaddrinfo): Likewise.
        [XPG4 || UNIX98] (getnameinfo): Likewise.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                 |   32 ++++++++++++++++++++++++++++++++
 NEWS                      |    2 +-
 conform/data/netdb.h-data |    6 ++++++
 resolv/netdb.h            |    4 ++--
 4 files changed, 41 insertions(+), 3 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug network/18529] netdb.h addrinfo namespace
  2015-06-12 21:06 [Bug network/18529] New: netdb.h addrinfo namespace jsm28 at gcc dot gnu.org
  2015-06-12 22:36 ` [Bug network/18529] " cvs-commit at gcc dot gnu.org
@ 2015-06-12 22:49 ` jsm28 at gcc dot gnu.org
  2015-08-12 15:45 ` orion at cora dot nwra.com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-06-12 22:49 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18529

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Fixed for 2.22.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug network/18529] netdb.h addrinfo namespace
  2015-06-12 21:06 [Bug network/18529] New: netdb.h addrinfo namespace jsm28 at gcc dot gnu.org
  2015-06-12 22:36 ` [Bug network/18529] " cvs-commit at gcc dot gnu.org
  2015-06-12 22:49 ` jsm28 at gcc dot gnu.org
@ 2015-08-12 15:45 ` orion at cora dot nwra.com
  2015-08-12 15:50 ` orion at cora dot nwra.com
  2015-08-12 16:18 ` orion at cora dot nwra.com
  4 siblings, 0 replies; 6+ messages in thread
From: orion at cora dot nwra.com @ 2015-08-12 15:45 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18529

Orion Poplawski <orion at cora dot nwra.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |orion at cora dot nwra.com

--- Comment #4 from Orion Poplawski <orion at cora dot nwra.com> ---
The man page for getaddrinfo() states:

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

       getaddrinfo(), freeaddrinfo(), gai_strerror():
           _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE

Should _POSIX_SOURCE then be removed from that list as it no longer exposes
getaddrinfo()?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug network/18529] netdb.h addrinfo namespace
  2015-06-12 21:06 [Bug network/18529] New: netdb.h addrinfo namespace jsm28 at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-08-12 15:45 ` orion at cora dot nwra.com
@ 2015-08-12 15:50 ` orion at cora dot nwra.com
  2015-08-12 16:18 ` orion at cora dot nwra.com
  4 siblings, 0 replies; 6+ messages in thread
From: orion at cora dot nwra.com @ 2015-08-12 15:50 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18529

--- Comment #5 from Orion Poplawski <orion at cora dot nwra.com> ---
To get __USE_XOPEN2K looks like you need:

 _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug network/18529] netdb.h addrinfo namespace
  2015-06-12 21:06 [Bug network/18529] New: netdb.h addrinfo namespace jsm28 at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-08-12 15:50 ` orion at cora dot nwra.com
@ 2015-08-12 16:18 ` orion at cora dot nwra.com
  4 siblings, 0 replies; 6+ messages in thread
From: orion at cora dot nwra.com @ 2015-08-12 16:18 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18529

--- Comment #6 from Orion Poplawski <orion at cora dot nwra.com> ---
I've sent an email to the man-pages folks giving them the update.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-08-12 16:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-12 21:06 [Bug network/18529] New: netdb.h addrinfo namespace jsm28 at gcc dot gnu.org
2015-06-12 22:36 ` [Bug network/18529] " cvs-commit at gcc dot gnu.org
2015-06-12 22:49 ` jsm28 at gcc dot gnu.org
2015-08-12 15:45 ` orion at cora dot nwra.com
2015-08-12 15:50 ` orion at cora dot nwra.com
2015-08-12 16:18 ` orion at cora dot nwra.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).