Closes the /etc/hosts file.
Standard C Library (libc.a) (libbind) (libnis) (liblocal)
#include <netdb.h> void endhostent_r (struct hostent_data *ht_data);
When using the endhostent_r subroutine in DNS/BIND name service resolution, endhostent_r closes the TCP connection which the sethostent_r subroutine set up.
When using the endhostent_r subroutine in NIS name resolution or to search the /etc/hosts file, endhostent_r closes the /etc/hosts file.
ht_data | Points to the hostent_data structure |
/etc/hosts | Contains the host name database. |
/etc/netsvc.conf | Contains the name service ordering. |
/usr/include/netdb.h | Contains the network database structure. |
gethostbyaddr_r Subroutine, gethostbyname_r Subroutine, sethostent_r Subroutine, andgethostent_r Subroutine.