Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
OSS Library Calls (e - f) endhostent(3)
NAME
endhostent - Closes the network host database
LIBRARY
G-series native OSS processes: /G/system/sysnn/zinetsrl
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zinetdll |
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/yinetdll |
SYNOPSIS
[#include <sys/socket.h>]
#include <netdb.h>
void endhostent(void);
DESCRIPTION
The endhostent( ) function closes /etc/hosts, the network host database. The database can be
opened by calls to gethostbyaddr(),gethostbyname(),orsethostent( ).
The enumeration of /etc/hosts is a process-wide property shared by all threads. When used in a
multi-threaded application, the endhostent( ) function closes /etc/hosts for all threads.
NOTES
If the sethostent( ) function is called with a nonzero stay_open parameter, /etc/hosts remains
open until the endhostent( ) or exit() function is called.
RETURN VALUES
The endhostent( ) function does not return a value.
ERRORS
The endhostent( ) function does not set errno.
RELATED INFORMATION
Functions: gethostbyaddr(3), gethostbyname(3), sethostent(3).
Files: hosts(4).
527187-017 Hewlett-Packard Company 2−9