endhostent(3) — Subroutines
OSF — Environment_Note_Added
NAME
endhostent − Ends retrieval of network host entries
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <netdb.h>
void endhostent ( void );
DESCRIPTION
The endhostent() function closes the /etc/hosts file, previously opened with the gethostentbyaddr() or gethostentbyname() function.
NOTES
If the most recent sethostent() function has been performed with a nonzero parameter, then the endhostent() function will not close the /etc/hosts file. In this instance, the /etc/hosts file is not closed until a call to the exit() function. A second sethostent() function must be issued with a parameter equal to 0 (zero) in order to ensure that a following endhostent() function will succeed.
FILES
/etc/hostsContains the hostname database.
ENVIRONMENT NOTES
This section describes system features that are not generic to OSF/1 but that are provided in this OSF/1 implementation.
Digital Extensions
The system searches either the local /etc/hosts file or one of the files distributed by BIND or NIS for the requested information. To determine which file or files to search, and in which order, the system uses the switches in the /etc/svc.conf file.
RELATED INFORMATION
Functions: gethostbyaddr(3), gethostbyname(3), gethostent(3)