sethostent() — Open the host information data set
Standards
| Standards / Extensions | C or C++ | Dependencies |
|---|---|---|
XPG4.2
Single UNIX Specification, Version 3 |
both |
Format
X/Open:
#define _XOPEN_SOURCE_EXTENDED 1
#include <netdb.h>
void sethostent(int stayopen);Berkeley
sockets:
#define _OE_SOCKETS
#include <netdb.h>
void sethostent(int stayopen);General description
The sethostent() function opens and rewinds the local host tables. If the stayopen flag is nonzero, the local host tables remain open after each call.
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.
Note: 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.
Returned value
sethostent() returns no values.