diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-06-28 12:43:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-06-28 12:43:04 +0000 |
commit | 738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82 (patch) | |
tree | bc18f398e0681d23de9f337fc065fffdad6c20bb /sysdeps/unix/sysv/linux/gethostid.c | |
parent | 419505579c2befc057e2687f6d7b948c417bae2c (diff) | |
download | glibc-738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82.tar.gz glibc-738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82.tar.xz glibc-738d1a5a43e97ee81d7b62a3c7a5f754f5b51b82.zip |
Update.
1999-06-28 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/gethostid.c: Test for gethostbyname_r function correctly. * sunrpc/getrpcport.c: Test for gethostbyname_r function correctly. * sunrpc/clnt_simp.c: Test for gethostbyname_r function correctly. * sunrpc/clnt_gen.c: Test for gethostbyname_r and getprotobyname_r functions correctly. * inet/rexec.c (rexec): Test for gethostbyname_r result correctly. * inet/rcmd.c: Test for gethostbyname_r result correctly. Optimize file reading a bit. * sysdeps/generic/glob.c: Test for getpwnam_r result correctly. 1999-06-28 Andreas Jaeger <aj@arthur.rhein-neckar.de> * manual/string.texi (Copying and Concatenation): Mention that strndup is a GNU extension. 1999-06-28 Andreas Jaeger <aj@arthur.rhein-neckar.de> * pwd/getpw.c (__getpw): Fix check for error return.
Diffstat (limited to 'sysdeps/unix/sysv/linux/gethostid.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/gethostid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c index 3ef6ac63fb..f2ebbf2b6a 100644 --- a/sysdeps/unix/sysv/linux/gethostid.c +++ b/sysdeps/unix/sysv/linux/gethostid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as @@ -91,7 +91,7 @@ gethostid () /* To get the IP address we need to know the host name. */ while (__gethostbyname_r (hostname, &hostbuf, buffer, buflen, &hp, &herr) - < 0) + != 0) if (herr != NETDB_INTERNAL || errno != ERANGE) return 0; else |