/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...] |
/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/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/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/dns/resolv/ |
H A D | res_cache.c | 1932 register char *cp; local 1968 if ((cp = strchr(cache_info->defdname, '\n')) != NULL) 1969 *cp = '\0'; 1970 cp = cache_info->defdname; 1973 while (*cp == ' ' || *cp == '\t') /* skip leading white space */ 1974 cp++; 1975 if (*cp == '\0') /* stop if nothing more to do */ 1977 *offset++ = cp - cache_info->defdname; /* record this search domain */ 1978 while (*cp) { /* zer [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_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_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_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/kernel/uapi/linux/ |
H A D | hdlcdrv.h | 64 struct hdlcdrv_channel_params cp; member in union:hdlcdrv_ioctl::__anon329
|
/bionic/libc/tzcode/ |
H A D | localtime.c | 323 register char * cp = &sp->chars[ttisp->tt_abbrind]; local 325 if (strlen(cp) > TZ_ABBR_MAX_LEN && 326 strcmp(cp, GRANDPARENTED) != 0) 327 *(cp + TZ_ABBR_MAX_LEN) = '\0'; 944 register char * cp; local 1168 cp = sp->chars; 1169 (void) strncpy(cp, stdname, stdlen); 1170 cp += stdlen; 1171 *cp++ = '\0'; 1173 (void) strncpy(cp, dstnam [all...] |
/bionic/libc/upstream-dlmalloc/ |
H A D | malloc.c | 3885 char* cp = (char*)CALL_MREMAP((char*)oldp - offset, local 3887 if (cp != CMFAIL) { 3888 mchunkptr newp = (mchunkptr)(cp + offset); 3895 if (cp < m->least_addr) 3896 m->least_addr = 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/upstream-netbsd/lib/libc/regex/ |
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/upstream-openbsd/lib/libc/net/ |
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...] |
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...] |
/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-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/libm/upstream-freebsd/lib/msun/src/ |
H A D | e_pow.c | 89 cp = 9.61796693925975554329e-01, /* 0x3FEEC709, 0xDC3A03FD =2/(3ln2) */ variable 90 cp_h = 9.61796700954437255859e-01, /* 0x3FEEC709, 0xE0000000 =(float)cp */ 248 z_l = cp_l*p_h+p_l*cp+dp_l[k];
|