1gai_strerror(3XNETX)/Open Networking Services Library Functiongsai_strerror(3XNET)
2
3
4

NAME

6       gai_strerror - address and name information error description
7

SYNOPSIS

9       cc [ flag ... ] file ... -lxnet [ library ... ]
10       #include <netdb.h>
11
12       const char *gai_strerror(int ecode);
13
14

DESCRIPTION

16       The  gai_strerror()  function returns a text string describing an error
17       value  for  the  getaddrinfo(3XNET)  and  getnameinfo(3XNET)  functions
18       listed in the <netdb.h> header.
19
20
21       When  the  ecode  argument is one of the following values listed in the
22       <netdb.h> header:
23
24       EAI_AGAIN
25
26
27       EAI_BADFLAGS
28
29
30       EAI_FAIL
31
32
33       EAI_FAMILY
34
35
36       EAI_MEMORY
37
38
39       EAI_NONAME
40
41
42       EAI_SERVICE
43
44
45       EAI_SOCKTYPE
46
47
48       EAI_SYSTEM
49
50
51
52       the function return value points to a string describing the  error.  If
53       the argument is not one of those values, the function returns a pointer
54       to a string whose contents indicate an unknown error.
55

RETURN VALUES

57       Upon successful completion,  gai_strerror()  returns  a  pointer  to  a
58       string describing the error value.
59

ERRORS

61       No errors are defined.
62

ATTRIBUTES

64       See attributes(5) for descriptions of the following attributes:
65
66
67
68
69       ┌─────────────────────────────┬─────────────────────────────┐
70       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
71       ├─────────────────────────────┼─────────────────────────────┤
72       │Interface Stability          │Standard                     │
73       ├─────────────────────────────┼─────────────────────────────┤
74       │MT-Level                     │MT-Safe                      │
75       └─────────────────────────────┴─────────────────────────────┘
76

SEE ALSO

78       getaddrinfo(3XNET), getnameinfo(3XNET), attributes(5), standards(5)
79
80
81
82SunOS 5.11                        1 Dec 2003               gai_strerror(3XNET)
Impressum