• Home
  • Raw
  • Download

Lines Matching refs:cp

823 	char *cp, *hostname2 = NULL, *scope, *addr;  in explore_numeric_scope()
844 cp = strchr(hostname, SCOPE_DELIMITER); in explore_numeric_scope()
845 if (cp == NULL) in explore_numeric_scope()
855 hostname2[cp - hostname] = '\0'; in explore_numeric_scope()
857 scope = cp + 1; in explore_numeric_scope()
1106 const u_char *cp; in getanswer() local
1142 cp = answer->buf + HFIXEDSZ; in getanswer()
1147 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer()
1152 cp += n + QFIXEDSZ; in getanswer()
1170 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
1171 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer()
1176 cp += n; /* name */ in getanswer()
1177 type = _getshort(cp); in getanswer()
1178 cp += INT16SZ; /* type */ in getanswer()
1179 class = _getshort(cp); in getanswer()
1180 cp += INT16SZ + INT32SZ; /* class, TTL */ in getanswer()
1181 n = _getshort(cp); in getanswer()
1182 cp += INT16SZ; /* len */ in getanswer()
1185 cp += n; in getanswer()
1190 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); in getanswer()
1195 cp += n; in getanswer()
1209 cp += n; in getanswer()
1218 cp += n; in getanswer()
1227 cp += n; in getanswer()
1231 cp += n; in getanswer()
1235 cp += n; in getanswer()
1240 memcpy(&in6, cp, IN6ADDRSZ); in getanswer()
1242 cp += n; in getanswer()
1259 cp += n; in getanswer()
1262 cur->ai_next = get_ai(&ai, afd, (const char *)cp); in getanswer()
1267 cp += n; in getanswer()
1823 char *cp, *tname, *cname; in _gethtent() local
1840 if (!(cp = strpbrk(p, "#\n"))) in _gethtent()
1842 *cp = '\0'; in _gethtent()
1843 if (!(cp = strpbrk(p, " \t"))) in _gethtent()
1845 *cp++ = '\0'; in _gethtent()
1849 while (cp && *cp) { in _gethtent()
1850 if (*cp == ' ' || *cp == '\t') { in _gethtent()
1851 cp++; in _gethtent()
1855 cname = cp; in _gethtent()
1856 tname = cp; in _gethtent()
1857 if ((cp = strpbrk(cp, " \t")) != NULL) in _gethtent()
1858 *cp++ = '\0'; in _gethtent()
2036 const char *cp, * const *domain; in res_searchN() local
2050 for (cp = name; *cp; cp++) in res_searchN()
2051 dots += (*cp == '.'); in res_searchN()
2053 if (cp > name && *--cp == '.') in res_searchN()
2062 if (!dots && (cp = __hostalias(name)) != NULL) { in res_searchN()
2063 ret = res_queryN(cp, target, res); in res_searchN()