|
I have the this bit of code in netdb.h /* * Error return codes from gethostbyname() and gethostbyaddr() (left in * extern int h_errno). */ #define NETDB_INTERNAL -1 /* see errno */ #define NETDB_SUCCESS 0 /* no problem */ #define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */ #define TRY_AGAIN 2 /* Non-Authoritive Host not found, or * SERVERFAIL */ #define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, * NOTIMP */ #define NO_DATA 4 /* Valid name, no data record of requested * type */ #define NO_ADDRESS NO_DATA /* no address, look for MX record */ and this in resolv.h /* * This used to be defined in res_query.c, now it's in herror.c. It was * never extern'd by any *.h file before it was placed here. herror.c is * part of libresolv.a even though it might make more sense in libnetdb.a * or even libnet.a. */ extern int h_errno; Tom Lane wrote: Mark Campbell <mark(dot)campbell(at)ucs-software(dot)co(dot)za> writes: |