Open System Services Library Calls Reference Manual (G06.27+, H06.04+)

OSS Library Calls (e - f) endhostent(3)
NAME
endhostent - Closes the network host database
LIBRARY
G-series native OSS processes: /G/system/sysnn/zinetsrl
H-series OSS processes: /G/system/zdllnnn/zinetdll
SYNOPSIS
#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().
RETURN VALUES
The endhostent( ) function does not return a value.
ERRORS
The endhostent( ) function does not set errno.
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.
RELATED INFORMATION
Functions: gethostbyaddr(3), gethostbyname(3), sethostent(3).
Files: hosts(4).
527187-004 Hewlett-Packard Company 29