Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

OSS Library Calls (g - h) gai_strerror(3)
}
RETURN VALUES
Upon successful completion, gai_strerror( ) returns a pointer to a character string corresponding
to the specified error code, as indicated in the PARAMETERS section of this reference page.
Otherwise, the function returns a NULL pointer and sets errno to describe the error.
ERRORS
If the EAI_SYSTEM condition occurs, the function sets errno to the corresponding value:
[ENOSPC] The buffer allocated for the returned value is not large enough to contain the
requested data.
[EPROTOTYPE]
The protocol specified does not support the semantics of the socket type
requested.
RELATED INFORMATION
Functions: freehostent(3), freeaddrinfo(3), getaddrinfo(3), getipnodebyaddr(3), getipnode-
byname(3), getnameinfo(3), if_freenameindex(3), if_indextoname(3), if_nameindex(3),
if_nametoindex(3), inet_pton(3), inet_ntop(3).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 specification.
527187-017 Hewlett-Packard Company 33