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
11
13 gai_strerror — address and name information error description
14
16 #include <netdb.h>
17
18 const char *gai_strerror(int ecode);
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 [EAI_AGAIN] [EAI_NONAME]
29 [EAI_BADFLAGS] [EAI_OVERFLOW]
30 [EAI_FAIL] [EAI_SERVICE]
31 [EAI_FAMILY] [EAI_SOCKTYPE]
32 [EAI_MEMORY] [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
39 Upon successful completion, gai_strerror() shall return a pointer to an
40 implementation-defined string.
41
43 No errors are defined.
44
45 The following sections are informative.
46
48 None.
49
51 None.
52
54 None.
55
57 None.
58
60 freeaddrinfo()
61
62 The Base Definitions volume of POSIX.1‐2008, <netdb.h>
63
65 Portions of this text are reprinted and reproduced in electronic form
66 from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
67 -- Portable Operating System Interface (POSIX), The Open Group Base
68 Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
69 cal and Electronics Engineers, Inc and The Open Group. (This is
70 POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
71 event of any discrepancy between this version and the original IEEE and
72 The Open Group Standard, the original IEEE and The Open Group Standard
73 is the referee document. The original Standard can be obtained online
74 at http://www.unix.org/online.html .
75
76 Any typographical or formatting errors that appear in this page are
77 most likely to have been introduced during the conversion of the source
78 files to man page format. To report such errors, see https://www.ker‐
79 nel.org/doc/man-pages/reporting_bugs.html .
80
81
82
83IEEE/The Open Group 2013 GAI_STRERROR(3P)