diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-12-22 22:05:43 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-12-22 22:05:43 +0000 |
commit | d389236bb21608788d7843fe717422b5eeb5af45 (patch) | |
tree | f5ee6fbcb391a3c071e7db5c510a6590e85c6fff /lib/libc/net/gethostbydns.c | |
parent | 96cf9c6845647b8f92705dcdc280787e3de611ad (diff) | |
download | FreeBSD-src-d389236bb21608788d7843fe717422b5eeb5af45.zip FreeBSD-src-d389236bb21608788d7843fe717422b5eeb5af45.tar.gz |
Add __dns_getanswer() hook to allow access to the gethostanswer()
functions from outside libc. (Needed for async DNS resolver in ypserv.)
Diffstat (limited to 'lib/libc/net/gethostbydns.c')
-rw-r--r-- | lib/libc/net/gethostbydns.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index fb92b3f..573ba34 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 <sys/types.h> @@ -398,6 +398,16 @@ gethostanswer(answer, anslen, qname, qtype) } 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; int af; |