User Tools

Site Tools


solaris:gai_strerror.3c

gai_strerror


NAME

gai_strerror - address and name information error description

SYNOPSIS

#include <netdb.h>

const char *gai_strerror(int ecode);

DESCRIPTION

The gai_strerror() function returns a text string describing an error value for the getaddrinfo(3C) and getnameinfo(3C) functions listed in the <netdb.h> header.

When the ecode argument is one of the following values listed in the <netdb.h> header:

oEAI_AGAIN
oEAI_BADFLAGS
oEAI_FAIL
oEAI_FAMILY
oEAI_MEMORY
oEAI_NONAME
oEAI_SERVICE
oEAI_SOCKTYPE
oEAI_SYSTEM

the function return value points to a string describing the error. If the argument is not one of those values, the function returns a pointer to a string whose contents indicate an unknown error.

RETURN VALUES

Upon successful completion, gai_strerror() returns a pointer to a string describing the error value.

ERRORS

No errors are defined.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

SEE ALSO

getaddrinfo(3C), getnameinfo(3C), attributes(7), standards(7)


solaris/gai_strerror.3c.txt · Last modified: 2023/07/19 08:58 by A User Not Logged in