1GAI_STRERROR(3P) POSIX Programmer's Manual GAI_STRERROR(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 gai_strerror - address and name information error description
13
15 #include <netdb.h>
16
17 const char *gai_strerror(int ecode);
18
19
21 The gai_strerror() function shall return a text string describing an
22 error value for the getaddrinfo() and getnameinfo() functions listed in
23 the <netdb.h> header.
24
25 When the ecode argument is one of the following values listed in the
26 <netdb.h> header:
27
28
29 [EAI_AGAIN]
30 [EAI_BADFLAGS]
31 [EAI_FAIL]
32 [EAI_FAMILY]
33 [EAI_MEMORY]
34 [EAI_NONAME]
35 [EAI_OVERFLOW]
36 [EAI_SERVICE]
37 [EAI_SOCKTYPE]
38 [EAI_SYSTEM]
39
40 the function return value shall point to a string describing the error.
41 If the argument is not one of those values, the function shall return a
42 pointer to a string whose contents indicate an unknown error.
43
45 Upon successful completion, gai_strerror() shall return a pointer to an
46 implementation-defined string.
47
49 No errors are defined.
50
51 The following sections are informative.
52
54 None.
55
57 None.
58
60 None.
61
63 None.
64
66 getaddrinfo(), the Base Definitions volume of IEEE Std 1003.1-2001,
67 <netdb.h>
68
70 Portions of this text are reprinted and reproduced in electronic form
71 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
72 -- Portable Operating System Interface (POSIX), The Open Group Base
73 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
74 Electrical and Electronics Engineers, Inc and The Open Group. In the
75 event of any discrepancy between this version and the original IEEE and
76 The Open Group Standard, the original IEEE and The Open Group Standard
77 is the referee document. The original Standard can be obtained online
78 at http://www.opengroup.org/unix/online.html .
79
80
81
82IEEE/The Open Group 2003 GAI_STRERROR(3P)