This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: test-netdb.c


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]