lwres_hstrerror.3 revision 40f53fa8d9c6a4fc38c0014495e7a42b08f52481
Copyright (C) 2000 Internet Software Consortium.

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

$Id: lwres_hstrerror.3,v 1.3 2000/08/01 01:21:38 tale Exp $

.Dd Jun 30, 2000 .Dt LWRES_ERROR 3 .Os BIND9 9 .Sh NAME .Nm lwres_herror , .Nm lwres_hstrerror .Nd lightweight resolver error message generation .Sh SYNOPSIS .Fd #include <lwres/netdb.h> .Fd .Ft void .Fo lwres_herror .Fa "const char *s" .Fc .Ft const char * .Fo lwres_hstrerror .Fa "int err" .Fc .Sh DESCRIPTION .Fn lwres_herror prints the string .Fa s on .Dv stderr followed by the string generated by .Fn lwres_hstrerror for the error code stored in the global variable .Li lwres_h_errno .

p .Fn lwres_hstrerror returns an appropriate string for the error code gievn by .Fa err . The values of the error codes and messages are as follows: l -tag -width HOST_NOT_FOUND t Li NETDB_SUCCESS \*qResolver Error 0 (no error)\*q t Li HOST_NOT_FOUND \*qUnknown host\*q t Li TRY_AGAIN \*qHost name lookup failure\*q t Li NO_RECOVERY \*qUnknown server error\*q t Li NO_DATA \*qNo address associated with name\*q .Sh RETURN VALUES The string \*qUnknown resolver error\*q is returned by .Fn lwres_hstrerror when the value of .Li lwres_h_errno is not a valid error code. .Sh SEE ALSO .Xr herror 3 , .Xr lwres_hstrerror 3 .