Last change
on this file since 445 was 444, checked in by coas-nagasima, 4 years ago |
muslのソースコードを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
562 bytes
|
Line | |
---|
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);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.