The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame^] | 1 | /* $NetBSD: __res_send.c,v 1.4 2005/09/13 01:44:10 christos Exp $ */ |
| 2 | |
| 3 | /* |
| 4 | * written by matthew green, 22/04/97. |
| 5 | * public domain. |
| 6 | */ |
| 7 | |
| 8 | #include <sys/cdefs.h> |
| 9 | #if defined(LIBC_SCCS) && !defined(lint) |
| 10 | __RCSID("$NetBSD: __res_send.c,v 1.4 2005/09/13 01:44:10 christos Exp $"); |
| 11 | #endif |
| 12 | |
| 13 | #if defined(__indr_reference) |
| 14 | __indr_reference(__res_send, res_send) |
| 15 | #else |
| 16 | |
| 17 | #include <sys/types.h> |
| 18 | #include <netinet/in.h> |
| 19 | #ifdef ANDROID_CHANGES |
| 20 | #include "resolv_private.h" |
| 21 | #else |
| 22 | #include <resolv.h> |
| 23 | #endif |
| 24 | |
| 25 | /* XXX THIS IS A MESS! SEE <resolv.h> XXX */ |
| 26 | |
| 27 | #undef res_send |
| 28 | int res_send(const u_char *, int, u_char *, int); |
| 29 | |
| 30 | int |
| 31 | res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) |
| 32 | { |
| 33 | |
| 34 | return __res_send(buf, buflen, ans, anssiz); |
| 35 | } |
| 36 | |
| 37 | #endif |