date and time created 91/04/12 13:40:31 by bostic
[unix-history] / usr / src / lib / libc / net / gethostbyname.3
index 26d12c8..aefdf29 100644 (file)
@@ -1,13 +1,14 @@
-.\" Copyright (c) 1983,1987 Regents of the University of California.
-.\" All rights reserved.  The Berkeley software License Agreement
-.\" specifies the terms and conditions for redistribution.
+.\" Copyright (c) 1983, 1987 The Regents of the University of California.
+.\" All rights reserved.
 .\"
 .\"
-.\"    @(#)gethostbyname.3     6.8 (Berkeley) %G%
+.\" %sccs.include.redist.man%
 .\"
 .\"
-.TH GETHOSTBYNAME 3N ""
+.\"    @(#)gethostbyname.3     6.12 (Berkeley) %G%
+.\"
+.TH GETHOSTBYNAME 3 ""
 .UC 5
 .SH NAME
 .UC 5
 .SH NAME
-gethostbyname, gethostbyaddr, gethostent, sethostent, endhostent \- get network host entry
+gethostbyname, gethostbyaddr, gethostent, sethostent, endhostent, herror \- get network host entry
 .SH SYNOPSIS
 .B "#include <netdb.h>
 .PP
 .SH SYNOPSIS
 .B "#include <netdb.h>
 .PP
@@ -140,10 +141,12 @@ A retry at some later time may succeed.
 .IP NO_RECOVERY \w'HOST_NOT_FOUND'u+2n
 Some unexpected server failure was encountered.
 This is a non-recoverable error.
 .IP NO_RECOVERY \w'HOST_NOT_FOUND'u+2n
 Some unexpected server failure was encountered.
 This is a non-recoverable error.
-.IP NO_ADDRESS \w'HOST_NOT_FOUND'u+2n
+.IP NO_DATA \w'HOST_NOT_FOUND'u+2n
 The requested name is valid but does not have an IP address; 
 this is not a temporary error.  
 The requested name is valid but does not have an IP address; 
 this is not a temporary error.  
-This means another type of request to the name server using this domain name
+This means that the name is known to the name server but there is no address
+associated with this name.
+Another type of request to the name server using this domain name
 will result in an answer;
 for example, a mail-forwarder may be registered for this domain.
 .RE
 will result in an answer;
 for example, a mail-forwarder may be registered for this domain.
 .RE