Lines Matching refs:cp
617 const char *cp, *scope, *addr; in explore_numeric_scope() local
637 cp = strchr(hostname, SCOPE_DELIMITER); in explore_numeric_scope()
638 if (cp == NULL) return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
646 hostname2[cp - hostname] = '\0'; in explore_numeric_scope()
648 scope = cp + 1; in explore_numeric_scope()
829 BOUNDS_CHECK(cp, x); \
830 cp += (x); \
849 const uint8_t* cp; in getanswer() local
884 cp = answer.data(); in getanswer()
890 n = dn_expand(answer.data(), eom, cp, bp, ep - bp); in getanswer()
913 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
914 n = dn_expand(answer.data(), eom, cp, bp, ep - bp); in getanswer()
919 cp += n; /* name */ in getanswer()
920 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); in getanswer()
921 type = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in getanswer()
922 cp += INT16SZ; /* type */ in getanswer()
923 int cl = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in getanswer()
924 cp += INT16SZ + INT32SZ; /* class, TTL */ in getanswer()
925 n = ntohs(*reinterpret_cast<const uint16_t*>(cp)); in getanswer()
926 cp += INT16SZ; /* len */ in getanswer()
927 BOUNDS_CHECK(cp, n); in getanswer()
930 cp += n; in getanswer()
934 n = dn_expand(answer.data(), eom, cp, tbuf, sizeof tbuf); in getanswer()
939 cp += n; in getanswer()
953 cp += n; in getanswer()
960 cp += n; in getanswer()
969 cp += n; in getanswer()
973 cp += n; in getanswer()
977 cp += n; in getanswer()
982 memcpy(&in6, cp, IN6ADDRSZ); in getanswer()
984 cp += n; in getanswer()
1001 cp += n; in getanswer()
1004 cur->ai_next = get_ai(&ai, afd, (const char*) cp); in getanswer()
1007 cp += n; in getanswer()
1489 char *cp, *tname, *cname; in _gethtent() local
1502 if (!(cp = strpbrk(p, "#\n"))) goto again; in _gethtent()
1503 *cp = '\0'; in _gethtent()
1504 if (!(cp = strpbrk(p, " \t"))) goto again; in _gethtent()
1505 *cp++ = '\0'; in _gethtent()
1509 while (cp && *cp) { in _gethtent()
1510 if (*cp == ' ' || *cp == '\t') { in _gethtent()
1511 cp++; in _gethtent()
1514 if (!cname) cname = cp; in _gethtent()
1515 tname = cp; in _gethtent()
1516 if ((cp = strpbrk(cp, " \t")) != NULL) *cp++ = '\0'; in _gethtent()
1806 const char* cp; in res_searchN() local
1820 for (cp = name; *cp; cp++) dots += (*cp == '.'); in res_searchN()
1821 const bool trailing_dot = (cp > name && *--cp == '.') ? true : false; in res_searchN()