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

pfee at talk21 dot com sourceware-bugzilla@sourceware.org
Fri Oct 9 22:08:00 GMT 2009


------- Additional Comments From pfee at talk21 dot com  2009-10-09 22:08 -------
Can some details be added as to why the glibc defaults are better than the POSIX standard.

The default only applies if hints==NULL.  If the POSIX defaults are non-optimal, then users of
other systems (e.g. Solaris) would find it useful to know that different settings are preferred. 
On Solaris 10, setting hints to NULL results in POSIX defined behaviour.

Are the reasons behind glibc's defaults unique to glibc or are they related to network effects
which would apply to any OS or C resolver library.  If the settings are valid everywhere then
getaddrinfo() users would benefit from using them on non-glibc platforms.

Thanks.

-- 


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.



More information about the Glibc-bugs mailing list