Lines Matching refs:bp

189 	char *bp, **ap, **hap, *ep;
221 bp = rs->hostbuf;
229 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
230 if ((n < 0) || !(*name_ok)(bp)) {
240 n = strlen(bp) + 1; /* for the \0 */
245 rs->host.h_name = bp;
246 bp += n;
259 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
260 if ((n < 0) || !(*name_ok)(bp)) {
293 *ap++ = bp;
294 n = strlen(bp) + 1; /* for the \0 */
299 bp += n;
302 if (n > ep - bp || n >= MAXHOSTNAMELEN) {
306 strlcpy(bp, tbuf, (size_t)(ep - bp));
307 rs->host.h_name = bp;
308 bp += n;
324 if (n > ep - bp || n >= MAXHOSTNAMELEN) {
328 strlcpy(bp, tbuf, (size_t)(ep - bp));
329 tname = bp;
330 bp += n;
344 if (strcasecmp(tname, bp) != 0) {
346 AskedForGot, qname, bp);
350 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
351 if ((n < 0) || !res_hnok(bp)) {
362 rs->host.h_name = bp;
364 *ap++ = bp;
368 n = strlen(bp) + 1; /* for the \0 */
373 bp += n;
377 rs->host.h_name = bp;
379 n = strlen(bp) + 1; /* for the \0 */
384 bp += n;
385 map_v4v6_hostent(&rs->host, &bp, ep);
392 if (strcasecmp(rs->host.h_name, bp) != 0) {
394 AskedForGot, rs->host.h_name, bp);
413 rs->host.h_name = bp;
414 nn = strlen(bp) + 1; /* for the \0 */
415 bp += nn;
418 bp += sizeof(align) -
419 (size_t)((u_long)bp % sizeof(align));
421 if (bp + n >= &rs->hostbuf[sizeof rs->hostbuf]) {
433 (void)memcpy(*hap++ = bp, cp, (size_t)n);
434 bp += n;
459 if (n > ep - bp || n >= MAXHOSTNAMELEN)
461 strlcpy(bp, qname, (size_t)(ep - bp));
462 rs->host.h_name = bp;
463 bp += n;
466 map_v4v6_hostent(&rs->host, &bp, ep);
629 char *bp, *ep;
687 bp = rs->hostbuf + MAXDNAME;
696 map_v4v6_hostent(&rs->host, &bp, ep);
721 bp = rs->hostbuf + MAXDNAME;