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.
| Item | Description |
|---|---|
| ht_data | Points to the hostent_data structure |
| 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. |