Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
#define _XOPEN_SOURCE_EXTENDED 1
#include <netdb.h>
void endhostent(void);
#define _OE_SOCKETS
#include <netdb.h>
void endhostent();
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 V2R1.0 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.