test-netdb.c

Ulrich Drepper drepper@redhat.com
Mon Aug 27 12:44:00 GMT 2001


Roland McGrath <roland@frob.com> writes:

> Please see sysdeps/unix/sysv/gethostname.c; I did test the change
> on Linux before I made the commit.

That's not what is used.  gethostname() is a syscall.  And yes, the
code didn't fail but this is surprising.  The first problem I saw was
on Saturday on Alpha.  This is when I asked Andreas to look at it.

The test-netdb code is clearly wrong, regardless of what the sysv
implementation of gethostname does.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



More information about the Libc-hacker mailing list