OLD | NEW |
(Empty) | |
| 1 #include <resolv.h> |
| 2 #include <netdb.h> |
| 3 #include "libc.h" |
| 4 |
| 5 int __res_mkquery(int, const char *, int, int, const unsigned char *, int, const
unsigned char*, unsigned char *, int); |
| 6 int __res_send(const unsigned char *, int, unsigned char *, int); |
| 7 |
| 8 int __res_query(const char *name, int class, int type, unsigned char *dest, int
len) |
| 9 { |
| 10 unsigned char q[280]; |
| 11 int ql = __res_mkquery(0, name, class, type, 0, 0, 0, q, sizeof q); |
| 12 if (ql < 0) return ql; |
| 13 return __res_send(q, ql, dest, len); |
| 14 } |
| 15 |
| 16 weak_alias(__res_query, res_query); |
| 17 weak_alias(__res_query, res_search); |
OLD | NEW |