projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove or make static various unused __-prefixed symbols
[musl]
/
src
/
network
/
res_query.c
1
#include <resolv.h>
2
#include <netdb.h>
3
#include "libc.h"
4
5
int res_query(const char *name, int class, int type, unsigned char *dest, int len)
6
{
7
unsigned char q[280];
8
int ql = __res_mkquery(0, name, class, type, 0, 0, 0, q, sizeof q);
9
if (ql < 0) return ql;
10
return __res_send(q, ql, dest, len);
11
}
12
13
weak_alias(res_query, res_search);