/resolv/ |
A D | res_init.c | 266 cp = __strdup (cp); in res_vinit_1() 288 else if (*cp == ' ' || *cp == '\t') in res_vinit_1() 334 while (*cp == ' ' || *cp == '\t') in res_vinit_1() 339 cp = __strdup (cp); in res_vinit_1() 358 while (*cp == ' ' || *cp == '\t') in res_vinit_1() 368 cp = __strdup (cp); in res_vinit_1() 412 if ((*cp != '\0') && (*cp != '\n') && __inet_aton_exact (cp, &a)) in res_vinit_1() 472 if (*cp == '\0' || *cp == '\n' || *cp == ';') in res_vinit_1() 475 while (*cp && !is_sort_mask (*cp) && *cp != ';' in res_vinit_1() 652 while (*cp == ' ' || *cp == '\t') in res_setoptions() [all …]
|
A D | res_debug.c | 687 cp++; in precsize_aton() 726 cp++; in latlon2ul() 735 cp++; in latlon2ul() 744 cp++; in latlon2ul() 757 cp++; in latlon2ul() 760 cp++; in latlon2ul() 798 cp++; in latlon2ul() 801 cp++; in latlon2ul() 874 while (isspace(*cp) && (cp < maxcp)) in loc_aton() 885 while (isspace(*cp) && (cp < maxcp)) in loc_aton() [all …]
|
A D | inet_addr.c | 124 c = *cp; in inet_aton_end() 133 unsigned long ul = strtoul (cp, &endp, 0); in inet_aton_end() 139 digit = cp != endp; in inet_aton_end() 140 cp = endp; in inet_aton_end() 142 c = *cp; in inet_aton_end() 152 c = *++cp; in inet_aton_end() 171 *endp = cp; in inet_aton_end() 182 __inet_aton_exact (const char *cp, struct in_addr *addr) in __inet_aton_exact() argument 202 return inet_aton_end (cp, addr, &endp); in libc_hidden_def() 209 __inet_addr (const char *cp) in weak_alias() [all …]
|
A D | res_mkquery.c | 104 unsigned char *cp; in __res_context_mkquery() local 125 cp = buf + HFIXEDSZ; in __res_context_mkquery() 149 cp += n; in __res_context_mkquery() 151 NS_PUT16 (type, cp); in __res_context_mkquery() 163 cp += n; in __res_context_mkquery() 167 NS_PUT32 (0, cp); in __res_context_mkquery() 168 NS_PUT16 (0, cp); in __res_context_mkquery() 175 return cp - buf; in __res_context_mkquery() 261 *cp++ = 0; in __res_nopt() 294 NS_PUT16 (flags, cp); in __res_nopt() [all …]
|
A D | ns_name_skip.c | 27 const unsigned char *cp; in ___ns_name_skip() local 30 cp = *ptrptr; in ___ns_name_skip() 31 while (cp < eom) in ___ns_name_skip() 33 n = *cp++; in ___ns_name_skip() 37 *ptrptr = cp; in ___ns_name_skip() 45 if (eom - cp < n) in ___ns_name_skip() 47 cp += n; in ___ns_name_skip() 50 if (cp == eom) in ___ns_name_skip() 53 *ptrptr = cp + 1; in ___ns_name_skip()
|
A D | compat-gethnamaddr.c | 487 for (cp = name;; ++cp) { in res_gethostbyname2_context() 515 if (!isdigit(*cp) && *cp != '.') in res_gethostbyname2_context() 520 for (cp = name;; ++cp) { in res_gethostbyname2_context() 546 if (!isxdigit(*cp) && *cp != ':' && *cp != '.') in res_gethostbyname2_context() 758 while (*cp == ' ' || *cp == '\t') in _gethtent() 759 cp++; in _gethtent() 762 if ((cp = strpbrk(cp, " \t"))) in _gethtent() 764 while (cp && *cp) { in _gethtent() 765 if (*cp == ' ' || *cp == '\t') { in _gethtent() 771 if ((cp = strpbrk(cp, " \t"))) in _gethtent() [all …]
|
A D | res_nameinquery.c | 93 const unsigned char *cp = buf + HFIXEDSZ; in __libc_res_nameinquery() local 101 n = __libc_dn_expand (buf, eom, cp, tname, sizeof tname); in __libc_res_nameinquery() 104 cp += n; in __libc_res_nameinquery() 105 if (cp + 2 * INT16SZ > eom) in __libc_res_nameinquery() 107 NS_GET16 (ttype, cp); in __libc_res_nameinquery() 108 NS_GET16 (tclass, cp); in __libc_res_nameinquery()
|
A D | res_queriesmatch.c | 109 const unsigned char *cp = buf1 + HFIXEDSZ; in __libc_res_queriesmatch() local 116 n = __libc_dn_expand (buf1, eom1, cp, tname, sizeof tname); in __libc_res_queriesmatch() 119 cp += n; in __libc_res_queriesmatch() 120 if (eom1 - cp < 4) in __libc_res_queriesmatch() 122 NS_GET16 (ttype, cp); in __libc_res_queriesmatch() 123 NS_GET16 (tclass, cp); in __libc_res_queriesmatch()
|
A D | ns_date.c | 43 ns_datetosecs(const char *cp, int *errp) { in ns_datetosecs() argument 50 if (strlen(cp) != 14U) { in ns_datetosecs() 57 time.tm_year = datepart(cp + 0, 4, 1990, 9999, errp) - 1900; in ns_datetosecs() 58 time.tm_mon = datepart(cp + 4, 2, 01, 12, errp) - 1; in ns_datetosecs() 59 time.tm_mday = datepart(cp + 6, 2, 01, 31, errp); in ns_datetosecs() 60 time.tm_hour = datepart(cp + 8, 2, 00, 23, errp); in ns_datetosecs() 61 time.tm_min = datepart(cp + 10, 2, 00, 59, errp); in ns_datetosecs() 62 time.tm_sec = datepart(cp + 12, 2, 00, 59, errp); in ns_datetosecs()
|
A D | ns_name.c | 51 const u_char *cp; in ns_name_ntol() local 57 cp = src; in ns_name_ntol() 65 while ((n = *cp++) != 0) { in ns_name_ntol() 72 if ((l = labellen(cp - 1)) < 0) { in ns_name_ntol() 81 c = *cp++; in ns_name_ntol()
|
A D | ns_name_pack.c | 43 const unsigned char *dn, *cp, *sp; in dn_find() local 55 cp = sp; in dn_find() 56 while ((n = *cp++) != 0) in dn_find() 66 if (mklower (*dn++) != mklower (*cp++)) in dn_find() 69 if (*dn == '\0' && *cp == '\0') in dn_find() 75 cp = msg + (((n & 0x3f) << 8) | *cp); in dn_find()
|
A D | ns_name_ntop.c | 60 const unsigned char *cp; in ___ns_name_ntop() local 65 cp = src; in ___ns_name_ntop() 69 while ((l = *cp++) != 0) in ___ns_name_ntop() 88 c = *cp++; in ___ns_name_ntop()
|
A D | ns_samedomain.c | 47 const char *cp; in ns_samedomain() local 133 cp = a + diff; in ns_samedomain() 134 return (strncasecmp(cp, b, lb) == 0); in ns_samedomain()
|
A D | res_query.c | 340 const char *cp; in __res_context_search() local 353 for (cp = name; *cp != '\0'; cp++) in __res_context_search() 354 dots += (*cp == '.'); in __res_context_search() 356 if (cp > name && *--cp == '.') in __res_context_search() 360 if (!dots && (cp = __res_context_hostalias in __res_context_search() 362 return __res_context_query (ctx, cp, class, type, answer, in __res_context_search()
|
A D | res_send.c | 584 u_char *cp; in send_vc() local 655 cp = (u_char *)&rlen16; in send_vc() 657 while ((n = TEMP_FAILURE_RETRY (read(statp->_vcsock, cp, in send_vc() 659 cp += n; in send_vc() 741 cp = *thisansp; in send_vc() 742 while (len != 0 && (n = read(statp->_vcsock, (char *)cp, (int)len)) > 0){ in send_vc() 743 cp += n; in send_vc()
|
/resolv/nss_dns/ |
A D | dns-network.c | 329 cp += n + QFIXEDSZ; in libc_hidden_def() 350 cp += n; in libc_hidden_def() 352 if (end_of_message - cp < 10) in libc_hidden_def() 359 GETSHORT (type, cp); in libc_hidden_def() 360 GETSHORT (class, cp); in libc_hidden_def() 361 cp += INT32SZ; /* TTL */ in libc_hidden_def() 363 GETSHORT (rdatalen, cp); in libc_hidden_def() 364 if (end_of_message - cp < rdatalen) in libc_hidden_def() 387 cp += n; in libc_hidden_def() 390 cp += rdatalen; in libc_hidden_def() [all …]
|
A D | dns-host.c | 216 name = cp; in libc_hidden_def() 357 name = cp; in libc_hidden_def() 793 cp += n; in getanswer_r() 812 cp += n; in getanswer_r() 851 cp += n; in getanswer_r() 871 cp += n; in getanswer_r() 960 cp += n; in getanswer_r() 1127 cp += n; in gaih_getanswer_slice() 1146 cp += n; in gaih_getanswer_slice() 1187 cp += n; in gaih_getanswer_slice() [all …]
|
/resolv/arpa/ |
A D | nameser.h | 362 #define NS_GET16(s, cp) do { \ argument 363 const unsigned char *t_cp = (const unsigned char *)(cp); \ 367 (cp) += NS_INT16SZ; \ 370 #define NS_GET32(l, cp) do { \ argument 377 (cp) += NS_INT32SZ; \ 380 #define NS_PUT16(s, cp) do { \ argument 382 unsigned char *t_cp = (unsigned char *)(cp); \ 385 (cp) += NS_INT16SZ; \ 388 #define NS_PUT32(l, cp) do { \ argument 390 unsigned char *t_cp = (unsigned char *)(cp); \ [all …]
|