Lines Matching refs:cp
1024 char *cp, *hostname2 = NULL, *scope, *addr; in explore_numeric_scope()
1045 cp = strchr(hostname, SCOPE_DELIMITER); in explore_numeric_scope()
1046 if (cp == NULL) in explore_numeric_scope()
1056 hostname2[cp - hostname] = '\0'; in explore_numeric_scope()
1058 scope = cp + 1; in explore_numeric_scope()
1300 BOUNDS_CHECK(cp, x); \
1301 cp += (x); \
1318 const u_char *cp; in getanswer() local
1354 cp = answer->buf; in getanswer()
1360 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer()
1383 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
1384 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer()
1389 cp += n; /* name */ in getanswer()
1390 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); in getanswer()
1391 type = _getshort(cp); in getanswer()
1392 cp += INT16SZ; /* type */ in getanswer()
1393 class = _getshort(cp); in getanswer()
1394 cp += INT16SZ + INT32SZ; /* class, TTL */ in getanswer()
1395 n = _getshort(cp); in getanswer()
1396 cp += INT16SZ; /* len */ in getanswer()
1397 BOUNDS_CHECK(cp, n); in getanswer()
1400 cp += n; in getanswer()
1405 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); in getanswer()
1410 cp += n; in getanswer()
1424 cp += n; in getanswer()
1433 cp += n; in getanswer()
1442 cp += n; in getanswer()
1446 cp += n; in getanswer()
1450 cp += n; in getanswer()
1455 memcpy(&in6, cp, IN6ADDRSZ); in getanswer()
1457 cp += n; in getanswer()
1474 cp += n; in getanswer()
1477 cur->ai_next = get_ai(&ai, afd, (const char *)cp); in getanswer()
1482 cp += n; in getanswer()
2053 char *cp, *tname, *cname; in _gethtent() local
2070 if (!(cp = strpbrk(p, "#\n"))) in _gethtent()
2072 *cp = '\0'; in _gethtent()
2073 if (!(cp = strpbrk(p, " \t"))) in _gethtent()
2075 *cp++ = '\0'; in _gethtent()
2079 while (cp && *cp) { in _gethtent()
2080 if (*cp == ' ' || *cp == '\t') { in _gethtent()
2081 cp++; in _gethtent()
2085 cname = cp; in _gethtent()
2086 tname = cp; in _gethtent()
2087 if ((cp = strpbrk(cp, " \t")) != NULL) in _gethtent()
2088 *cp++ = '\0'; in _gethtent()
2283 const char *cp, * const *domain; in res_searchN() local
2297 for (cp = name; *cp; cp++) in res_searchN()
2298 dots += (*cp == '.'); in res_searchN()
2300 if (cp > name && *--cp == '.') in res_searchN()
2309 if (!dots && (cp = __hostalias(name)) != NULL) { in res_searchN()
2310 ret = res_queryN(cp, target, res); in res_searchN()