Merge from vendor branch NETGRAPH:
[dragonfly.git] / contrib / bind-9.3 / lib / lwres / man / lwres_hstrerror.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_hstrerror.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_hstrerror
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_HSTRERROR" "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 lwres_herror, lwres_hstrerror \- lightweight resolver error message generation
34 .SH "SYNOPSIS"
35 .nf
36 #include <lwres/netdb.h>
37 .fi
38 .HP 18
39 .BI "void lwres_herror(const\ char\ *s);"
40 .HP 29
41 .BI "const char * lwres_hstrerror(int\ err);"
42 .SH "DESCRIPTION"
43 .PP
44 \fBlwres_herror()\fR
45 prints the string
46 \fIs\fR
47 on
48 \fBstderr\fR
49 followed by the string generated by
50 \fBlwres_hstrerror()\fR
51 for the error code stored in the global variable
52 \fBlwres_h_errno\fR.
53 .PP
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:
57 .TP 3n
58 \fBNETDB_SUCCESS\fR
59 Resolver Error 0 (no error)
60 .TP 3n
61 \fBHOST_NOT_FOUND\fR
62 Unknown host
63 .TP 3n
64 \fBTRY_AGAIN\fR
65 Host name lookup failure
66 .TP 3n
67 \fBNO_RECOVERY\fR
68 Unknown server error
69 .TP 3n
70 \fBNO_DATA\fR
71 No address associated with name
72 .SH "RETURN VALUES"
73 .PP
74 The string
75 Unknown resolver error
76 is returned by
77 \fBlwres_hstrerror()\fR
78 when the value of
79 \fBlwres_h_errno\fR
80 is not a valid error code.
81 .SH "SEE ALSO"
82 .PP
83 \fBherror\fR(3),
84 \fBlwres_hstrerror\fR(3).
85 .SH "COPYRIGHT"
86 Copyright \(co 2004, 2005 Internet Systems Consortium, Inc. ("ISC")