Add __dns_getanswer() hook to allow access to the gethostanswer()

functions from outside libc. (Needed for async DNS resolver in ypserv.)
This commit is contained in:
wpaul 1996-12-22 22:05:43 +00:00
parent da8544b14b
commit 5db7774e00

View File

@ -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>
@ -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;