1997-11-05 02:52:05 +03:00
|
|
|
/* $NetBSD: __res_send.c,v 1.4 1997/11/04 23:52:41 thorpej Exp $ */
|
1997-04-22 10:55:36 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* written by matthew green, 22/04/97.
|
|
|
|
* public domain.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
#ifdef __indr_reference
|
1997-11-05 02:52:05 +03:00
|
|
|
__indr_reference(__res_send,res_send)
|
1997-04-22 10:55:36 +04:00
|
|
|
#else
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
1997-04-22 22:51:53 +04:00
|
|
|
#include <netinet/in.h>
|
1997-04-22 10:55:36 +04:00
|
|
|
#include <resolv.h>
|
|
|
|
|
1997-07-18 01:27:33 +04:00
|
|
|
/* XXX THIS IS A MESS! SEE <resolv.h> XXX */
|
1997-04-22 10:55:36 +04:00
|
|
|
|
|
|
|
#undef res_send
|
1997-07-18 01:27:33 +04:00
|
|
|
int res_send __P((const u_char *, int, u_char *, int));
|
|
|
|
|
1997-04-22 10:55:36 +04:00
|
|
|
int
|
|
|
|
res_send(buf, buflen, ans, anssiz)
|
|
|
|
const u_char *buf;
|
|
|
|
int buflen;
|
|
|
|
u_char *ans;
|
|
|
|
int anssiz;
|
|
|
|
{
|
|
|
|
|
|
|
|
return __res_send(buf, buflen, ans, anssiz);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|