Lines Matching refs:buf
101 unsigned char *buf, int buflen) in __res_context_mkquery() argument
112 if ((buf == NULL) || (buflen < HFIXEDSZ)) in __res_context_mkquery()
114 memset (buf, 0, HFIXEDSZ); in __res_context_mkquery()
115 hp = (HEADER *) buf; in __res_context_mkquery()
125 cp = buf + HFIXEDSZ; in __res_context_mkquery()
128 *dpp++ = buf; in __res_context_mkquery()
175 return cp - buf; in __res_context_mkquery()
184 unsigned char *buf, int buflen) in libc_hidden_def()
189 (ctx, op, dname, class, type, data, buf, buflen); in libc_hidden_def()
191 memcpy (&ctx->resp->id, buf, 2); in libc_hidden_def()
211 unsigned char *buf, int buflen) in ___res_nmkquery() argument
215 op, dname, class, type, data, buf, buflen); in ___res_nmkquery()
226 unsigned char *buf, int buflen) in ___res_mkquery() argument
230 op, dname, class, type, data, buf, buflen); in ___res_mkquery()
250 int n0, unsigned char *buf, int buflen, int anslen) in __res_nopt() argument
253 HEADER *hp = (HEADER *) buf; in __res_nopt()
254 unsigned char *cp = buf + n0; in __res_nopt()
255 unsigned char *ep = buf + buflen; in __res_nopt()
298 return cp - buf; in __res_nopt()