PageRenderTime 24ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/bind9/lib/lwres/man/lwres_hstrerror.3

https://bitbucket.org/freebsd/freebsd-head/
Unknown | 99 lines | 99 code | 0 blank | 0 comment | 0 complexity | 8b71ba0101a971ab3a10348508b37f78 MD5 | raw file
 1.\" Copyright (C) 2004, 2005, 2007, 2012 Internet Systems Consortium, Inc. ("ISC")
 2.\" Copyright (C) 2000, 2001 Internet Software Consortium.
 3.\" 
 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.
 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$
17.\"
18.hy 0
19.ad l
20.\"     Title: lwres_hstrerror
21.\"    Author: 
22.\" Generator: DocBook XSL Stylesheets v1.71.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"
33lwres_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
45prints the string
46\fIs\fR
47on
48\fBstderr\fR
49followed by the string generated by
50\fBlwres_hstrerror()\fR
51for the error code stored in the global variable
52\fBlwres_h_errno\fR.
53.PP
54\fBlwres_hstrerror()\fR
55returns an appropriate string for the error code gievn by
56\fIerr\fR. The values of the error codes and messages are as follows:
57.PP
58\fBNETDB_SUCCESS\fR
59.RS 4
60Resolver Error 0 (no error)
61.RE
62.PP
63\fBHOST_NOT_FOUND\fR
64.RS 4
65Unknown host
66.RE
67.PP
68\fBTRY_AGAIN\fR
69.RS 4
70Host name lookup failure
71.RE
72.PP
73\fBNO_RECOVERY\fR
74.RS 4
75Unknown server error
76.RE
77.PP
78\fBNO_DATA\fR
79.RS 4
80No address associated with name
81.RE
82.SH "RETURN VALUES"
83.PP
84The string
85Unknown resolver error
86is returned by
87\fBlwres_hstrerror()\fR
88when the value of
89\fBlwres_h_errno\fR
90is not a valid error code.
91.SH "SEE ALSO"
92.PP
93\fBherror\fR(3),
94\fBlwres_hstrerror\fR(3).
95.SH "COPYRIGHT"
96Copyright \(co 2004, 2005, 2007, 2012 Internet Systems Consortium, Inc. ("ISC")
97.br
98Copyright \(co 2000, 2001 Internet Software Consortium.
99.br