• Home
  • Raw
  • Download

Lines Matching refs:cp

189 		cp += (x); \
190 if (cp > eom) \
205 const u_char *cp; in getanswer() local
248 cp = answer->buf; in getanswer()
253 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); in getanswer()
277 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
278 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); in getanswer()
283 cp += n; /* name */ in getanswer()
284 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); in getanswer()
285 type = _getshort(cp); in getanswer()
286 cp += INT16SZ; /* type */ in getanswer()
287 class = _getshort(cp); in getanswer()
288 cp += INT16SZ + INT32SZ; /* class, TTL */ in getanswer()
289 n = _getshort(cp); in getanswer()
290 cp += INT16SZ; /* len */ in getanswer()
291 BOUNDS_CHECK(cp, n); in getanswer()
292 erdata = cp + n; in getanswer()
295 cp += n; in getanswer()
299 n = dn_expand(answer->buf, eom, cp, tbuf, in getanswer()
305 cp += n; in getanswer()
306 if (cp != erdata) in getanswer()
328 n = dn_expand(answer->buf, eom, cp, tbuf, in getanswer()
334 cp += n; in getanswer()
335 if (cp != erdata) in getanswer()
354 cp += n; in getanswer()
362 cp += n; in getanswer()
365 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); in getanswer()
371 cp += n; in getanswer()
372 if (cp != erdata) in getanswer()
405 cp += n; in getanswer()
409 cp += n; in getanswer()
414 memcpy(&in6, cp, NS_IN6ADDRSZ); in getanswer()
416 cp += n; in getanswer()
441 cp += n; in getanswer()
444 (void)memcpy(*hap++ = bp, cp, (size_t)n); in getanswer()
446 cp += n; in getanswer()
447 if (cp != erdata) in getanswer()
702 const char *cp; in gethostbyname_internal_real() local
738 if (!strchr(name, '.') && (cp = res_hostalias(res, name, in gethostbyname_internal_real()
740 name = cp; in gethostbyname_internal_real()
747 for (cp = name;; ++cp) { in gethostbyname_internal_real()
748 if (!*cp) { in gethostbyname_internal_real()
749 if (*--cp == '.') in gethostbyname_internal_real()
758 if (!isdigit((u_char) *cp) && *cp != '.') in gethostbyname_internal_real()
763 for (cp = name;; ++cp) { in gethostbyname_internal_real()
764 if (!*cp) { in gethostbyname_internal_real()
765 if (*--cp == '.') in gethostbyname_internal_real()
774 if (!isxdigit((u_char) *cp) && *cp != ':' && *cp != '.') in gethostbyname_internal_real()
963 char *cp, **q; in netbsd_gethostent_r() local
997 if (!(cp = strpbrk(p, "#\n"))) { in netbsd_gethostent_r()
1000 *cp = '\0'; in netbsd_gethostent_r()
1001 if (!(cp = strpbrk(p, " \t"))) in netbsd_gethostent_r()
1003 *cp++ = '\0'; in netbsd_gethostent_r()
1031 while (*cp == ' ' || *cp == '\t') in netbsd_gethostent_r()
1032 cp++; in netbsd_gethostent_r()
1033 if ((cp = strpbrk(name = cp, " \t")) != NULL) in netbsd_gethostent_r()
1034 *cp++ = '\0'; in netbsd_gethostent_r()
1036 while (cp && *cp) { in netbsd_gethostent_r()
1037 if (*cp == ' ' || *cp == '\t') { in netbsd_gethostent_r()
1038 cp++; in netbsd_gethostent_r()
1041 addalias(q, cp, aliases, maxaliases); in netbsd_gethostent_r()
1042 if ((cp = strpbrk(cp, " \t")) != NULL) in netbsd_gethostent_r()
1043 *cp++ = '\0'; in netbsd_gethostent_r()
1349 char *cp, **q, *ptr; in _yp_hostent() local
1380 cp = strpbrk(p, " \t"); in _yp_hostent()
1381 if (cp == NULL) in _yp_hostent()
1383 *cp++ = '\0'; in _yp_hostent()
1389 while (cp && *cp) { in _yp_hostent()
1390 if (*cp == '\n') { in _yp_hostent()
1391 cp++; in _yp_hostent()
1394 cp++; in _yp_hostent()
1400 while (*cp == ' ' || *cp == '\t') in _yp_hostent()
1401 cp++; in _yp_hostent()
1402 p = cp; in _yp_hostent()
1403 cp = strpbrk(p, " \t\n"); in _yp_hostent()
1404 if (cp != NULL) { in _yp_hostent()
1405 if (*cp == '\n') in _yp_hostent()
1407 *cp++ = '\0'; in _yp_hostent()
1415 p = cp; in _yp_hostent()
1419 while (cp && *cp) { in _yp_hostent()
1420 if (*cp == ' ' || *cp == '\t') { in _yp_hostent()
1421 cp++; in _yp_hostent()
1424 if (*cp == '\n') { in _yp_hostent()
1425 cp++; in _yp_hostent()
1428 addalias(q, cp, aliases, maxaliases); in _yp_hostent()
1429 cp = strpbrk(cp, " \t"); in _yp_hostent()
1430 if (cp != NULL) in _yp_hostent()
1431 *cp++ = '\0'; in _yp_hostent()