Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 27) sorted by relevance

12

/bionic/libc/netbsd/resolv/
Dres_mkquery.c128 register u_char *cp, *ep; in res_nmkquery() local
150 cp = buf + HFIXEDSZ; in res_nmkquery()
162 if (ep - cp < QFIXEDSZ) in res_nmkquery()
164 if ((n = dn_comp(dname, cp, ep - cp - QFIXEDSZ, dnptrs, in res_nmkquery()
167 cp += n; in res_nmkquery()
168 ns_put16(type, cp); in res_nmkquery()
169 cp += INT16SZ; in res_nmkquery()
170 ns_put16(class, cp); in res_nmkquery()
171 cp += INT16SZ; in res_nmkquery()
178 if ((ep - cp) < RRFIXEDSZ) in res_nmkquery()
[all …]
Dres_init.c177 register char *cp, **pp; in load_domain_search_list() local
181 if ((cp = strchr(statp->defdname, '\n')) != NULL) in load_domain_search_list()
182 *cp = '\0'; in load_domain_search_list()
183 cp = statp->defdname; in load_domain_search_list()
186 while (*cp == ' ' || *cp == '\t') /* skip leading white space */ in load_domain_search_list()
187 cp++; in load_domain_search_list()
188 if (*cp == '\0') /* stop if nothing more */ in load_domain_search_list()
190 *pp++ = cp; /* record this search domain */ in load_domain_search_list()
191 while (*cp) { /* zero-terminate it */ in load_domain_search_list()
192 if (*cp == ' ' || *cp == '\t') { in load_domain_search_list()
[all …]
Dres_debug.c314 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) { in p_cdnname() argument
318 if ((n = dn_expand(msg, msg + len, cp, name, sizeof name)) < 0) in p_cdnname()
324 return (cp + n); in p_cdnname()
328 p_cdname(const u_char *cp, const u_char *msg, FILE *file) { in p_cdname() argument
329 return (p_cdnname(cp, msg, PACKETSZ, file)); in p_cdname()
336 p_fqnname(cp, msg, msglen, name, namelen) in p_fqnname() argument
337 const u_char *cp, *msg; in p_fqnname()
344 if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0)
353 return (cp + n);
359 p_fqname(const u_char *cp, const u_char *msg, FILE *file) { in p_fqname() argument
[all …]
Dres_query.c227 const char *cp, * const *domain; in res_nsearch() local
240 for (cp = name; *cp != '\0'; cp++) in res_nsearch()
241 dots += (*cp == '.'); in res_nsearch()
243 if (cp > name && *--cp == '.') in res_nsearch()
247 if (!dots && (cp = res_hostalias(statp, name, tmp, sizeof tmp))!= NULL) in res_nsearch()
248 return (res_nquery(statp, cp, class, type, answer, anslen)); in res_nsearch()
Dres_send.c290 const u_char *cp = buf + HFIXEDSZ; in res_nameinquery() local
297 n = dn_expand(buf, eom, cp, tname, sizeof tname); in res_nameinquery()
300 cp += n; in res_nameinquery()
301 if (cp + 2 * INT16SZ > eom) in res_nameinquery()
303 ttype = ns_get16(cp); cp += INT16SZ; in res_nameinquery()
304 tclass = ns_get16(cp); cp += INT16SZ; in res_nameinquery()
327 const u_char *cp = buf1 + HFIXEDSZ; in res_queriesmatch() local
347 n = dn_expand(buf1, eom1, cp, tname, sizeof tname); in res_queriesmatch()
350 cp += n; in res_queriesmatch()
351 if (cp + 2 * INT16SZ > eom1) in res_queriesmatch()
[all …]
/bionic/libc/netbsd/net/
Dgetservent_r.c84 char *p, *cp, **q; in getservent_r() local
106 cp = strpbrk(p, ",/"); in getservent_r()
107 if (cp == NULL) in getservent_r()
109 *cp++ = '\0'; in getservent_r()
111 sp->s_proto = cp; in getservent_r()
123 cp = strpbrk(cp, " \t"); in getservent_r()
124 if (cp != NULL) in getservent_r()
125 *cp++ = '\0'; in getservent_r()
126 while (cp && *cp) { in getservent_r()
127 if (*cp == ' ' || *cp == '\t') { in getservent_r()
[all …]
Dgetservbyname_r.c53 char **cp; in getservbyname_r() local
62 for (cp = s->s_aliases; *cp; cp++) in getservbyname_r()
63 if (strcmp(name, *cp) == 0) in getservbyname_r()
Dgetaddrinfo.c1029 char *cp, *hostname2 = NULL, *scope, *addr; in explore_numeric_scope()
1050 cp = strchr(hostname, SCOPE_DELIMITER); in explore_numeric_scope()
1051 if (cp == NULL) in explore_numeric_scope()
1061 hostname2[cp - hostname] = '\0'; in explore_numeric_scope()
1063 scope = cp + 1; in explore_numeric_scope()
1312 const u_char *cp; in getanswer() local
1348 cp = answer->buf + HFIXEDSZ; in getanswer()
1353 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer()
1358 cp += n + QFIXEDSZ; in getanswer()
1376 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
[all …]
Dgetnameinfo.c634 hexname(cp, len, host, hostlen) in hexname() argument
635 const u_int8_t *cp; in hexname()
647 i ? ":" : "", cp[i]);
/bionic/libc/wchar/
Dwcscat.c42 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()
Dwcscpy.c42 wchar_t *cp; in wcscpy() local
44 cp = s1; in wcscpy()
45 while ((*cp++ = *s2++) != L'\0') in wcscpy()
/bionic/libc/stdlib/
Dgetenv.c51 char **p, *cp; in __findenv() local
58 for (p = environ; (cp = *p) != NULL; ++p) { in __findenv()
59 for (np = name, i = len; i && *cp; i--) in __findenv()
60 if (*cp++ != *np++) in __findenv()
62 if (i == 0 && *cp++ == '=') { in __findenv()
64 return (cp); in __findenv()
/bionic/libc/netbsd/nameser/
Dns_name.c105 const u_char *cp; in ns_name_ntop() local
111 cp = src; in ns_name_ntop()
115 while ((n = *cp++) != 0) { in ns_name_ntop()
128 if ((l = labellen(cp - 1)) < 0) { in ns_name_ntop()
144 if ((m = decode_bitstring(&cp, dn, eom)) < 0) in ns_name_ntop()
153 c = *cp++; in ns_name_ntop()
210 char *cp; in ns_name_pton() local
220 if ((cp = strchr(src, ']')) == NULL) { in ns_name_pton()
224 if ((e = encode_bitsring(&src, cp + 2, in ns_name_pton()
240 else if ((cp = strchr(digits, c)) != NULL) { in ns_name_pton()
[all …]
Dns_samedomain.c57 const char *cp; in ns_samedomain() local
143 cp = a + diff; in ns_samedomain()
144 return (strncasecmp(cp, b, lb) == 0); in ns_samedomain()
/bionic/libc/inet/
Dinet_aton.c68 inet_aton(const char *cp, struct in_addr *addr) in inet_aton() argument
76 c = *cp; in inet_aton()
87 c = *++cp; in inet_aton()
89 base = 16, c = *++cp; in inet_aton()
96 c = *++cp; in inet_aton()
100 c = *++cp; in inet_aton()
114 c = *++cp; in inet_aton()
Dinet_addr.c65 inet_addr(const char *cp) in inet_addr() argument
69 if (inet_aton(cp, &val)) in inet_addr()
/bionic/libc/netbsd/
Dgethnamaddr.c156 cp += (x); \
157 if (cp > eom) { \
176 const u_char *cp; in getanswer() local
213 cp = answer->buf; in getanswer()
219 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer()
248 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
249 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer()
254 cp += n; /* name */ in getanswer()
255 BOUNDS_CHECK(cp, 3 * INT16SZ + INT32SZ); in getanswer()
256 type = _getshort(cp); in getanswer()
[all …]
/bionic/libc/stdio/
Dvfprintf.c175 char *cp; /* handy char pointer (short term usage) */ in __vfprintf() local
281 cp = fmt; \ in __vfprintf()
282 while (is_digit(*cp)) { \ in __vfprintf()
283 n2 = 10 * n2 + to_digit(*cp); \ in __vfprintf()
284 cp++; \ in __vfprintf()
286 if (*cp == '$') { \ in __vfprintf()
295 fmt = ++cp; \ in __vfprintf()
335 cp = fmt; in __vfprintf()
354 if ((m = fmt - cp) != 0) { in __vfprintf()
355 PRINT(cp, m); in __vfprintf()
[all …]
/bionic/libc/upstream-netbsd/libc/regex/
Dregex2.h168 #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
Dregcomp.c151 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; in p_b_cclass() local
928 for (cp = cclasses; cp->name != NULL; cp++) in p_b_cclass()
929 if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0') in p_b_cclass()
931 if (cp->name == NULL) { in p_b_cclass()
937 u = cp->chars; in p_b_cclass()
940 for (u = cp->multis; *u != '\0'; u += strlen(u) + 1) in p_b_cclass()
[all …]
/bionic/libc/private/
Darpa_nameser.h433 #define NS_GET16(s, cp) do { \ argument
434 const u_char *t_cp = (const u_char *)(cp); \
438 (cp) += NS_INT16SZ; \
441 #define NS_GET32(l, cp) do { \ argument
442 const u_char *t_cp = (const u_char *)(cp); \
448 (cp) += NS_INT32SZ; \
451 #define NS_PUT16(s, cp) do { \ argument
453 u_char *t_cp = (u_char *)(cp); \
456 (cp) += NS_INT16SZ; \
459 #define NS_PUT32(l, cp) do { \ argument
[all …]
/bionic/libc/bionic/
Dfts.c182 char *cp; in fts_load() local
193 if ((cp = strrchr(p->fts_name, '/')) && (cp != p->fts_name || cp[1])) { in fts_load()
194 len = strlen(++cp); in fts_load()
195 memmove(p->fts_name, cp, len + 1); in fts_load()
553 char *cp = NULL; in fts_build() local
632 cp = sp->fts_path + len; in fts_build()
633 *cp++ = '/'; in fts_build()
676 cp = sp->fts_path + len; in fts_build()
719 memmove(cp, p->fts_name, p->fts_namelen + 1); in fts_build()
757 --cp; in fts_build()
[all …]
/bionic/libm/src/
De_powf.c49 cp = 9.6179670095e-01, /* 0x3f76384f =2/(3ln2) */ variable
191 z_l = cp_l*p_h+p_l*cp+dp_l[k]; in __ieee754_powf()
De_pow.c90 cp = 9.61796693925975554329e-01, /* 0x3FEEC709, 0xDC3A03FD =2/(3ln2) */ variable
246 z_l = cp_l*p_h+p_l*cp+dp_l[k]; in __ieee754_pow()
/bionic/libc/tzcode/
Dlocaltime.c384 register char * cp = &sp->chars[ttisp->tt_abbrind]; in settzname() local
386 if (strlen(cp) > TZ_ABBR_MAX_LEN && in settzname()
387 strcmp(cp, GRANDPARENTED) != 0) in settzname()
388 *(cp + TZ_ABBR_MAX_LEN) = '\0'; in settzname()
1016 register char * cp; local
1226 cp = sp->chars;
1227 (void) strncpy(cp, stdname, stdlen);
1228 cp += stdlen;
1229 *cp++ = '\0';
1231 (void) strncpy(cp, dstname, dstlen);
[all …]

12