summaryrefslogtreecommitdiffstats
path: root/include/netdb.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1995-08-20 19:59:28 +0000
committerpeter <peter@FreeBSD.org>1995-08-20 19:59:28 +0000
commit2dd1919d1c22bd3dc75ab1064352572d401b1ab9 (patch)
tree7d1c173050ee383af75c4df1cbe6e4eaca66e361 /include/netdb.h
parent56db55c96ed5dcaac9d859512bc49ecb4820d413 (diff)
downloadFreeBSD-src-2dd1919d1c22bd3dc75ab1064352572d401b1ab9.zip
FreeBSD-src-2dd1919d1c22bd3dc75ab1064352572d401b1ab9.tar.gz
Update the resolver include files to bind-4.9.3-beta24 level (from beta9p1)
Note: this was done by selective patching from diffs by hand, in order to not conflict with the 4.4BSD base code. Beta9 was done the same way. Obtained from: Paul Vixie <paul@vix.com>
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 1be7163..3fd20df 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)netdb.h 8.1 (Berkeley) 6/2/93
- * $Id: netdb.h,v 1.1.1.1 1994/05/24 09:57:18 rgrimes Exp $
+ * $Id: netdb.h,v 1.2 1995/05/30 04:54:41 rgrimes Exp $
* -
* Portions Copyright (c) 1993 by Digital Equipment Corporation.
*
@@ -63,6 +63,8 @@
#define _PATH_PROTOCOLS "/etc/protocols"
#define _PATH_SERVICES "/etc/services"
+extern int h_errno;
+
/*
* Structures returned by network data base library. All addresses are
* supplied in host order, and returned in network order (suitable for
@@ -106,6 +108,8 @@ struct protoent {
* (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 */
@@ -132,7 +136,7 @@ struct servent *getservbyname __P((const char *, const char *));
struct servent *getservbyport __P((int, const char *));
struct servent *getservent __P((void));
void herror __P((const char *));
-char *hstrerror __P((int));
+const char *hstrerror __P((int));
void sethostent __P((int));
/* void sethostfile __P((const char *)); */
void setnetent __P((int));
OpenPOWER on IntegriCloud