1 .\" $NetBSD: lwres_hstrerror.3,v 1.5 2014/12/10 04:38:02 christos Exp $
3 .\" Copyright (C) 2004, 2005, 2007, 2014 Internet Systems Consortium, Inc. ("ISC")
4 .\" Copyright (C) 2000, 2001 Internet Software Consortium.
6 .\" Permission to use, copy, modify, and/or distribute this software for any
7 .\" purpose with or without fee is hereby granted, provided that the above
8 .\" copyright notice and this permission notice appear in all copies.
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
11 .\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12 .\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
13 .\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14 .\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
15 .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 .\" PERFORMANCE OF THIS SOFTWARE.
22 .\" Title: lwres_hstrerror
24 .\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>
25 .\" Date: June 18, 2007
29 .TH "LWRES_HSTRERROR" "3" "June 18, 2007" "BIND9" "BIND9"
30 .\" disable hyphenation
32 .\" disable justification (adjust text to left margin only)
35 lwres_herror, lwres_hstrerror \- lightweight resolver error message generation
38 #include <lwres/netdb.h>
41 .BI "void lwres_herror(const\ char\ *" "s" ");"
43 .BI "const char * lwres_hstrerror(int\ " "err" ");"
51 followed by the string generated by
52 \fBlwres_hstrerror()\fR
53 for the error code stored in the global variable
56 \fBlwres_hstrerror()\fR
57 returns an appropriate string for the error code gievn by
58 \fIerr\fR. The values of the error codes and messages are as follows:
62 Resolver Error 0 (no error)
72 Host name lookup failure
82 No address associated with name
87 Unknown resolver error
89 \fBlwres_hstrerror()\fR
92 is not a valid error code.
96 \fBlwres_hstrerror\fR(3).
98 Copyright \(co 2004, 2005, 2007, 2014 Internet Systems Consortium, Inc. ("ISC")
100 Copyright \(co 2000, 2001 Internet Software Consortium.