/bionic/libc/netbsd/resolv/ |
D | res_mkquery.c | 128 register u_char *cp, *ep; in res_nmkquery() local 150 cp = buf + HFIXEDSZ; in res_nmkquery() 162 if (ep - cp < QFIXEDSZ) in res_nmkquery() 164 if ((n = dn_comp(dname, cp, ep - cp - QFIXEDSZ, dnptrs, in res_nmkquery() 167 cp += n; in res_nmkquery() 168 ns_put16(type, cp); in res_nmkquery() 169 cp += INT16SZ; in res_nmkquery() 170 ns_put16(class, cp); in res_nmkquery() 171 cp += INT16SZ; in res_nmkquery() 178 if ((ep - cp) < RRFIXEDSZ) in res_nmkquery() [all …]
|
D | res_init.c | 175 register char *cp, **pp; in load_domain_search_list() local 179 if ((cp = strchr(statp->defdname, '\n')) != NULL) in load_domain_search_list() 180 *cp = '\0'; in load_domain_search_list() 181 cp = statp->defdname; in load_domain_search_list() 184 while (*cp == ' ' || *cp == '\t') /* skip leading white space */ in load_domain_search_list() 185 cp++; in load_domain_search_list() 186 if (*cp == '\0') /* stop if nothing more */ in load_domain_search_list() 188 *pp++ = cp; /* record this search domain */ in load_domain_search_list() 189 while (*cp) { /* zero-terminate it */ in load_domain_search_list() 190 if (*cp == ' ' || *cp == '\t') { in load_domain_search_list() [all …]
|
D | res_debug.c | 313 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) { in p_cdnname() argument 317 if ((n = dn_expand(msg, msg + len, cp, name, sizeof name)) < 0) in p_cdnname() 323 return (cp + n); in p_cdnname() 327 p_cdname(const u_char *cp, const u_char *msg, FILE *file) { in p_cdname() argument 328 return (p_cdnname(cp, msg, PACKETSZ, file)); in p_cdname() 335 p_fqnname(cp, msg, msglen, name, namelen) in p_fqnname() argument 336 const u_char *cp, *msg; in p_fqnname() 343 if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0) 352 return (cp + n); 358 p_fqname(const u_char *cp, const u_char *msg, FILE *file) { in p_fqname() argument [all …]
|
D | res_query.c | 227 const char *cp, * const *domain; in res_nsearch() local 240 for (cp = name; *cp != '\0'; cp++) in res_nsearch() 241 dots += (*cp == '.'); in res_nsearch() 243 if (cp > name && *--cp == '.') in res_nsearch() 247 if (!dots && (cp = res_hostalias(statp, name, tmp, sizeof tmp))!= NULL) in res_nsearch() 248 return (res_nquery(statp, cp, class, type, answer, anslen)); in res_nsearch()
|
D | res_send.c | 282 const u_char *cp = buf + HFIXEDSZ; in res_nameinquery() local 289 n = dn_expand(buf, eom, cp, tname, sizeof tname); in res_nameinquery() 292 cp += n; in res_nameinquery() 293 if (cp + 2 * INT16SZ > eom) in res_nameinquery() 295 ttype = ns_get16(cp); cp += INT16SZ; in res_nameinquery() 296 tclass = ns_get16(cp); cp += INT16SZ; in res_nameinquery() 319 const u_char *cp = buf1 + HFIXEDSZ; in res_queriesmatch() local 339 n = dn_expand(buf1, eom1, cp, tname, sizeof tname); in res_queriesmatch() 342 cp += n; in res_queriesmatch() 343 if (cp + 2 * INT16SZ > eom1) in res_queriesmatch() [all …]
|
/bionic/libc/netbsd/net/ |
D | getservent_r.c | 84 char *p, *cp, **q; in getservent_r() local 106 cp = strpbrk(p, ",/"); in getservent_r() 107 if (cp == NULL) in getservent_r() 109 *cp++ = '\0'; in getservent_r() 111 sp->s_proto = cp; in getservent_r() 123 cp = strpbrk(cp, " \t"); in getservent_r() 124 if (cp != NULL) in getservent_r() 125 *cp++ = '\0'; in getservent_r() 126 while (cp && *cp) { in getservent_r() 127 if (*cp == ' ' || *cp == '\t') { in getservent_r() [all …]
|
D | getservbyname_r.c | 53 char **cp; in getservbyname_r() local 62 for (cp = s->s_aliases; *cp; cp++) in getservbyname_r() 63 if (strcmp(name, *cp) == 0) in getservbyname_r()
|
D | getaddrinfo.c | 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() [all …]
|
D | getnameinfo.c | 500 hexname(cp, len, host, hostlen) in hexname() argument 501 const u_int8_t *cp; in hexname() 513 i ? ":" : "", cp[i]);
|
/bionic/libc/wchar/ |
D | wcscat.c | 42 wchar_t *cp; in wcscat() local 44 cp = s1; in wcscat() 45 while (*cp != L'\0') in wcscat() 46 cp++; in wcscat() 47 while ((*cp++ = *s2++) != L'\0') in wcscat()
|
D | wcscpy.c | 42 wchar_t *cp; in wcscpy() local 44 cp = s1; in wcscpy() 45 while ((*cp++ = *s2++) != L'\0') in wcscpy()
|
/bionic/libc/stdlib/ |
D | getenv.c | 51 char **p, *cp; in __findenv() local 58 for (p = environ; (cp = *p) != NULL; ++p) { in __findenv() 59 for (np = name, i = len; i && *cp; i--) in __findenv() 60 if (*cp++ != *np++) in __findenv() 62 if (i == 0 && *cp++ == '=') { in __findenv() 64 return (cp); in __findenv()
|
/bionic/libc/inet/ |
D | inet_aton.c | 68 inet_aton(const char *cp, struct in_addr *addr) in inet_aton() argument 76 c = *cp; in inet_aton() 87 c = *++cp; in inet_aton() 89 base = 16, c = *++cp; in inet_aton() 96 c = *++cp; in inet_aton() 100 c = *++cp; in inet_aton() 114 c = *++cp; in inet_aton()
|
D | inet_addr.c | 65 inet_addr(const char *cp) in inet_addr() argument 69 if (inet_aton(cp, &val)) in inet_addr()
|
/bionic/libc/netbsd/nameser/ |
D | ns_name.c | 105 const u_char *cp; in ns_name_ntop() local 111 cp = src; in ns_name_ntop() 115 while ((n = *cp++) != 0) { in ns_name_ntop() 128 if ((l = labellen(cp - 1)) < 0) { in ns_name_ntop() 144 if ((m = decode_bitstring(&cp, dn, eom)) < 0) in ns_name_ntop() 153 c = *cp++; in ns_name_ntop() 210 char *cp; in ns_name_pton() local 220 if ((cp = strchr(src, ']')) == NULL) { in ns_name_pton() 224 if ((e = encode_bitsring(&src, cp + 2, in ns_name_pton() 240 else if ((cp = strchr(digits, c)) != NULL) { in ns_name_pton() [all …]
|
D | ns_samedomain.c | 57 const char *cp; in ns_samedomain() local 143 cp = a + diff; in ns_samedomain() 144 return (strncasecmp(cp, b, lb) == 0); in ns_samedomain()
|
/bionic/libc/netbsd/ |
D | gethnamaddr.c | 155 cp += (x); \ 156 if (cp > eom) { \ 175 const u_char *cp; in getanswer() local 212 cp = answer->buf; in getanswer() 218 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer() 247 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer() 248 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer() 253 cp += n; /* name */ in getanswer() 254 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); in getanswer() 255 type = _getshort(cp); in getanswer() [all …]
|
/bionic/libc/stdio/ |
D | vfprintf.c | 164 char *cp; /* handy char pointer (short term usage) */ in vfprintf() local 270 cp = fmt; \ in vfprintf() 271 while (is_digit(*cp)) { \ in vfprintf() 272 n2 = 10 * n2 + to_digit(*cp); \ in vfprintf() 273 cp++; \ in vfprintf() 275 if (*cp == '$') { \ in vfprintf() 284 fmt = ++cp; \ in vfprintf() 324 cp = fmt; in vfprintf() 343 if ((m = fmt - cp) != 0) { in vfprintf() 344 PRINT(cp, m); in vfprintf() [all …]
|
/bionic/libc/regex/ |
D | regex2.h | 116 #define MCadd(p, cs, cp) mcadd(p, cs, cp) /* regcomp() internal fns */ argument 117 #define MCsub(p, cs, cp) mcsub(p, cs, cp) argument 118 #define MCin(p, cs, cp) mcin(p, cs, cp) argument
|
D | regcomp.c | 770 const struct cclass *cp; in p_b_cclass() local 778 for (cp = cclasses; cp->name != NULL; cp++) in p_b_cclass() 779 if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0') in p_b_cclass() 781 if (cp->name == NULL) { in p_b_cclass() 787 u = cp->chars; in p_b_cclass() 790 for (u = cp->multis; *u != '\0'; u += strlen(u) + 1) in p_b_cclass() 834 const struct cname *cp; in p_b_coll_elem() local 844 for (cp = cnames; cp->name != NULL; cp++) in p_b_coll_elem() 845 if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0') in p_b_coll_elem() 846 return(cp->code); /* known name */ in p_b_coll_elem() [all …]
|
/bionic/libc/private/ |
D | arpa_nameser.h | 433 #define NS_GET16(s, cp) do { \ argument 434 const u_char *t_cp = (const u_char *)(cp); \ 438 (cp) += NS_INT16SZ; \ 441 #define NS_GET32(l, cp) do { \ argument 442 const u_char *t_cp = (const u_char *)(cp); \ 448 (cp) += NS_INT32SZ; \ 451 #define NS_PUT16(s, cp) do { \ argument 453 u_char *t_cp = (u_char *)(cp); \ 456 (cp) += NS_INT16SZ; \ 459 #define NS_PUT32(l, cp) do { \ argument [all …]
|
/bionic/libc/bionic/ |
D | fts.c | 182 char *cp; in fts_load() local 193 if ((cp = strrchr(p->fts_name, '/')) && (cp != p->fts_name || cp[1])) { in fts_load() 194 len = strlen(++cp); in fts_load() 195 memmove(p->fts_name, cp, len + 1); in fts_load() 553 char *cp = NULL; in fts_build() local 632 cp = sp->fts_path + len; in fts_build() 633 *cp++ = '/'; in fts_build() 676 cp = sp->fts_path + len; in fts_build() 719 memmove(cp, p->fts_name, p->fts_namelen + 1); in fts_build() 757 --cp; in fts_build() [all …]
|
/bionic/libm/src/ |
D | e_powf.c | 49 cp = 9.6179670095e-01, /* 0x3f76384f =2/(3ln2) */ variable 191 z_l = cp_l*p_h+p_l*cp+dp_l[k]; in __ieee754_powf()
|
D | e_pow.c | 90 cp = 9.61796693925975554329e-01, /* 0x3FEEC709, 0xDC3A03FD =2/(3ln2) */ variable 246 z_l = cp_l*p_h+p_l*cp+dp_l[k]; in __ieee754_pow()
|
/bionic/libc/tzcode/ |
D | localtime.c | 376 register char * cp = &sp->chars[ttisp->tt_abbrind]; in settzname() local 378 if (strlen(cp) > TZ_ABBR_MAX_LEN && in settzname() 379 strcmp(cp, GRANDPARENTED) != 0) in settzname() 380 *(cp + TZ_ABBR_MAX_LEN) = '\0'; in settzname() 1008 register char * cp; local 1218 cp = sp->chars; 1219 (void) strncpy(cp, stdname, stdlen); 1220 cp += stdlen; 1221 *cp++ = '\0'; 1223 (void) strncpy(cp, dstname, dstlen); [all …]
|