Closes the /etc/hosts file.
Standard C Library (libc.a)
(libbind)
(libnis)
(liblocal)
#include <netdb.h>
endhostent ()
When using the endhostent subroutine in DNS/BIND name service resolution, endhostent closes the TCP connection which the sethostent subroutine set up.
When using the endhostent subroutine in NIS name resolution or to search the /etc/hosts file, endhostent closes the /etc/hosts file.
Item | Description |
---|---|
/etc/hosts | Contains the host name database. |
/etc/netsvc.conf | Contains the name service ordering. |
/usr/include/netdb.h | Contains the network database structure. |