HP-UX Reference (11i v1 00/12) - 3 Library Functions A-M (vol 6)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/!!!intro.3c
________________________________________________________________
___ ___
g
gethostent(3N) gethostent(3N)
The reentrant interfaces function the same as the regular interfaces without the -r suffix. However,
gethostent_r(), gethostbyname_r(), and gethostbyaddr_r() expect to be passed the
address of a struct hostent and will store the address of the result at the supplied parameter. The
passed in address of struct hostent_data in the reentrant interfaces cannot be a NULL pointer.
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).
STANDARDS CONFORMANCE
gethostent() : XPG4
Section 3−−306 − 5 − HP-UX Release 11i: December 2000
___
___