COHERENT manpages
This page displays the COHERENT manpage for sethostent() [Open and rewind file /etc/hosts].
List of available manpages
Index
sethostent() -- Sockets Function (libsocket) Open and rewind file /etc/hosts #include <netdb.h> void sethostent(stayopen) int stayopen; The function sethostent() is one of a set of functions that interrogate the file /etc/hosts to look up information about a remote host on a network. It opens and rewinds /etc/hosts. Flag stayopen indicates whether /etc/hosts is to stay open after it has been interrogated by gethostbyaddr() or gethostbyname(): if it is zero, then /etc/hosts is closed after it is interrogated; if it is nonzero, then /etc/hosts remains open. See Also endhostent(), gethostbyaddr(), gethostbyname(), libsocket