Merge from vendor branch LIBARCHIVE:
[dragonfly.git] / contrib / bind-9.3 / lib / lwres / man / lwres_gai_strerror.3
1 .\" Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
2 .\" Copyright (C) 2000, 2001 Internet Software Consortium.
3 .\" 
4 .\" Permission to use, copy, modify, and distribute this software for any
5 .\" purpose with or without fee is hereby granted, provided that the above
6 .\" copyright notice and this permission notice appear in all copies.
7 .\" 
8 .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 .\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 .\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 .\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 .\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 .\" PERFORMANCE OF THIS SOFTWARE.
15 .\"
16 .\" $Id: lwres_gai_strerror.3,v 1.13.2.1.8.6 2006/06/29 13:02:31 marka Exp $
17 .\"
18 .hy 0
19 .ad l
20 .\"     Title: lwres_gai_strerror
21 .\"    Author: 
22 .\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
23 .\"      Date: Jun 30, 2000
24 .\"    Manual: BIND9
25 .\"    Source: BIND9
26 .\"
27 .TH "LWRES_GAI_STRERROR" "3" "Jun 30, 2000" "BIND9" "BIND9"
28 .\" disable hyphenation
29 .nh
30 .\" disable justification (adjust text to left margin only)
31 .ad l
32 .SH "NAME"
33 gai_strerror \- print suitable error string
34 .SH "SYNOPSIS"
35 .nf
36 #include <lwres/netdb.h>
37 .fi
38 .HP 20
39 .BI "char * gai_strerror(int\ ecode);"
40 .SH "DESCRIPTION"
41 .PP
42 \fBlwres_gai_strerror()\fR
43 returns an error message corresponding to an error code returned by
44 \fBgetaddrinfo()\fR. The following error codes and their meaning are defined in
45 \fIinclude/lwres/netdb.h\fR.
46 .TP 3n
47 \fBEAI_ADDRFAMILY\fR
48 address family for hostname not supported
49 .TP 3n
50 \fBEAI_AGAIN\fR
51 temporary failure in name resolution
52 .TP 3n
53 \fBEAI_BADFLAGS\fR
54 invalid value for
55 \fBai_flags\fR
56 .TP 3n
57 \fBEAI_FAIL\fR
58 non\-recoverable failure in name resolution
59 .TP 3n
60 \fBEAI_FAMILY\fR
61 \fBai_family\fR
62 not supported
63 .TP 3n
64 \fBEAI_MEMORY\fR
65 memory allocation failure
66 .TP 3n
67 \fBEAI_NODATA\fR
68 no address associated with hostname
69 .TP 3n
70 \fBEAI_NONAME\fR
71 hostname or servname not provided, or not known
72 .TP 3n
73 \fBEAI_SERVICE\fR
74 servname not supported for
75 \fBai_socktype\fR
76 .TP 3n
77 \fBEAI_SOCKTYPE\fR
78 \fBai_socktype\fR
79 not supported
80 .TP 3n
81 \fBEAI_SYSTEM\fR
82 system error returned in errno
83 The message
84 invalid error code
85 is returned if
86 \fIecode\fR
87 is out of range.
88 .PP
89 \fBai_flags\fR,
90 \fBai_family\fR
91 and
92 \fBai_socktype\fR
93 are elements of the
94 \fBstruct addrinfo\fR
95 used by
96 \fBlwres_getaddrinfo()\fR.
97 .SH "SEE ALSO"
98 .PP
99 \fBstrerror\fR(3),
100 \fBlwres_getaddrinfo\fR(3),
101 \fBgetaddrinfo\fR(3),
102 \fBRFC2133\fR().
103 .SH "COPYRIGHT"
104 Copyright \(co 2004, 2005 Internet Systems Consortium, Inc. ("ISC")