HP-UX Reference (11i v2 03/08) - 3 Library Functions A-M (vol 6)
g
gethostent(3N) gethostent(3N)
The reentrant routines return -1 if the operation is unsuccessful, or, in the case of
gethostent_r(),if
the end of the hosts list has been reached.
0 is returned otherwise.
AUTHOR
gethostent() was developed by Sun Microsystems Inc.
FILES
/etc/hosts
SEE ALSO
named(1M), ypserv(1M), resolver(3N), ypclnt(3C), hosts(4), nsswitch.conf(4), ypfiles(4), nis+(1),
thread_safety(5).
STANDARDS CONFORMANCE
gethostent(): XPG4
Section 3−−372 Hewlett-Packard Company − 5 − HP-UX 11i Version 2: August 2003