Lines Matching defs:bp

209 	char *bp, **ap, **hap, *ep;
246 bp = buf;
253 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp));
254 if ((n < 0) || !maybe_ok(res, bp, name_ok))
263 n = (int)strlen(bp) + 1; /* for the \0 */
266 hent->h_name = bp;
267 bp += n;
278 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp));
279 if ((n < 0) || !maybe_ok(res, bp, name_ok)) {
309 addalias(ap, bp, aliases, maxaliases);
310 n = (int)strlen(bp) + 1; /* for the \0 */
315 bp += n;
318 if (n > ep - bp || n >= MAXHOSTNAMELEN) {
322 strlcpy(bp, tbuf, (size_t)(ep - bp));
323 hent->h_name = bp;
324 bp += n;
339 if (n > ep - bp || n >= MAXHOSTNAMELEN) {
343 strlcpy(bp, tbuf, (size_t)(ep - bp));
344 tname = bp;
345 bp += n;
359 if (strcasecmp(tname, bp) != 0) {
361 AskedForGot, qname, bp);
365 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp));
366 if ((n < 0) || !maybe_hnok(res, bp)) {
375 hent->h_name = bp;
377 addalias(ap, bp, aliases, maxaliases);
379 n = (int)strlen(bp) + 1; /* for the \0 */
384 bp += n;
388 hent->h_name = bp;
390 n = strlen(bp) + 1; /* for the \0 */
395 bp += n;
396 map_v4v6_hostent(hent, &bp, ep);
402 if (strcasecmp(hent->h_name, bp) != 0) {
404 AskedForGot, hent->h_name, bp);
423 hent->h_name = bp;
424 nn = (int)strlen(bp) + 1; /* for the \0 */
425 bp += nn;
428 bp += sizeof(align) -
429 (size_t)((u_long)bp % sizeof(align));
431 if (bp + n >= ep) {
444 (void)memcpy(*hap++ = bp, cp, (size_t)n);
445 bp += n;
468 if (n > ep - bp || n >= MAXHOSTNAMELEN)
470 strlcpy(bp, qname, (size_t)(ep - bp));
471 hent->h_name = bp;
472 bp += n;
475 map_v4v6_hostent(hent, &bp, ep);
483 bp = (char *)ALIGN(bp);
486 if ((size_t)(ep - bp) < qlen)
488 hent->h_aliases = (void *)bp;
489 memcpy(bp, aliases, qlen);
493 bp += qlen;
496 if ((size_t)(ep - bp) < qlen)
498 hent->h_addr_list = (void *)bp;
499 memcpy(bp, addr_ptrs, qlen);