This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/10567] New: getaddrinfo() hints==NULL (ai_flags) deviates from POSIX.1


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]