test-netdb.c
Ulrich Drepper
drepper@redhat.com
Mon Aug 27 13:12:00 GMT 2001
Roland McGrath <roland@frob.com> writes:
> Really? When I run test-netdb under gdb on x86 and set a bkpt on
> gethostname, I get the C code.
One x86. But not on Alpha.
$ grep gethostname /usr/src/linux/include/asm-alpha/unistd.h
#define __NR_gethostname 87
> The test-netdb code is clearly correct according to the description of
> gethostname in the manual.
The documented behavior is not what POSIX says and not what Linux (the
kernel) implements.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list