"Specifying hints as NULL is equivalent to setting ai_socktype and ai_protocol to 0; ai_family to AF_UNSPEC; and ai_flags to (AI_V4MAPPED | AI_ADDRCONFIG)."
I notice there are two getaddrinfo manpages, section 3 and 3posix. I didn't spotted that before.
The section 3 manpage correctly documents the glibc implementation. So I the manpage part of this bug is fixed (or wasn't a bug to start with).
Thanks for raising the glibc bug, it'll be interesting to see the reasoning behind the deviation from the POSIX standard.
Thanks for the update.
The getaddrinfo manpage on Ubuntu 9.04 has text.
"Specifying hints as NULL is equivalent to setting ai_socktype and ai_protocol to 0; ai_family to AF_UNSPEC; and ai_flags to (AI_V4MAPPED | AI_ADDRCONFIG)."
I notice there are two getaddrinfo manpages, section 3 and 3posix. I didn't spotted that before.
The section 3 manpage correctly documents the glibc implementation. So I the manpage part of this bug is fixed (or wasn't a bug to start with).
Thanks for raising the glibc bug, it'll be interesting to see the reasoning behind the deviation from the POSIX standard.