1 .\" Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
2 .\" Copyright (C) 2000, 2001 Internet Software Consortium.
4 .\" Permission to use, copy, modify, and/or 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_hstrerror.3,v 1.27.214.1 2009/07/11 01:43:31 tbox Exp $
20 .\" Title: lwres_hstrerror
22 .\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>
23 .\" Date: Jun 30, 2000
27 .TH "LWRES_HSTRERROR" "3" "Jun 30, 2000" "BIND9" "BIND9"
28 .\" disable hyphenation
30 .\" disable justification (adjust text to left margin only)
33 lwres_herror, lwres_hstrerror \- lightweight resolver error message generation
36 #include <lwres/netdb.h>
39 .BI "void lwres_herror(const\ char\ *" "s" ");"
41 .BI "const char * lwres_hstrerror(int\ " "err" ");"
49 followed by the string generated by
50 \fBlwres_hstrerror()\fR
51 for the error code stored in the global variable
54 \fBlwres_hstrerror()\fR
55 returns an appropriate string for the error code gievn by
56 \fIerr\fR. The values of the error codes and messages are as follows:
60 Resolver Error 0 (no error)
70 Host name lookup failure
80 No address associated with name
85 Unknown resolver error
87 \fBlwres_hstrerror()\fR
90 is not a valid error code.
94 \fBlwres_hstrerror\fR(3).
96 Copyright \(co 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
98 Copyright \(co 2000, 2001 Internet Software Consortium.