source: asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/network/res_query.c@ 352

Last change on this file since 352 was 352, checked in by coas-nagasima, 6 years ago

arm向けASP3版ECNLを追加

  • 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
5int __res_mkquery(int, const char *, int, int, const unsigned char *, int, const unsigned char*, unsigned char *, int);
6int __res_send(const unsigned char *, int, unsigned char *, int);
7
8int __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
16weak_alias(__res_query, res_query);
17weak_alias(__res_query, res_search);
Note: See TracBrowser for help on using the repository browser.