Note that gethostbyname() only resolves AF_INET addresses, i. e. IPv4,
ltrace (on SuSE Linux 9.2) reveals that gethostbyname returns NULL. This
is correct behavior. POSIX:

: The gethostbyname() function shall return an entry containing addresses
: of address family AF_INET for the host with name name.  The gethostby-
: name() function need not be reentrant.  A function that is not required
: to be reentrant is not required to be thread-safe.
<http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyname.html>

The glibc manual page is bogus and doesn't match the info file or actual
behavior and needs to be fixed. Please file a bug report against glibc.

-- 
Matthias Andree


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to