SCCS-vsn: lib/libc/net/gethostbyname.3 6.15
.\"
.\" %sccs.include.redist.man%
.\"
.\"
.\" %sccs.include.redist.man%
.\"
-.\" @(#)gethostbyname.3 6.14 (Berkeley) %G%
+.\" @(#)gethostbyname.3 6.15 (Berkeley) %G%
.\"
.Dd
.Dt GETHOSTBYNAME 3
.\"
.Dd
.Dt GETHOSTBYNAME 3
The
.Fn sethostent
function
The
.Fn sethostent
function
-is redefined to open and rewind the file. If the
+opens and/or rewinds the file
+.Pa /etc/hosts .
+If the
.Fa stayopen
argument is non-zero,
.Fa stayopen
argument is non-zero,
-the hosts data base will not be closed after each call to
+the file will not be closed after each call to
.Fn gethostbyname
or
.Fn gethostbyaddr .
.Fn gethostbyname
or
.Fn gethostbyaddr .
The
.Fn endhostent
function
The
.Fn endhostent
function
-is redefined to close the file.
.Sh HISTORY
The
.Fn herror
.Sh HISTORY
The
.Fn herror