1 .\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
2 .\" Copyright (C) 2000, 2001 Internet Software Consortium.
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.
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.
16 .\" $Id: lwres_gai_strerror.3,v 1.13.2.2 2004/03/15 04:45:01 marka Exp $
18 .TH "LWRES_GAI_STRERROR" "3" "Jun 30, 2000" "BIND9" ""
20 gai_strerror \- print suitable error string
22 \fB#include <lwres/netdb.h>
26 gai_strerror(int ecode);
31 \fBlwres_gai_strerror()\fR
32 returns an error message corresponding to an error code returned by
34 The following error codes and their meaning are defined in
35 \fIinclude/lwres/netdb.h\fR.
38 address family for hostname not supported
41 temporary failure in name resolution
48 non-recoverable failure in name resolution
51 ai_family not supported
54 memory allocation failure
57 no address associated with hostname
60 hostname or servname not provided, or not known
63 servname not supported for ai_socktype
66 ai_socktype not supported
69 system error returned in errno
71 The message \fBinvalid error code\fR is returned if
82 \fBlwres_getaddrinfo()\fR.
86 \fBlwres_getaddrinfo\fR(3),