/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 | 210 const u_char *cp = ns_rr_rdata(rr); local 213 GETSHORT(optcode, cp); 214 GETSHORT(optlen, cp); 224 cp[i]); 228 isprint(cp[i])? 229 cp[i] : '.'); 241 cp[i]); 245 isprint(cp[i]) ? 246 cp[i] : '.'); 359 p_cdnname(const u_char *cp, cons argument 373 p_cdname(const u_char *cp, const u_char *msg, FILE *file) argument 381 p_fqnname(const u_char *cp, const u_char *msg, int msglen, char *name, int namelen) argument 402 p_fqname(const u_char *cp, const u_char *msg, FILE *file) argument 789 const char *cp; local 827 const char *cp; local 924 const char *cp, *maxcp; local 1036 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 | 291 const u_char *cp = buf + HFIXEDSZ; local 298 n = dn_expand(buf, eom, cp, tname, sizeof tname); 301 cp += n; 302 if (cp + 2 * INT16SZ > eom) 304 ttype = ns_get16(cp); cp += INT16SZ; 305 tclass = ns_get16(cp); cp += INT16SZ; 328 const u_char *cp = buf1 + HFIXEDSZ; local 348 n = dn_expand(buf1, eom1, cp, tnam 743 u_char *cp; local [all...] |
/bionic/libc/upstream-openbsd/lib/libc/net/ |
H A D | inet_network.c | 42 inet_network(const char *cp) argument 51 if (*cp == '0') 52 base = 8, cp++; 53 if (*cp == 'x' || *cp == 'X') 54 base = 16, cp++; 55 while ((c = *cp)) { 58 cp++; 63 cp++; 68 if (*cp [all...] |
H A D | inet_addr.c | 65 inet_addr(const char *cp) argument 69 if (inet_aton(cp, &val)) 75 * Check whether "cp" is a valid ascii representation 82 inet_aton(const char *cp, struct in_addr *addr) argument 90 c = *cp; 101 c = *++cp; 103 base = 16, c = *++cp; 111 c = *++cp; 117 c = *++cp; 131 c = *++cp; [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 | 48 char **P, *cp; local 52 for (cp = str; *cp && *cp != '='; ++cp) 54 if (*cp != '=') { 59 if (__findenv(str, (int)(cp - str), &offset) != NULL) { 62 while (__findenv(str, (int)(cp - str), &offset)) {
|
/bionic/libc/dns/nameser/ |
H A D | ns_name.c | 106 const u_char *cp; local 112 cp = src; 116 while ((n = *cp++) != 0) { 129 if ((l = labellen(cp - 1)) < 0) { 145 if ((m = decode_bitstring(&cp, dn, eom)) < 0) 154 c = *cp++; 230 char *cp; local 240 if ((cp = strchr(src, ']')) == NULL) { 244 if ((e = encode_bitsring(&src, cp + 2, 260 else if ((cp 365 const u_char *cp; local 699 const u_char *cp; local 943 const u_char *dn, *cp, *sp; local 1003 const unsigned char *cp = *cpp; local 1054 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/ |
H A D | gethnamaddr.c | 166 cp += (x); \ 167 if (cp > eom) { \ 186 const u_char *cp; local 223 cp = answer->buf; 229 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 258 while (ancount-- > 0 && cp < eom && !had_error) { 259 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 264 cp += n; /* name */ 265 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); 266 type = _getshort(cp); 628 const char *cp; local 924 char *cp, **q; local 1037 char *tmpbuf, *ptr, **cp; local [all...] |
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | mktemp.c | 45 char *start, *cp, *ep; local 68 cp = start; 78 for (i = 0; i < nitems(rbuf) && cp != ep; i++) 79 *cp++ = tempchars[rbuf[i] % NUM_CHARS]; 80 } while (cp != ep);
|
H A D | vfprintf.c | 278 char *cp; /* handy char pointer (short term usage) */ local 297 * C: cp points to the string MMMNNN. Leading and trailing 431 cp = fmt; \ 432 while (is_digit(*cp)) { \ 433 APPEND_DIGIT(n2, *cp); \ 434 cp++; \ 436 if (*cp == '$') { \ 445 fmt = ++cp; \ 488 cp = fmt; 496 if (fmt != cp) { 1141 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) { 1125 wchar_t *cp; /* handy char pointer (short term usage) */ local [all...] |
/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); 915 const struct cclass *cp; local 928 for (cp = cclasses; cp->name != NULL; cp++) 929 if (strncmp(cp->name, sp, len) == 0 && cp 996 const struct cname *cp; local 1411 mcadd( struct parse *p, cset *cs, const char *cp) argument 1834 char *cp; local [all...] |
/bionic/libc/dns/net/ |
H A D | getaddrinfo.c | 1028 char *cp, *hostname2 = NULL, *scope, *addr; 1049 cp = strchr(hostname, SCOPE_DELIMITER); 1050 if (cp == NULL) 1060 hostname2[cp - hostname] = '\0'; 1062 scope = cp + 1; 1311 const u_char *cp; local 1347 cp = answer->buf + HFIXEDSZ; 1352 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 1357 cp += n + QFIXEDSZ; 1375 while (ancount-- > 0 && cp < eo 2039 char *cp, *tname, *cname; local 2252 const char *cp, * const *domain; local [all...] |
/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::__anon329
|
/bionic/benchmarks/ |
H A D | Android.mk | 72 cp $(TARGET_OUT_EXECUTABLES)/$(LINKER) /system/bin 73 cp $(TARGET_OUT_EXECUTABLES)/sh /system/bin
|
/bionic/libc/kernel/tools/ |
H A D | generate_uapi_headers.sh | 72 cp ${file} ${tgt_dir} 96 cp ${file} ${tgt_dir}
|
/bionic/libc/bionic/ |
H A D | fts.c | 184 char *cp; local 195 if ((cp = strrchr(p->fts_name, '/')) && (cp != p->fts_name || cp[1])) { 196 len = strlen(++cp); 197 memmove(p->fts_name, cp, len + 1); 555 char *cp = NULL; local 634 cp = sp->fts_path + len; 635 *cp++ = '/'; 678 cp [all...] |