pragmatism first

LWRES_HSTRERROR(3) - Linux manual page online | Library functions

Lightweight resolver error message generation.

Chapter
2007-06-18
LWRES_HSTRERROR(3) BIND9 LWRES_HSTRERROR(3)

NAME

lwres_herror, lwres_hstrerror - lightweight resolver error message generation

SYNOPSIS

#include <lwres/netdb.h> void lwres_herror(const char *s); const char * lwres_hstrerror(int err);

DESCRIPTION

lwres_herror() prints the string s on stderr followed by the string generated by lwres_hstrerror() for the error code stored in the global variable lwres_h_errno. lwres_hstrerror() returns an appropriate string for the error code gievn by err. The values of the error codes and messages are as follows: NETDB_SUCCESS Resolver Error 0 (no error) HOST_NOT_FOUND Unknown host TRY_AGAIN Host name lookup failure NO_RECOVERY Unknown server error NO_DATA No address associated with name

RETURN VALUES

The string Unknown resolver error is returned by lwres_hstrerror() when the value of lwres_h_errno is not a valid error code.

SEE ALSO

herror(3), lwres_hstrerror(3).

AUTHOR

Internet Systems Consortium, Inc.
Copyright © 2000, 2001, 2004, 2005, 2007, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
ISC 2007-06-18 LWRES_HSTRERROR(3)
This manual Reference Other manuals
lwres_hstrerror(3) referred by lwres_endhostent(3) | lwres_endhostent_r(3) | lwres_freehostent(3) | lwres_gethostbyaddr(3) | lwres_gethostbyaddr_r(3) | lwres_gethostbyname(3) | lwres_gethostbyname2(3) | lwres_gethostbyname_r(3) | lwres_gethostent(3) | lwres_gethostent_r(3) | lwres_getipnode(3) | lwres_getipnodebyaddr(3) | lwres_getipnodebyname(3) | lwres_herror(3) | lwres_sethostent(3) | lwres_sethostent_r(3)
refer to gethostbyname(3)
Download raw manual
Index BIND9 (+124) ISC (+124) № 3 (+68044)
Go top