/bionic/libc/upstream-openbsd/lib/libc/string/ |
H A D | memrchr.c | 28 const unsigned char *cp; local 31 cp = (unsigned char *)s + n; 33 if (*(--cp) == (unsigned char)c) 34 return((void *)cp);
|
/bionic/libc/upstream-freebsd/lib/libc/string/ |
H A D | wcscat.c | 42 wchar_t *cp; local 44 cp = s1; 45 while (*cp != L'\0') 46 cp++; 47 while ((*cp++ = *s2++) != L'\0')
|
H A D | wcscpy.c | 42 wchar_t *cp; local 44 cp = s1; 45 while ((*cp++ = *s2++) != L'\0')
|
/bionic/libc/dns/resolv/ |
H A D | res_mkquery.c | 128 register u_char *cp, *ep; local 150 cp = buf + HFIXEDSZ; 162 if (ep - cp < QFIXEDSZ) 164 if ((n = dn_comp(dname, cp, ep - cp - QFIXEDSZ, dnptrs, 167 cp += n; 168 ns_put16(type, cp); 169 cp += INT16SZ; 170 ns_put16(class, cp); 171 cp 238 register u_char *cp, *ep; local [all...] |
H A D | res_init.c | 172 register char *cp, **pp; local 248 if ((cp = getenv("LOCALDOMAIN")) != NULL) { 249 (void)strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); 260 cp = statp->defdname; 262 *pp++ = cp; 263 for (n = 0; *cp && pp < statp->dnsrch + MAXDNSRCH; cp++) { 264 if (*cp == '\n') /* silly backwards compat */ 266 else if (*cp == ' ' || *cp 494 const char *cp = options; local [all...] |
H A D | res_debug.c | 202 const u_char *cp = ns_rr_rdata(rr); local 205 GETSHORT(optcode, cp); 206 GETSHORT(optlen, cp); 216 cp[i]); 220 isprint(cp[i])? 221 cp[i] : '.'); 233 cp[i]); 237 isprint(cp[i]) ? 238 cp[i] : '.'); 351 p_cdnname(const u_char *cp, cons argument 365 p_cdname(const u_char *cp, const u_char *msg, FILE *file) argument 373 p_fqnname(const u_char *cp, const u_char *msg, int msglen, char *name, int namelen) argument 394 p_fqname(const u_char *cp, const u_char *msg, FILE *file) argument 781 const char *cp; local 819 const char *cp; local 916 const char *cp, *maxcp; local 1028 const u_char *cp = binary; local [all...] |
H A D | res_query.c | 228 const char *cp, * const *domain; local 241 for (cp = name; *cp != '\0'; cp++) 242 dots += (*cp == '.'); 244 if (cp > name && *--cp == '.') 248 if (!dots && (cp = res_hostalias(statp, name, tmp, sizeof tmp))!= NULL) 249 return (res_nquery(statp, cp, class, type, answer, anslen));
|
H A D | res_send.c | 289 const u_char *cp = buf + HFIXEDSZ; local 296 n = dn_expand(buf, eom, cp, tname, sizeof tname); 299 cp += n; 300 if (cp + 2 * INT16SZ > eom) 302 ttype = ns_get16(cp); cp += INT16SZ; 303 tclass = ns_get16(cp); cp += INT16SZ; 326 const u_char *cp = buf1 + HFIXEDSZ; local 346 n = dn_expand(buf1, eom1, cp, tnam 764 u_char *cp; local [all...] |
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
H A D | getenv.c | 52 char **p, *cp; local 56 for (p = environ + *offset; (cp = *p) != NULL; ++p) { 57 for (np = name, i = len; i && *cp; i--) 58 if (*cp++ != *np++) 60 if (i == 0 && *cp++ == '=') { 62 return (cp);
|
H A D | setenv.c | 46 char **P, *cp; local 50 for (cp = str; *cp && *cp != '='; ++cp) 52 if (*cp != '=') { 57 if (__findenv(str, (int)(cp - str), &offset) != NULL) { 60 while (__findenv(str, (int)(cp - str), &offset)) {
|
/bionic/libc/bionic/ |
H A D | arpa_inet.cpp | 25 in_addr_t inet_network(const char* cp) { argument 26 in_addr_t network_order = inet_addr(cp); 30 in_addr_t inet_addr(const char* cp) { argument 32 return inet_aton(cp, &addr) ? addr.s_addr : INADDR_NONE; 35 int inet_aton(const char* cp, in_addr* addr) { argument 43 parts[i] = strtoul(cp, &end, 0); 44 if (errno != 0 || end == cp || (*end != '.' && *end != '\0')) return 0; 46 cp = end + 1;
|
/bionic/libc/dns/nameser/ |
H A D | ns_name.c | 100 const u_char *cp; local 106 cp = src; 110 while ((n = *cp++) != 0) { 123 if ((l = labellen(cp - 1)) < 0) { 139 if ((m = decode_bitstring(&cp, dn, eom)) < 0) 148 c = *cp++; 224 char *cp; local 234 if ((cp = strchr(src, ']')) == NULL) { 238 if ((e = encode_bitsring(&src, cp + 2, 254 else if ((cp 359 const u_char *cp; local 693 const u_char *cp; local 937 const u_char *dn, *cp, *sp; local 997 const unsigned char *cp = *cpp; local 1048 const char *cp = *bp; local [all...] |
H A D | ns_samedomain.c | 58 const char *cp; local 144 cp = a + diff; 145 return (strncasecmp(cp, b, lb) == 0);
|
/bionic/libc/dns/net/ |
H A D | gethnamaddr.c | 189 cp += (x); \ 190 if (cp > eom) \ 205 const u_char *cp; local 248 cp = answer->buf; 253 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); 277 while (ancount-- > 0 && cp < eom && !had_error) { 278 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); 283 cp += n; /* name */ 284 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); 285 type = _getshort(cp); 702 const char *cp; local 963 char *cp, **q; local 1349 char *cp, **q, *ptr; local [all...] |
H A D | getaddrinfo.c | 1019 char *cp, *hostname2 = NULL, *scope, *addr; 1040 cp = strchr(hostname, SCOPE_DELIMITER); 1041 if (cp == NULL) 1051 hostname2[cp - hostname] = '\0'; 1053 scope = cp + 1; 1302 const u_char *cp; local 1338 cp = answer->buf + HFIXEDSZ; 1343 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 1348 cp += n + QFIXEDSZ; 1366 while (ancount-- > 0 && cp < eo 2031 char *cp, *tname, *cname; local 2244 const char *cp, * const *domain; local [all...] |
H A D | sethostent.c | 172 char **cp; local 173 for (cp = hp->h_aliases; *cp != NULL; cp++) 174 if (strcasecmp(*cp, name) == 0) 176 if (*cp == NULL) continue;
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | vfprintf.c | 274 char *cp; /* handy char pointer (short term usage) */ local 293 * C: cp points to the string MMMNNN. Leading and trailing 427 cp = fmt; \ 428 while (is_digit(*cp)) { \ 429 APPEND_DIGIT(n2, *cp); \ 430 cp++; \ 432 if (*cp == '$') { \ 445 fmt = ++cp; \ 488 cp = fmt; 500 if (fmt != cp) { 1145 char *cp; /* handy char pointer (short term usage) */ local [all...] |
H A D | vfwprintf.c | 284 wchar_t *cp; /* handy char pointer (short term usage) */ local 300 * C: cp points to the string MMMNNN. Leading and trailing 419 cp = fmt; \ 420 while (is_digit(*cp)) { \ 421 APPEND_DIGIT(n2, *cp); \ 422 cp++; \ 424 if (*cp == '$') { \ 433 fmt = ++cp; \ 470 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) 472 if (fmt != cp) { 1114 wchar_t *cp; /* handy char pointer (short term usage) */ local [all...] |
H A D | mktemp.c | 47 char *start, *cp, *ep; local 76 cp = start; 86 for (i = 0; i < nitems(rbuf) && cp != ep; i++) 87 *cp++ = tempchars[rbuf[i] % NUM_CHARS]; 88 } while (cp != ep);
|
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
H A D | regex2.h | 168 #define MCadd(p, cs, cp) mcadd(p, cs, cp) /* regcomp() internal fns */ 169 #define MCsub(p, cs, cp) mcsub(p, cs, cp) 170 #define MCin(p, cs, cp) mcin(p, cs, cp)
|
H A 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; local 927 for (cp = cclasses; cp->name != NULL; cp++) 928 if (strncmp(cp->name, sp, len) == 0 && cp 995 const struct cname *cp; local 1406 mcadd( struct parse *p, cset *cs, const char *cp) argument 1815 char *cp; local [all...] |
/bionic/tests/libs/ |
H A 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/include/arpa/ |
H A D | nameser.h | 485 #define NS_GET16(s, cp) do { \ 486 const u_char *t_cp = (const u_char *)(cp); \ 490 (cp) += NS_INT16SZ; \ 493 #define NS_GET32(l, cp) do { \ 494 const u_char *t_cp = (const u_char *)(cp); \ 500 (cp) += NS_INT32SZ; \ 503 #define NS_PUT16(s, cp) do { \ 505 u_char *t_cp = (u_char *)(cp); \ 508 (cp) += NS_INT16SZ; \ 511 #define NS_PUT32(l, cp) d [all...] |
/bionic/libc/kernel/uapi/linux/ |
H A D | hdlcdrv.h | 64 struct hdlcdrv_channel_params cp; member in union:hdlcdrv_ioctl::__anon372
|
/bionic/tests/math_data/ |
H A D | asinf_intel_data.h | 36 -0x1.03909cp-1 40 0x1.03909cp-1 140 0x1.00000cp-1 144 -0x1.00000cp-1 172 0x1.00002cp-1 176 -0x1.00002cp-1 260 0x1.001cp-1 264 -0x1.001cp-1 308 0x1.005cp-1 312 -0x1.005cp [all...] |