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]

test-netdb.c



Ulrich told me privatly that using a dynamic buffer for gethostname in
test-netdb.c is broken.

Roland, why did you make this change?  According to the Austin Draft
the previous version was fine.  The only change might be to use
HOST_NAME_MAX instead of MAXHOSTNAMELEN.

On a Linux system gethostname (NULL, 0) will return 0 without setting
ENAMETOOLONG,

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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