Open System Services Library Calls Reference Manual (G06.27+, H06.04+)

OSS Library Calls (i - m) lwres_gai_st
rerror(3)
NAME
lwres_gai_strerror - Aids applications in printing error messages based on the EAI_ codes
returned by the lwres_getaddrinfo() function
LIBRARY
G-series native OSS processes: /G/system/sysnn/zinetsrl
H-series OSS processes: /G/system/zdllnnn/zinetdll
SYNOPSIS
#include <netdb.h>
char * lwres_gai_strerror (
int ecode );
PARAMETERS
ecode Species one of the following error codes returned by the lwres_getaddrinfo()
function:
EAI_ADDRFAMILY
Address family for host name not supported.
EAI_AGAIN Temporary failure in name resolution.
EAI_BADFLAGS
Invalid value for ai_ags.
EAI_FAIL Nonrecoverable failure in name resolution.
EAI_FAMILY ai_family not supported.
EAI_MEMORY
Memory allocation failure.
EAI_NODATA
No address associated with the specied host name.
EAI_NONAME
The host name or server name was not provided or is not known.
EAI_SERVICE
The server named is not supported for ai_socktype.
EAI_SOCKTYPE
ai_socktype is not supported.
EAI_SYSTEM
System error was returned in errno.
ai_ags, ai_family, and ai_socktype are elements of the addrinfo struct used by the
lwres_getaddrinfo() call.
DESCRIPTION
The lwres_gai_strerror() function call returns a pointer to a character string describing the error
code passed into it.
NOTES
Call this function to aid in printing human-readable error messages based on the EAI_ error
codes returned by the lwres_getaddrinfo() function.
527187-004 Hewlett-Packard Company 495