HP-UX Reference (11i v3 07/02) - 3 Library Functions A-M (vol 6)

g
getaddrinfo(3N) getaddrinfo(3N)
WARNINGS
Obsolescent Interfaces
The following interfaces are included to support existing applications and may be removed in future
releases.
struct hostent *getipnodebyname(const char *name,
int af,
int flags,
int *error_num);
int getipnodebyaddr(const void *src,
size_t len,
int af,
int *error_num);
New applications must use the APIs getaddrinfo()
and getnameinfo()
for name/address resolu-
tion.
Obsolescent Directive
The
ipnodes directive, which is used by the getaddrinfo()
and getnameinfo() APIs, may not
be supported in future HP-UX releases. In order to minimize the impact to applications, it is recommended
that you have the same configuration for the
hosts and the ipnodes directives.
AUTHOR
getaddrinfo() was developed by HP.
FILES
/etc/hosts
/etc/services
SEE ALSO
gethostent(3N), resolver(3N), nsswitch.conf(4).
492 Hewlett-Packard Company 5 HP-UX 11i Version 3: February 2007