OSDN Git Service

fix getaddrinfo regression with AI_ADDRCONFIG on some configurations
[android-x86/external-musl-libc.git] / src / network / res_query.c
1 #include <resolv.h>
2 #include <netdb.h>
3
4 int res_query(const char *name, int class, int type, unsigned char *dest, int len)
5 {
6         unsigned char q[280];
7         int ql = __res_mkquery(0, name, class, type, 0, 0, 0, q, sizeof q);
8         if (ql < 0) return ql;
9         return __res_send(q, ql, dest, len);
10 }
11
12 weak_alias(res_query, res_search);