lwres_hstrerror(3)

lwres_hstrerror3

Lightweight resolver error message generation

Usage

#include <lwres/netdb.h>

void lwres_herror(const char *s);

const char * lwres_hstrerror(int err);

Overview

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.

Releases

145 releases since Mac OS X 10.3; the text changed 10 times.

  1. 10.3–10.4.8
  2. 10.4.8–10.4.9
  3. 10.4.10–10.4.11
  4. 10.5–10.5.8
  5. 10.6–10.6.8
  6. 10.7–10.7.4
  7. 10.7.5
  8. 10.8–10.8.1
  9. 10.8.2–10.12.6
  10. 10.13–10.13.3
  11. 10.13.4–26.5

Author

Internet Systems Consortium, Inc.

From bind9 65 in macOS 26.5. Parsed by carta from the page's man source.