endhostent() — Close the host information data set
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
Format
X/Open:
#define _XOPEN_SOURCE_EXTENDED 1
#include <netdb.h>
void endhostent(void);
Berkeley sockets:
#define _OE_SOCKETS
#include <netdb.h>
void endhostent();
General description
The endhostent() function closes the local host tables, which contains information about known hosts.
You can use the X_SITE environment variable to specify different local host tables and override those supplied by the z/OS global resolver during initialization. For more information on these local host tables or the environment variables, see z/OS Communications Server: IP Configuration Guide.
Special behavior for C++: To use this function with C++, you must use the _XOPEN_SOURCE_EXTENDED 1 feature test macro.