Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: fusl/src/network/res_query.c

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/src/network/res_msend.c ('k') | fusl/src/network/res_querydomain.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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);
OLDNEW
« no previous file with comments | « fusl/src/network/res_msend.c ('k') | fusl/src/network/res_querydomain.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698