gai_strerror(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

gai_strerror(3c)

Standard C Library Functions                                  gai_strerror(3C)



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:

           o      EAI_ADDRFAMILY


           o      EAI_AGAIN


           o      EAI_BADFLAGS


           o      EAI_FAIL


           o      EAI_FAMILY


           o      EAI_MEMORY


           o      EAI_NODATA


           o      EAI_NONAME


           o      EAI_SERVICE


           o      EAI_SOCKTYPE


           o      EAI_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:


       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelMT-Safe _  Stan‐
       dardSee standards(7).


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


       Gilligan, R. RFC 3493, Basic Socket Interface Extensions for IPv6. Net‐
       work Working Group. February 2003. https://tools.ietf.org/html/rfc3493

HISTORY
       The gai_strerror() function was added to Oracle Solaris in the  Solaris
       8 release.



Oracle Solaris 11.4               20 Jan 2021                 gai_strerror(3C)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3