SCCS-vsn: lib/libc/net/gethostbyname.3 6.3
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)gethostbyname.3 6.2 (Berkeley) %G%
+.\" @(#)gethostbyname.3 6.3 (Berkeley) %G%
.\"
.TH GETHOSTENT 3N ""
.UC 5
.\"
.TH GETHOSTENT 3N ""
.UC 5
and
.I gethostbyaddr
each return a pointer to an object with the
and
.I gethostbyaddr
each return a pointer to an object with the
-following structure
-containing the broken-out
+following structure.
+Depending on how the library is configured,
+this structure contains either the broken-out
fields of a line in the network host data base,
fields of a line in the network host data base,
+.IR /etc/hosts ,
+or similar information obtained from the name server,
+.IR named (8).
.I stayopen
flag is non-zero,
the host data base will not be closed after each call to
.I stayopen
flag is non-zero,
the host data base will not be closed after each call to
or
.IR gethostbyaddr .
.PP
or
.IR gethostbyaddr .
.PP
.PP
On sites configured to use the name server
.IR named (8)
.PP
On sites configured to use the name server
.IR named (8)
.IR /etc/hosts ,
.I gethostent
is not available
.IR /etc/hosts ,
.I gethostent
is not available