gsasl  1.10.0
About: GNU SASL is an implementation of the Simple Authentication and Security Layer (SASL). Development version.
  Fossies Dox: gsasl-1.10.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

gai_strerror.c File Reference
#include <config.h>
#include <stdio.h>
#include <netdb.h>
#include "gettext.h"
Include dependency graph for gai_strerror.c:

Go to the source code of this file.


#define _(String)   gettext (String)
#define N_(String)   String


const char * gai_strerror (int code)


struct {
   int   code
   const char *   msg
values []

Macro Definition Documentation

◆ _

#define _ (   String)    gettext (String)

Definition at line 30 of file gai_strerror.c.

◆ N_

#define N_ (   String)    String

Definition at line 31 of file gai_strerror.c.

Function Documentation

◆ gai_strerror()

const char* gai_strerror ( int  code)

Definition at line 80 of file gai_strerror.c.

References _, code, msg, and values.

Referenced by main().

Variable Documentation

◆ code

int code

◆ msg

const char* msg

Definition at line 53 of file gai_strerror.c.

Referenced by gai_strerror(), poll(), safe_copy(), strerror(), and strerror_r().


struct { ... } values[]
Initial value:
{ EAI_ADDRFAMILY, "Address family for hostname not supported" },
{ EAI_AGAIN, "Temporary failure in name resolution" },
{ EAI_BADFLAGS, "Bad value for ai_flags" },
{ EAI_FAIL, "Non-recoverable failure in name resolution" },
{ EAI_FAMILY, "ai_family not supported" },
{ EAI_MEMORY, "Memory allocation failure" },
{ EAI_NODATA, "No address associated with hostname" },
{ EAI_NONAME, "Name or service not known" },
{ EAI_SERVICE, "Servname not supported for ai_socktype" },
{ EAI_SOCKTYPE, "ai_socktype not supported" },
{ EAI_SYSTEM, "System error" },
{ EAI_OVERFLOW, "Argument buffer too small" },

Referenced by gai_strerror(), and write_into_file().