| GAI_STRERROR(3) | Library Functions Manual | GAI_STRERROR(3) |
gai_strerror — get
error message string from EAI_xxx error code
#include
<sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
const char *
gai_strerror(int
ecode);
The
gai_strerror()
function returns an error message string corresponding to the error code
returned by getaddrinfo(3)
or getnameinfo(3).
The following error codes and their meaning are defined in
<netdb.h>:
EAI_ADDRFAMILYEAI_AGAINEAI_BADFLAGSEAI_BADHINTSEAI_FAILEAI_FAMILYEAI_MEMORYEAI_NODATAEAI_NONAMEEAI_OVERFLOWEAI_PROTOCOLEAI_SERVICEEAI_SOCKTYPEEAI_SYSTEMgai_strerror() returns a pointer to the
error message string corresponding to ecode. If
ecode is out of range, an implementation-specific
error message string is returned.
| May 3, 2017 | openbsd |