Lines Matching refs:buf
123 u_char *buf, /* buffer to put query */ in res_nmkquery() argument
141 if ((buf == NULL) || (buflen < HFIXEDSZ)) in res_nmkquery()
143 memset(buf, 0, HFIXEDSZ); in res_nmkquery()
144 hp = (HEADER *)(void *)buf; in res_nmkquery()
150 cp = buf + HFIXEDSZ; in res_nmkquery()
151 ep = buf + buflen; in res_nmkquery()
153 *dpp++ = buf; in res_nmkquery()
221 return (cp - buf); in res_nmkquery()
233 u_char *buf, /* buffer to put query */ in res_nopt() argument
246 hp = (HEADER *)(void *)buf; in res_nopt()
247 cp = buf + n0; in res_nopt()
248 ep = buf + buflen; in res_nopt()
274 u_int16_t minlen = (cp - buf) + 3 * INT16SZ; in res_nopt()
296 return (cp - buf); in res_nopt()