Lines Matching defs:bp
179 char *bp, **ap, **hap, *ep;
211 bp = rs->hostbuf;
219 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
220 if ((n < 0) || !(*name_ok)(bp)) {
230 n = strlen(bp) + 1; /* for the \0 */
235 rs->host.h_name = bp;
236 bp += n;
249 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
250 if ((n < 0) || !(*name_ok)(bp)) {
283 *ap++ = bp;
284 n = strlen(bp) + 1; /* for the \0 */
289 bp += n;
292 if (n > ep - bp || n >= MAXHOSTNAMELEN) {
296 strlcpy(bp, tbuf, (size_t)(ep - bp));
297 rs->host.h_name = bp;
298 bp += n;
314 if (n > ep - bp || n >= MAXHOSTNAMELEN) {
318 strlcpy(bp, tbuf, (size_t)(ep - bp));
319 tname = bp;
320 bp += n;
334 if (strcasecmp(tname, bp) != 0) {
336 AskedForGot, qname, bp);
340 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
341 if ((n < 0) || !res_hnok(bp)) {
352 rs->host.h_name = bp;
354 *ap++ = bp;
358 n = strlen(bp) + 1; /* for the \0 */
363 bp += n;
367 rs->host.h_name = bp;
369 n = strlen(bp) + 1; /* for the \0 */
374 bp += n;
375 map_v4v6_hostent(&rs->host, &bp, ep);
382 if (strcasecmp(rs->host.h_name, bp) != 0) {
384 AskedForGot, rs->host.h_name, bp);
403 rs->host.h_name = bp;
404 nn = strlen(bp) + 1; /* for the \0 */
405 bp += nn;
408 bp += sizeof(align) -
409 (size_t)((u_long)bp % sizeof(align));
411 if (bp + n >= &rs->hostbuf[sizeof rs->hostbuf]) {
423 (void)memcpy(*hap++ = bp, cp, (size_t)n);
424 bp += n;
449 if (n > ep - bp || n >= MAXHOSTNAMELEN)
451 strlcpy(bp, qname, (size_t)(ep - bp));
452 rs->host.h_name = bp;
453 bp += n;
456 map_v4v6_hostent(&rs->host, &bp, ep);
522 char *bp, *ep;
581 bp = rs->hostbuf + MAXDNAME;
590 map_v4v6_hostent(&rs->host, &bp, ep);
615 bp = rs->hostbuf + MAXDNAME;