/bionic/libc/dns/resolv/ |
D | res_mkquery.c | 127 register u_char *cp, *ep; in res_nmkquery() local 149 cp = buf + HFIXEDSZ; in res_nmkquery() 161 if (ep - cp < QFIXEDSZ) in res_nmkquery() 163 if ((n = dn_comp(dname, cp, ep - cp - QFIXEDSZ, dnptrs, in res_nmkquery() 166 cp += n; in res_nmkquery() 167 ns_put16(type, cp); in res_nmkquery() 168 cp += INT16SZ; in res_nmkquery() 169 ns_put16(class, cp); in res_nmkquery() 170 cp += INT16SZ; in res_nmkquery() 177 if ((ep - cp) < RRFIXEDSZ) in res_nmkquery() [all …]
|
D | res_init.c | 171 register char *cp, **pp; in __res_vinit() local 249 if ((cp = getenv("LOCALDOMAIN")) != NULL) { in __res_vinit() 250 (void)strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit() 261 cp = statp->defdname; in __res_vinit() 263 *pp++ = cp; in __res_vinit() 264 for (n = 0; *cp && pp < statp->dnsrch + MAXDNSRCH; cp++) { in __res_vinit() 265 if (*cp == '\n') /* silly backwards compat */ in __res_vinit() 267 else if (*cp == ' ' || *cp == '\t') { in __res_vinit() 268 *cp = 0; in __res_vinit() 271 *pp++ = cp; in __res_vinit() [all …]
|
D | res_debug.c | 202 const u_char *cp = ns_rr_rdata(rr); in do_section() local 205 GETSHORT(optcode, cp); in do_section() 206 GETSHORT(optlen, cp); in do_section() 216 cp[i]); in do_section() 220 isprint(cp[i])? in do_section() 221 cp[i] : '.'); in do_section() 233 cp[i]); in do_section() 237 isprint(cp[i]) ? in do_section() 238 cp[i] : '.'); in do_section() 351 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) { in p_cdnname() argument [all …]
|
D | res_query.c | 228 const char *cp, * const *domain; in res_nsearch() local 241 for (cp = name; *cp != '\0'; cp++) in res_nsearch() 242 dots += (*cp == '.'); in res_nsearch() 244 if (cp > name && *--cp == '.') in res_nsearch() 248 if (!dots && (cp = res_hostalias(statp, name, tmp, sizeof tmp))!= NULL) in res_nsearch() 249 return (res_nquery(statp, cp, class, type, answer, anslen)); in res_nsearch()
|
/bionic/libc/upstream-freebsd/lib/libc/string/ |
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/bionic/ |
D | arpa_inet.cpp | 25 in_addr_t inet_network(const char* cp) { in inet_network() argument 26 in_addr_t network_order = inet_addr(cp); in inet_network() 30 in_addr_t inet_addr(const char* cp) { in inet_addr() argument 32 return inet_aton(cp, &addr) ? addr.s_addr : INADDR_NONE; in inet_addr() 35 int inet_aton(const char* cp, in_addr* addr) { in inet_aton() argument 43 parts[i] = strtoul(cp, &end, 0); in inet_aton() 44 if (errno != 0 || end == cp || (*end != '.' && *end != '\0')) return 0; in inet_aton() 46 cp = end + 1; in inet_aton()
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | memrchr.c | 28 const unsigned char *cp; in memrchr() local 31 cp = (unsigned char *)s + n; in memrchr() 33 if (*(--cp) == (unsigned char)c) in memrchr() 34 return((void *)cp); in memrchr()
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | getenv.c | 52 char **p, *cp; in __findenv() local 56 for (p = environ + *offset; (cp = *p) != NULL; ++p) { in __findenv() 57 for (np = name, i = len; i && *cp; i--) in __findenv() 58 if (*cp++ != *np++) in __findenv() 60 if (i == 0 && *cp++ == '=') { in __findenv() 62 return (cp); in __findenv()
|
D | setenv.c | 46 char **P, *cp; in putenv() local 50 for (cp = str; *cp && *cp != '='; ++cp) in putenv() 52 if (*cp != '=') { in putenv() 57 if (__findenv(str, (int)(cp - str), &offset) != NULL) { in putenv() 60 while (__findenv(str, (int)(cp - str), &offset)) { in putenv()
|
/bionic/libc/dns/nameser/ |
D | ns_name.c | 100 const u_char *cp; in ns_name_ntop() local 106 cp = src; in ns_name_ntop() 110 while ((n = *cp++) != 0) { in ns_name_ntop() 123 if ((l = labellen(cp - 1)) < 0) { in ns_name_ntop() 139 if ((m = decode_bitstring(&cp, dn, eom)) < 0) in ns_name_ntop() 148 c = *cp++; in ns_name_ntop() 224 char *cp; in ns_name_pton2() local 234 if ((cp = strchr(src, ']')) == NULL) { in ns_name_pton2() 238 if ((e = encode_bitsring(&src, cp + 2, in ns_name_pton2() 254 else if ((cp = strchr(digits, c)) != NULL) { in ns_name_pton2() [all …]
|
D | ns_samedomain.c | 58 const char *cp; in ns_samedomain() local 144 cp = a + diff; in ns_samedomain() 145 return (strncasecmp(cp, b, lb) == 0); in ns_samedomain()
|
/bionic/libc/dns/net/ |
D | gethnamaddr.c | 189 BOUNDS_CHECK(cp, x); \ 190 cp += (x); \ 204 const u_char *cp; in getanswer() local 247 cp = answer->buf; in getanswer() 252 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); in getanswer() 276 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer() 277 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); in getanswer() 282 cp += n; /* name */ in getanswer() 283 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); in getanswer() 284 type = _getshort(cp); in getanswer() [all …]
|
D | getaddrinfo.c | 1019 char *cp, *hostname2 = NULL, *scope, *addr; in explore_numeric_scope() 1040 cp = strchr(hostname, SCOPE_DELIMITER); in explore_numeric_scope() 1041 if (cp == NULL) in explore_numeric_scope() 1051 hostname2[cp - hostname] = '\0'; in explore_numeric_scope() 1053 scope = cp + 1; in explore_numeric_scope() 1295 BOUNDS_CHECK(cp, x); \ 1296 cp += (x); \ 1313 const u_char *cp; in getanswer() local 1349 cp = answer->buf; in getanswer() 1355 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer() [all …]
|
D | sethostent.c | 172 char **cp; in _hf_gethtbyname2() local 173 for (cp = hp->h_aliases; *cp != NULL; cp++) in _hf_gethtbyname2() 174 if (strcasecmp(*cp, name) == 0) in _hf_gethtbyname2() 176 if (*cp == NULL) continue; in _hf_gethtbyname2()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | vfprintf.c | 274 char *cp; /* handy char pointer (short term usage) */ in __vfprintf() local 427 cp = fmt; \ in __vfprintf() 428 while (is_digit(*cp)) { \ in __vfprintf() 429 APPEND_DIGIT(n2, *cp); \ in __vfprintf() 430 cp++; \ in __vfprintf() 432 if (*cp == '$') { \ in __vfprintf() 445 fmt = ++cp; \ in __vfprintf() 488 cp = fmt; in __vfprintf() 500 if (fmt != cp) { in __vfprintf() 501 ptrdiff_t m = fmt - cp; in __vfprintf() [all …]
|
D | vfwprintf.c | 284 wchar_t *cp; /* handy char pointer (short term usage) */ in __vfwprintf() local 419 cp = fmt; \ in __vfwprintf() 420 while (is_digit(*cp)) { \ in __vfwprintf() 421 APPEND_DIGIT(n2, *cp); \ in __vfwprintf() 422 cp++; \ in __vfwprintf() 424 if (*cp == '$') { \ in __vfwprintf() 433 fmt = ++cp; \ in __vfwprintf() 470 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) in __vfwprintf() 472 if (fmt != cp) { in __vfwprintf() 473 ptrdiff_t m = fmt - cp; in __vfwprintf() [all …]
|
D | mktemp.c | 47 char *start, *cp, *ep; in mktemp_internal() local 76 cp = start; in mktemp_internal() 86 for (i = 0; i < nitems(rbuf) && cp != ep; i++) in mktemp_internal() 87 *cp++ = tempchars[rbuf[i] % NUM_CHARS]; in mktemp_internal() 88 } while (cp != ep); in mktemp_internal()
|
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
D | regex2.h | 168 #define MCadd(p, cs, cp) mcadd(p, cs, cp) /* regcomp() internal fns */ argument 169 #define MCsub(p, cs, cp) mcsub(p, cs, cp) argument 170 #define MCin(p, cs, cp) mcin(p, cs, cp) argument
|
D | regcomp.c | 151 static void mcadd(struct parse *p, cset *cs, const char *cp); 153 static void mcsub(cset *cs, char *cp); 154 static int mcin(cset *cs, char *cp); 155 static char *mcfind(cset *cs, char *cp); 914 const struct cclass *cp; in p_b_cclass() local 927 for (cp = cclasses; cp->name != NULL; cp++) in p_b_cclass() 928 if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0') in p_b_cclass() 930 if (cp->name == NULL) { in p_b_cclass() 936 u = cp->chars; in p_b_cclass() 939 for (u = cp->multis; *u != '\0'; u += strlen(u) + 1) in p_b_cclass() [all …]
|
/bionic/tests/libs/ |
D | Android.build.dlext_testzip.mk | 41 $(hide) cp $^ $(dir $@)/libdir 77 $(hide) cp $(PRIVATE_LIB_D) $(dir $@)/libdir 78 $(hide) cp $(PRIVATE_LIB_A) $(dir $@)/libdir/dt_runpath_a 79 $(hide) cp $(PRIVATE_LIB_B) $(dir $@)/libdir/dt_runpath_b_c_x 80 $(hide) cp $(PRIVATE_LIB_C) $(dir $@)/libdir/dt_runpath_b_c_x 81 $(hide) cp $(PRIVATE_LIB_X) $(dir $@)/libdir/dt_runpath_b_c_x
|
/bionic/libc/kernel/uapi/linux/ |
D | nilfs2_ondisk.h | 307 …OINT_FNS(flag,name) static inline void nilfs_checkpoint_set_ ##name(struct nilfs_checkpoint * cp) \ 308 { cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) | (1UL << NILFS_CHECKPOINT_ ##flag)); \ 309 } static inline void nilfs_checkpoint_clear_ ##name(struct nilfs_checkpoint * cp) \ 310 { cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) & ~(1UL << NILFS_CHECKPOINT_ ##flag)); \ 311 } static inline int nilfs_checkpoint_ ##name(const struct nilfs_checkpoint * cp) \ 312 { return ! ! (le32_to_cpu(cp->cp_flags) & (1UL << NILFS_CHECKPOINT_ ##flag)); \
|
/bionic/libc/include/arpa/ |
D | nameser.h | 481 #define NS_GET16(s, cp) do { \ argument 482 const u_char *t_cp = (const u_char *)(cp); \ 486 (cp) += NS_INT16SZ; \ 489 #define NS_GET32(l, cp) do { \ argument 490 const u_char *t_cp = (const u_char *)(cp); \ 496 (cp) += NS_INT32SZ; \ 499 #define NS_PUT16(s, cp) do { \ argument 501 u_char *t_cp = (u_char *)(cp); \ 504 (cp) += NS_INT16SZ; \ 507 #define NS_PUT32(l, cp) do { \ argument [all …]
|
/bionic/linker/ |
D | linker_config.cpp | 171 ConfigParser cp(std::move(content)); in parse_config_file() local 180 int result = cp.next_token(&name, &value, &error); in parse_config_file() 184 cp.lineno(), in parse_config_file() 198 cp.lineno(), in parse_config_file() 211 cp.lineno()); in parse_config_file() 228 int result = cp.next_token(&name, &value, &error); in parse_config_file() 236 cp.lineno(), in parse_config_file() 248 int result = cp.next_token(&name, &value, &error); in parse_config_file() 258 cp.lineno(), in parse_config_file() 262 (*properties)[name] = PropertyValue(std::move(value), cp.lineno()); in parse_config_file() [all …]
|
/bionic/libc/kernel/tools/ |
D | generate_uapi_headers.sh | 76 cp ${file} ${tgt_dir} 100 cp ${file} ${tgt_dir} 272 cp "${KERNEL_DIR}/${src_dir}/include/uapi/asm-generic/types.h" \
|