From 5db7774e00abf90a4c0b49d72e3e7ff005fb1ac1 Mon Sep 17 00:00:00 2001 From: wpaul Date: Sun, 22 Dec 1996 22:05:43 +0000 Subject: [PATCH] Add __dns_getanswer() hook to allow access to the gethostanswer() functions from outside libc. (Needed for async DNS resolver in ypserv.) --- lib/libc/net/gethostbydns.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index fb92b3f5b321..573ba3432095 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -53,7 +53,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; -static char rcsid[] = "$Id: gethostbydns.c,v 1.11 1996/10/01 03:45:06 pst Exp $"; +static char rcsid[] = "$Id: gethostbydns.c,v 1.12 1996/11/01 06:25:43 peter Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -397,6 +397,16 @@ gethostanswer(answer, anslen, qname, qtype) return (NULL); } +struct hostent * +__dns_getanswer(answer, anslen, qname, qtype) + const char *answer; + int anslen; + const char *qname; + int qtype; +{ + return(gethostanswer((const querybuf *)answer, anslen, qname, qtype)); +} + struct hostent * _gethostbydnsname(name, af) const char *name;