LWRES_HSTRERROR(3)

  .SH "NAME" lwres_herror, lwres_hstrerror - lightweight resolver error message generation
  .SH "SYNOPSIS"

#include <lwres/netdb.h>

void lwres_herror(const char *s);

const char * lwres_hstrerror(int err);
  .SH "DESCRIPTION"
    .PP 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.
    .PP lwres_hstrerror() returns an appropriate string for the error code gievn by err. The values of the error codes and messages are as follows:
        .PP NETDB_SUCCESS
                Resolver Error 0 (no error)
            .RE
            .PP HOST_NOT_FOUND
                    Unknown host
                .RE
                .PP TRY_AGAIN
                        Host name lookup failure
                    .RE
                    .PP NO_RECOVERY
                            Unknown server error
                        .RE
                        .PP NO_DATA
                                No address associated with name
                            .RE
                      .SH "RETURN VALUES"
                        .PP The string Unknown resolver error is returned by lwres_hstrerror() when the value of lwres_h_errno is not a valid error code.
                      .SH "SEE ALSO"
                        .PP herror(3), lwres_hstrerror(3).

AUTHOR

Internet Systems Consortium, Inc.

COPYRIGHT
Copyright © 2000, 2001, 2004, 2005, 2007, 2014-2016, 2018-2020 Internet Systems Consortium, Inc. ("ISC")