This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10567] New: getaddrinfo() hints==NULL (ai_flags) deviates from POSIX.1
- From: "mtk dot manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 27 Aug 2009 10:07:14 -0000
- Subject: [Bug libc/10567] New: getaddrinfo() hints==NULL (ai_flags) deviates from POSIX.1
- Reply-to: sourceware-bugzilla at sourceware dot org
POSIX.1-2001 and 2008 say that if the hints argument of getaddrinfo() is NULL, then
the behavior shall be as if it referred to a structure
containing the value zero for the ai_flags, ai_socktype,
and ai_protocol fields, and AF_UNSPEC for the ai_family
field.
However, glibc defines ai_flags as AI_V4MAPPED | AI_ADDRCONFIG for this case. Is
this deviation from POSIX.1 intentional? Should it be fixed?
--
Summary: getaddrinfo() hints==NULL (ai_flags) deviates from
POSIX.1
Product: glibc
Version: 2.10
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: mtk dot manpages at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10567
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.