1GAI_STRERROR(P)            POSIX Programmer's Manual           GAI_STRERROR(P)
2
3
4

NAME

6       gai_strerror - address and name information error description
7

SYNOPSIS

9       #include <netdb.h>
10
11       const char *gai_strerror(int ecode);
12
13

DESCRIPTION

15       The  gai_strerror()  function  shall return a text string describing an
16       error value for the getaddrinfo() and getnameinfo() functions listed in
17       the <netdb.h> header.
18
19       When  the  ecode  argument is one of the following values listed in the
20       <netdb.h> header:
21
22
23              [EAI_AGAIN]
24              [EAI_BADFLAGS]
25              [EAI_FAIL]
26              [EAI_FAMILY]
27              [EAI_MEMORY]
28              [EAI_NONAME]
29              [EAI_OVERFLOW]
30              [EAI_SERVICE]
31              [EAI_SOCKTYPE]
32              [EAI_SYSTEM]
33
34       the function return value shall point to a string describing the error.
35       If the argument is not one of those values, the function shall return a
36       pointer to a string whose contents indicate an unknown error.
37

RETURN VALUE

39       Upon successful completion, gai_strerror() shall return a pointer to an
40       implementation-defined string.
41

ERRORS

43       No errors are defined.
44
45       The following sections are informative.
46

EXAMPLES

48       None.
49

APPLICATION USAGE

51       None.
52

RATIONALE

54       None.
55

FUTURE DIRECTIONS

57       None.
58

SEE ALSO

60       getaddrinfo()  ,  the  Base Definitions volume of IEEE Std 1003.1-2001,
61       <netdb.h>
62
64       Portions of this text are reprinted and reproduced in  electronic  form
65       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
66       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
67       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
68       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
69       event of any discrepancy between this version and the original IEEE and
70       The Open Group Standard, the original IEEE and The Open Group  Standard
71       is  the  referee document. The original Standard can be obtained online
72       at http://www.opengroup.org/unix/online.html .
73
74
75
76IEEE/The Open Group                  2003                      GAI_STRERROR(P)
Impressum