Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 193) sorted by relevance

12345678

/third_party/ulib/musl/src/network/
A Ddns_parse.c13 p = r + 12; in __dns_parse()
19 while (p - r < rlen && *p - 1U < 127) in __dns_parse()
20 p++; in __dns_parse()
21 if (*p > 193 || (*p == 193 && p[1] > 254) || p > r + rlen - 6) in __dns_parse()
23 p += 5 + !!*p; in __dns_parse()
26 while (p - r < rlen && *p - 1U < 127) in __dns_parse()
27 p++; in __dns_parse()
28 if (*p > 193 || (*p == 193 && p[1] > 254) || p > r + rlen - 6) in __dns_parse()
30 p += 1 + !!*p; in __dns_parse()
31 len = p[8] * 256 + p[9]; in __dns_parse()
[all …]
A Dresolvconf.c32 char *p, *z; in __get_resolv_conf() local
44 if (p && isdigit(p[6])) { in __get_resolv_conf()
45 p += 6; in __get_resolv_conf()
47 if (z != p) in __get_resolv_conf()
51 if (p && isdigit(p[6])) { in __get_resolv_conf()
52 p += 6; in __get_resolv_conf()
54 if (z != p) in __get_resolv_conf()
58 if (p && (isdigit(p[8]) || p[8] == '.')) { in __get_resolv_conf()
59 p += 8; in __get_resolv_conf()
69 for (p = line + 11; isspace(*p); p++) in __get_resolv_conf()
[all …]
A Dproto.c53 static struct protoent p; in getprotoent() local
57 p.p_proto = protos[idx]; in getprotoent()
61 return &p; in getprotoent()
65 struct protoent* p; in getprotobyname() local
68 p = getprotoent(); in getprotobyname()
69 while (p && strcmp(name, p->p_name)); in getprotobyname()
70 return p; in getprotobyname()
74 struct protoent* p; in getprotobynumber() local
77 p = getprotoent(); in getprotobynumber()
78 while (p && p->p_proto != num); in getprotobynumber()
[all …]
A Ddn_expand.c6 const unsigned char* p = src; in __dn_expand() local
9 if (p == end || space <= 0) in __dn_expand()
15 if (*p & 0xc0) { in __dn_expand()
16 if (p + 1 == end) in __dn_expand()
18 j = ((p[0] & 0x3f) << 8) | p[1]; in __dn_expand()
20 len = p + 2 - src; in __dn_expand()
23 p = base + j; in __dn_expand()
24 } else if (*p) { in __dn_expand()
27 j = *p++; in __dn_expand()
31 *dest++ = *p++; in __dn_expand()
[all …]
A Ddn_skipname.c4 const unsigned char* p; in dn_skipname() local
5 for (p = s; p < end; p++) in dn_skipname()
6 if (!*p) in dn_skipname()
7 return p - s + 1; in dn_skipname()
8 else if (*p >= 192) { in dn_skipname()
9 if (p + 1 < end) in dn_skipname()
10 return p - s + 2; in dn_skipname()
/third_party/ulib/jemalloc/include/jemalloc/internal/
A Datomic_inlines.h63 : "m" (*p) /* Inputs. */ in atomic_add_u64()
79 : "m" (*p) /* Inputs. */ in atomic_sub_u64()
107 : "m" (*p) /* Inputs. */ in atomic_write_u64()
173 atomic_store_rel_long(p, x); in atomic_write_u64()
201 o = atomic_read_u64(p); in atomic_write_u64()
229 InterlockedExchange64(p, x); in atomic_write_u64()
272 : "m" (*p) /* Inputs. */ in atomic_add_u32()
288 : "m" (*p) /* Inputs. */ in atomic_sub_u32()
370 atomic_store_rel_32(p, x); in atomic_write_u32()
398 o = atomic_read_u32(p); in atomic_write_u32()
[all …]
A Datomic_externs.h7 #define atomic_read_u64(p) atomic_add_u64(p, 0) argument
9 #define atomic_read_u32(p) atomic_add_u32(p, 0) argument
10 #define atomic_read_p(p) atomic_add_p(p, NULL) argument
11 #define atomic_read_zu(p) atomic_add_zu(p, 0) argument
12 #define atomic_read_u(p) atomic_add_u(p, 0) argument
/third_party/uapp/dash/src/
A Dmemalloc.h72 if (p == sstrend) in _STPUTC()
74 *p++ = c; in _STPUTC()
75 return p; in _STPUTC()
80 #define STARTSTACKSTR(p) ((p) = stackblock()) argument
81 #define STPUTC(c, p) ((p) = _STPUTC((c), (p))) argument
91 #define USTPUTC(c, p) (*p++ = (c)) argument
92 #define STACKSTRNUL(p) ((p) == sstrend? (p = growstackstr(), *p = '\0') : (*p = '\0')) argument
93 #define STUNPUTC(p) (--p) argument
94 #define STTOPC(p) p[-1] argument
95 #define STADJUST(amount, p) (p += (amount)) argument
[all …]
A Dmkinit.c238 while (*p == ' ' || *p == '\t') in gooddefine()
239 p++; in gooddefine()
240 while (*p != ' ' && *p != '\t') { in gooddefine()
245 while (*p != '\n' && *p != '\0') in gooddefine()
270 for (p = line ; *p == '\t' ; p++) in doevent()
272 for ( ; *p == ' ' ; p++) in doevent()
274 if (*p == '\n' || *p == '#') in doevent()
297 for (p = line ; *p != '"' && *p != '<' && *p != '\0' ; p++); in doinclude()
301 while (*p != ' ' && *p != '\t' && *p != '\n') in doinclude()
303 if (p[-1] != '"' && p[-1] != '>') in doinclude()
[all …]
A Dexpand.c161 while (p > start && *--p == (char)CTLESC) { in esclen()
201 p = grabstackstr(p); in expandarg()
270 p = exptilde(p, q, flag); in argstr()
348 p = evalvar(p, flag | inquotes); in argstr()
471 p--; in expari()
737 p = strchr(p, '=') + 1; in evalvar()
970 p = num ? shellparam.p[num - 1] : arg0; in varvalue()
1315 for (p = name; esc = 0, *p; p += esc + 1) { in expmeta()
1316 if (*p == '*' || *p == '?') in expmeta()
1462 p = p->next; in msort()
[all …]
A Dmystring.c122 char *p; in atomax() local
135 if (p == s && base) in atomax()
139 p++; in atomax()
141 if (*p) in atomax()
192 char *p; in single_quote() local
194 STARTSTACKSTR(p); in single_quote()
202 q = p = makestrspace(len + 3, p); in single_quote()
209 STADJUST(q - p, p); in single_quote()
215 q = p = makestrspace(len + 3, p); in single_quote()
222 STADJUST(q - p, p); in single_quote()
[all …]
A Dmemalloc.c53 pointer p; in ckmalloc() local
58 return p; in ckmalloc()
69 p = realloc(p, nbytes); in ckrealloc()
72 return p; in ckrealloc()
84 if (!p) in savestr()
86 return p; in savestr()
116 char *p; in stalloc() local
143 return p; in stalloc()
151 if (!p || (stacknxt < (char *)p) || ((char *)p < stackp->space)) { in stunalloc()
293 p = makestrspace(n, p); in stnputs()
[all …]
A Doptions.c200 char *p; in options() local
211 if (p[0] == '\0' || (p[0] == '-' && p[1] == '\0')) { in options()
451 if (p == NULL || *p == '\0') { in getopts()
454 if (p == NULL || *p != '-' || *++p == '\0') { in getopts()
465 c = *p++; in getopts()
484 if (*p == '\0' && (p = *optnext) == NULL) { in getopts()
512 shellparam.optoff = p ? p - *(optnext - 1) : -1; in getopts()
532 char *p; in nextopt() local
536 if ((p = optptr) == NULL || *p == '\0') { in nextopt()
538 if (p == NULL || *p != '-' || *++p == '\0') in nextopt()
[all …]
/third_party/ulib/jemalloc/test/integration/
A Dxallocx.c28 void *p; in TEST_BEGIN() local
44 void *p; in TEST_BEGIN() local
60 void *p; in TEST_BEGIN() local
133 void *p; in TEST_BEGIN() local
163 void *p; in TEST_BEGIN() local
195 void *p; in TEST_BEGIN() local
228 void *p; in TEST_BEGIN() local
249 p = rallocx(p, large3, flags); in TEST_BEGIN()
283 p = rallocx(p, large3, flags); in TEST_BEGIN()
357 p = rallocx(p, sz, flags); in test_zero()
[all …]
A Drallocx.c49 void *p, *q; in TEST_BEGIN() local
70 p = q; in TEST_BEGIN()
81 p = q; in TEST_BEGIN()
85 dallocx(p, 0); in TEST_BEGIN()
114 void *p, *q; in TEST_BEGIN() local
147 p = q; in TEST_BEGIN()
159 void *p, *q; in TEST_BEGIN() local
175 p = q; in TEST_BEGIN()
184 void *p, *q; in TEST_BEGIN() local
212 p = q; in TEST_BEGIN()
[all …]
/third_party/ulib/musl/src/env/
A D__libc_start_main.c48 zx_status_t status = zxr_processargs_strings(p->buffer, p->nbytes, in start_main()
62 __libc_extensions_init(p->nhandles, p->handles, p->handle_info, in start_main()
69 __libc_startup_handles_init(p->nhandles, p->handles, p->handle_info); in start_main()
103 zx_status_t status = zxr_message_size(bootstrap, &p.nbytes, &p.nhandles); in __libc_start_main()
105 p.nbytes = p.nhandles = 0; in __libc_start_main()
109 p.buffer = buffer; in __libc_start_main()
110 p.handles = handles; in __libc_start_main()
114 &p.procargs, &p.handle_info); in __libc_start_main()
130 p.handle_info[i] = 0; in __libc_start_main()
180 [arg]"D"(&p)); in __libc_start_main()
[all …]
/third_party/ulib/backtrace/
A Datomic.c53 void *p; in backtrace_atomic_load_pointer() local
56 p = *pp; in backtrace_atomic_load_pointer()
57 while (!__sync_bool_compare_and_swap (pp, p, p)) in backtrace_atomic_load_pointer()
58 p = *pp; in backtrace_atomic_load_pointer()
59 return p; in backtrace_atomic_load_pointer()
69 i = *p; in backtrace_atomic_load_int()
71 i = *p; in backtrace_atomic_load_int()
96 old = *p; in backtrace_atomic_store_size_t()
98 old = *p; in backtrace_atomic_store_size_t()
108 old = *p; in backtrace_atomic_store_int()
[all …]
/third_party/ulib/musl/src/stdio/
A Dvfwscanf.c46 void* p; in arg_n() local
63 p++; in in_set()
67 p++; in in_set()
69 for (; *p && *p != ']'; p++) { in in_set()
70 if (*p == '-' && p[1] && p[1] != ']') in in_set()
71 for (j = p++ [-1]; j < *p; j++) in in_set()
109 for (p = fmt; *p; p++) { in vfwscanf()
121 if (*p != '%' || p[1] == '%') { in vfwscanf()
122 p += *p == '%'; in vfwscanf()
138 } else if (iswdigit(*p) && p[1] == '$') { in vfwscanf()
[all …]
A Dvfscanf.c45 void* p; in arg_n() local
53 return p; in arg_n()
78 for (p = (const unsigned char*)fmt; *p; p++) { in vfscanf()
92 if (*p != '%' || p[1] == '%') { in vfscanf()
93 p += *p == '%'; in vfscanf()
106 p++; in vfscanf()
110 } else if (isdigit(*p) && p[1] == '$') { in vfscanf()
117 for (width = 0; isdigit(*p); p++) { in vfscanf()
236 for (; *p != ']'; p++) { in vfscanf()
239 if (*p == '-' && p[1] && p[1] != ']') in vfscanf()
[all …]
/third_party/ulib/jemalloc/test/stress/
A Dmicrobench.c23 void *p; in compare_funcs() local
26 if (p == NULL) { in compare_funcs()
40 dallocx(p, 0); in compare_funcs()
52 free(p); in malloc_free()
63 free(p); in mallocx_free()
112 void *p; in malloc_mus_free() local
120 free(p); in malloc_mus_free()
126 void *p; in malloc_sallocx_free() local
135 free(p); in malloc_sallocx_free()
148 void *p; in malloc_nallocx_free() local
[all …]
/third_party/ulib/musl/third_party/smoothsort/
A Dqsort.c65 p[1] = p[0]; in shl()
68 p[1] <<= n; in shl()
69 p[1] |= p[0] >> (sizeof(size_t) * 8 - n); in shl()
70 p[0] <<= n; in shl()
76 p[0] = p[1]; in shr()
79 p[0] >>= n; in shr()
80 p[0] |= p[1] << (sizeof(size_t) * 8 - n); in shr()
81 p[1] >>= n; in shr()
113 size_t p[2]; in trinkle() local
122 while (p[0] != 1 || p[1] != 0) { in trinkle()
[all …]
/third_party/ulib/musl/src/regex/
A Dfnmatch.c115 p++; in match_bracket()
116 if (*p == '^' || *p == '!') { in match_bracket()
118 p++; in match_bracket()
123 p++; in match_bracket()
130 for (; *p != ']'; p++) { in match_bracket()
131 if (p[0] == '-' && p[1] != ']') { in match_bracket()
142 if (p[0] == '[' && (p[1] == ':' || p[1] == '.' || p[1] == '=')) { in match_bracket()
146 while (p[-1] != z || p[0] != ']') in match_bracket()
214 for (p = ptail = pat; p < endpat; p += pinc) { in fnmatch_internal()
254 c = pat_next(p, endpat - p, &pinc, flags); in fnmatch_internal()
[all …]
/third_party/ulib/musl/ldso/
A Ddynlink.c1269 pid, seqno, p->l_map.l_addr, p->map, p->map + p->map_len); in trace_load()
1432 for (; p; p = dso_next(p)) { in load_deps()
1457 for (; p; p = dso_next(p)) { in reloc_all()
1538 for (p = fini_head; p; p = p->fini_next) { in __libc_exit_fini()
1561 for (; p; p = dso_prev(p)) { in do_init_fini()
1621 for (p = head; p->tls_id != v[0]; p = dso_next(p)) in __tls_get_new()
1634 for (p = head;; p = dso_next(p)) { in __tls_get_new()
1944 for (struct dso* p = &app; p != NULL; p = dso_next(p)) { in dls3() local
2156 for (p = dso_next(orig_tail); p; p = dso_next(p)) in dlopen_internal()
2240 for (p = head; p; p = dso_next(p)) in __dl_invalid_handle()
[all …]
/third_party/ulib/musl/src/stdlib/
A Dstrtol.c21 if (p) { in strtox()
23 *p = (char*)s + cnt; in strtox()
29 return strtox(s, p, base, ULLONG_MAX); in strtoull()
32 long long strtoll(const char* restrict s, char** restrict p, int base) { in strtoll() argument
33 return strtox(s, p, base, LLONG_MIN); in strtoll()
37 return strtox(s, p, base, ULONG_MAX); in strtoul()
40 long strtol(const char* restrict s, char** restrict p, int base) { in strtol() argument
41 return strtox(s, p, base, 0UL + LONG_MIN); in strtol()
44 intmax_t strtoimax(const char* restrict s, char** restrict p, int base) { in strtoimax() argument
45 return strtoll(s, p, base); in strtoimax()
[all …]
/third_party/uapp/fsck-msdosfs/
A Ddir.c280 for (p = pendingDirectories; p; p = np) { in finishDosDirSection()
550 if (!p[k] && !p[k + 1]) in readDosDirSection()
649 dirent.size = p[28] | (p[29] << 8) | (p[30] << 16) | (p[31] << 24); in readDosDirSection()
682 p[26] = p[27] = 0; in readDosDirSection()
684 p[20] = p[21] = 0; in readDosDirSection()
731 p[28] = p[29] = p[30] = p[31] = 0; in readDosDirSection()
732 p[26] = p[27] = 0; in readDosDirSection()
734 p[20] = p[21] = 0; in readDosDirSection()
755 p[28] = p[29] = p[30] = p[31] = 0; in readDosDirSection()
790 p[26] = p[27] = 0; in readDosDirSection()
[all …]

Completed in 54 milliseconds

12345678