/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 | 127 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 | 171 register char *cp, **pp; local 249 if ((cp = getenv("LOCALDOMAIN")) != NULL) { 250 (void)strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); 261 cp = statp->defdname; 263 *pp++ = cp; 264 for (n = 0; *cp && pp < statp->dnsrch + MAXDNSRCH; cp++) { 265 if (*cp == '\n') /* silly backwards compat */ 267 else if (*cp == ' ' || *cp 495 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));
|
/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/stdio/ |
H A D | vfprintf.cpp | 47 CHAR_TYPE* cp; /* handy char pointer (short term usage) */ local 62 * C: cp points to the string MMMNNN. Leading and trailing 163 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; 164 if (fmt != cp) { 165 ptrdiff_t m = fmt - cp; 167 PRINT(cp, m); 320 cp = buf; 323 *(cp = buf) = GETARG(int); 355 dtoaresult = cp = __hldtoa(fparg.ldbl, xdigs, prec, &expt, &signflag, &dtoaend); 362 dtoaresult = cp [all...] |
H A D | vfwprintf.cpp | 47 CHAR_TYPE* cp; /* handy char pointer (short term usage) */ local 62 * C: cp points to the string MMMNNN. Leading and trailing 152 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; 153 if (fmt != cp) { 154 ptrdiff_t m = fmt - cp; 156 PRINT(cp, m); 300 *(cp = buf) = (wchar_t)GETARG(wint_t); 302 *(cp = buf) = (wchar_t)btowc(GETARG(int)); 349 cp = convbuf = helpers::mbsconv(dtoaresult, -1); 350 if (cp [all...] |
H A D | printf_common.h | 275 cp = fmt; \ 276 while (is_digit(*cp)) { \ 277 APPEND_DIGIT(n2, *cp); \ 278 cp++; \ 280 if (*cp == '$') { \ 292 fmt = ++cp; \ 366 cp = fmt; \ 367 while (is_digit(*cp)) { \ 368 APPEND_DIGIT(n2, *cp); \ 369 cp 381 CHAR_TYPE* cp; local [all...] |
/bionic/libc/dns/net/ |
H A D | gethnamaddr.c | 206 BOUNDS_CHECK(cp, x); \ 207 cp += (x); \ 221 const u_char *cp; local 264 cp = answer->buf; 269 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); 293 while (ancount-- > 0 && cp < eom && !had_error) { 294 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); 299 cp += n; /* name */ 300 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); 301 type = _getshort(cp); 706 const char *cp; local 963 char *cp, **q; local 1347 char *cp, **q, *ptr; local [all...] |
H A D | getaddrinfo.c | 1025 char *cp, *hostname2 = NULL, *scope, *addr; 1046 cp = strchr(hostname, SCOPE_DELIMITER); 1047 if (cp == NULL) 1057 hostname2[cp - hostname] = '\0'; 1059 scope = cp + 1; 1301 BOUNDS_CHECK(cp, x); \ 1302 cp += (x); \ 1319 const u_char *cp; local 1355 cp = answer->buf; 1361 n = dn_expand(answer->buf, eom, cp, b 2054 char *cp, *tname, *cname; local 2284 const char *cp, * const *domain; 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)
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
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/tests/libs/ |
H A D | Android.build.dlext_testzip.mk | 41 $(hide) cp $(PRIVATE_SHARED_LIBS) $(dir $@)/zipdir/libdir 70 $(hide) cp $(PRIVATE_LIB_D) $(dir $@)/zipdir/libdir 71 $(hide) cp $(PRIVATE_LIB_A) $(dir $@)/zipdir/libdir/dt_runpath_a 72 $(hide) cp $(PRIVATE_LIB_B) $(dir $@)/zipdir/libdir/dt_runpath_b_c_x 73 $(hide) cp $(PRIVATE_LIB_C) $(dir $@)/zipdir/libdir/dt_runpath_b_c_x 74 $(hide) cp $(PRIVATE_LIB_X) $(dir $@)/zipdir/libdir/dt_runpath_b_c_x
|
/bionic/libc/kernel/uapi/linux/ |
H A D | nilfs2_ondisk.h | 250 #define NILFS_CHECKPOINT_FNS(flag,name) static inline void nilfs_checkpoint_set_ ##name(struct nilfs_checkpoint * cp) \ 251 { cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) | (1UL << NILFS_CHECKPOINT_ ##flag)); \ 252 } static inline void nilfs_checkpoint_clear_ ##name(struct nilfs_checkpoint * cp) \ 253 { cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) & ~(1UL << NILFS_CHECKPOINT_ ##flag)); \ 254 } static inline int nilfs_checkpoint_ ##name(const struct nilfs_checkpoint * cp) \ 255 { return ! ! (le32_to_cpu(cp->cp_flags) & (1UL << NILFS_CHECKPOINT_ ##flag)); \
|
H A D | hdlcdrv.h | 55 struct hdlcdrv_channel_params cp; member in union:hdlcdrv_ioctl::__anon447
|
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/ |
H A D | nilfs2_ondisk.h | 250 #define NILFS_CHECKPOINT_FNS(flag,name) static inline void nilfs_checkpoint_set_ ##name(struct nilfs_checkpoint * cp) \ 251 { cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) | (1UL << NILFS_CHECKPOINT_ ##flag)); \ 252 } static inline void nilfs_checkpoint_clear_ ##name(struct nilfs_checkpoint * cp) \ 253 { cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) & ~(1UL << NILFS_CHECKPOINT_ ##flag)); \ 254 } static inline int nilfs_checkpoint_ ##name(const struct nilfs_checkpoint * cp) \ 255 { return ! ! (le32_to_cpu(cp->cp_flags) & (1UL << NILFS_CHECKPOINT_ ##flag)); \
|
H A D | hdlcdrv.h | 55 struct hdlcdrv_channel_params cp; member in union:hdlcdrv_ioctl::__anon1594
|
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/ |
H A D | nilfs2_ondisk.h | 250 #define NILFS_CHECKPOINT_FNS(flag,name) static inline void nilfs_checkpoint_set_ ##name(struct nilfs_checkpoint * cp) \ 251 { cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) | (1UL << NILFS_CHECKPOINT_ ##flag)); \ 252 } static inline void nilfs_checkpoint_clear_ ##name(struct nilfs_checkpoint * cp) \ 253 { cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) & ~(1UL << NILFS_CHECKPOINT_ ##flag)); \ 254 } static inline int nilfs_checkpoint_ ##name(const struct nilfs_checkpoint * cp) \ 255 { return ! ! (le32_to_cpu(cp->cp_flags) & (1UL << NILFS_CHECKPOINT_ ##flag)); \
|