Home
last modified time | relevance | path

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

/third_party/ulib/musl/src/network/
A Dlookup_serv.c14 int cnt = 0; in __lookup_serv() local
58 buf[cnt].port = port; in __lookup_serv()
59 buf[cnt].socktype = SOCK_STREAM; in __lookup_serv()
60 buf[cnt++].proto = IPPROTO_TCP; in __lookup_serv()
63 buf[cnt].port = port; in __lookup_serv()
64 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv()
65 buf[cnt++].proto = IPPROTO_UDP; in __lookup_serv()
67 return cnt; in __lookup_serv()
112 buf[cnt].port = port; in __lookup_serv()
119 buf[cnt].port = port; in __lookup_serv()
[all …]
A Dgetservbyname_r.c20 int cnt, proto, align; in getservbyname_r() local
37 cnt = __lookup_serv(servs, name, proto, 0, 0); in getservbyname_r()
38 if (cnt < 0) in getservbyname_r()
39 switch (cnt) { in getservbyname_r()
/third_party/ulib/musl/src/dirent/
A Dscandir.c12 size_t cnt = 0, len = 0; in scandir() local
21 if (cnt >= len) { in scandir()
30 names[cnt] = malloc(de->d_reclen); in scandir()
31 if (!names[cnt]) in scandir()
33 memcpy(names[cnt++], de, de->d_reclen); in scandir()
40 while (cnt-- > 0) in scandir()
41 free(names[cnt]); in scandir()
48 qsort(names, cnt, sizeof *names, (int (*)(const void*, const void*))cmp); in scandir()
50 return cnt; in scandir()
/third_party/ulib/musl/src/stdio/
A D__stdio_read.c7 ssize_t cnt = readv(f->fd, iov, 2); in __stdio_read() local
8 if (cnt <= 0) { in __stdio_read()
9 f->flags |= F_EOF ^ ((F_ERR ^ F_EOF) & cnt); in __stdio_read()
10 return cnt; in __stdio_read()
12 if (cnt <= iov[0].iov_len) in __stdio_read()
13 return cnt; in __stdio_read()
14 cnt -= iov[0].iov_len; in __stdio_read()
16 f->rend = f->buf + cnt; in __stdio_read()
A D__stdio_write.c11 ssize_t cnt = 0; in __stdio_write() local
13 cnt = writev(f->fd, iov, iovcnt); in __stdio_write()
14 if (cnt == rem) { in __stdio_write()
19 if (cnt < 0) { in __stdio_write()
24 rem -= cnt; in __stdio_write()
25 if (cnt >= iov[0].iov_len) { in __stdio_write()
26 cnt -= iov[0].iov_len; in __stdio_write()
30 iov[0].iov_base = (char*)iov[0].iov_base + cnt; in __stdio_write()
31 iov[0].iov_len -= cnt; in __stdio_write()
A Dvfwprintf.c224 int cnt = 0, l = 0; in wprintf_core() local
233 if (cnt >= 0) { in wprintf_core()
234 if (l > INT_MAX - cnt) { in wprintf_core()
237 cnt = -1; in wprintf_core()
239 cnt += l; in wprintf_core()
337 *(int*)arg.p = cnt; in wprintf_core()
340 *(long*)arg.p = cnt; in wprintf_core()
343 *(long long*)arg.p = cnt; in wprintf_core()
352 *(size_t*)arg.p = cnt; in wprintf_core()
355 *(uintmax_t*)arg.p = cnt; in wprintf_core()
[all …]
A Dvfwscanf.c99 off_t pos = 0, cnt; in vfwscanf() local
352 cnt = 0; in vfwscanf()
353 if (fscanf(f, tmp, dest ? dest : &cnt, &cnt) == -1) in vfwscanf()
355 else if (!cnt) in vfwscanf()
357 pos += cnt; in vfwscanf()
A Dvfprintf.c549 int cnt = 0, l = 0; in printf_core() local
560 if (cnt >= 0) { in printf_core()
561 if (l > INT_MAX - cnt) { in printf_core()
563 cnt = -1; in printf_core()
565 cnt += l; in printf_core()
672 *(int*)arg.p = cnt; in printf_core()
675 *(long*)arg.p = cnt; in printf_core()
678 *(long long*)arg.p = cnt; in printf_core()
687 *(size_t*)arg.p = cnt; in printf_core()
690 *(uintmax_t*)arg.p = cnt; in printf_core()
[all …]
/third_party/ulib/musl/pthread/
A Dpthread_rwlock_unlock.c5 int val, cnt, waiters, new; in pthread_rwlock_unlock() local
9 cnt = val & 0x7fffffff; in pthread_rwlock_unlock()
11 new = (cnt == 0x7fffffff || cnt == 1) ? 0 : val - 1; in pthread_rwlock_unlock()
15 _zx_futex_wake(&rw->_rw_lock, cnt); in pthread_rwlock_unlock()
A Dpthread_rwlock_tryrdlock.c4 int val, cnt; in pthread_rwlock_tryrdlock() local
7 cnt = val & 0x7fffffff; in pthread_rwlock_tryrdlock()
8 if (cnt == 0x7fffffff) in pthread_rwlock_tryrdlock()
10 if (cnt == 0x7ffffffe) in pthread_rwlock_tryrdlock()
/third_party/ulib/musl/src/multibyte/
A Dwcsnrtombs.c4 size_t l, cnt = 0, n2; in wcsnrtombs() local
19 cnt = l; in wcsnrtombs()
27 cnt += l; in wcsnrtombs()
36 cnt = l; in wcsnrtombs()
44 cnt += l; in wcsnrtombs()
48 return cnt; in wcsnrtombs()
A Dmbsnrtowcs.c4 size_t l, cnt = 0, n2; in mbsnrtowcs() local
23 cnt = l; in mbsnrtowcs()
31 cnt += l; in mbsnrtowcs()
38 cnt = l; in mbsnrtowcs()
54 cnt++; in mbsnrtowcs()
58 return cnt; in mbsnrtowcs()
/third_party/ulib/musl/src/misc/
A Dgetopt_long.c47 int i, cnt = optind - resumed; in __getopt_long() local
48 for (i = 0; i < cnt; i++) in __getopt_long()
50 optind = skipped + cnt; in __getopt_long()
61 int i, cnt, match; in __getopt_long_core() local
63 for (cnt = i = 0; longopts[i].name; i++) { in __getopt_long_core()
74 cnt = 1; in __getopt_long_core()
77 cnt++; in __getopt_long_core()
79 if (cnt == 1) { in __getopt_long_core()
114 __getopt_msg(argv[0], cnt ? ": option is ambiguous: " : ": unrecognized option: ", in __getopt_long_core()
/third_party/ulib/musl/src/sched/
A Dsched_cpucount.c5 size_t i, j, cnt = 0; in __sched_cpucount() local
10 cnt++; in __sched_cpucount()
11 return cnt; in __sched_cpucount()
/third_party/ulib/musl/src/stdlib/
A Dstrtod.c11 off_t cnt = shcnt(&f); in strtox() local
13 *p = cnt ? (char*)s + cnt : (char*)s; in strtox()
A Dwcstod.c46 size_t cnt = shcnt(&f); in wcstox() local
47 *p = cnt ? t + cnt : (wchar_t*)s; in wcstox()
A Dwcstol.c48 size_t cnt = shcnt(&f); in wcstox() local
49 *p = cnt ? t + cnt : (wchar_t*)s; in wcstox()
A Dstrtol.c22 size_t cnt = shcnt(&f); in strtox() local
23 *p = (char*)s + cnt; in strtox()
/third_party/ulib/musl/src/regex/
A Dglob.c161 size_t cnt, i; in glob() local
192 for (cnt = 0, tail = head.next; tail; tail = tail->next, cnt++) in glob()
194 if (!cnt) { in glob()
199 cnt++; in glob()
205 char** pathv = realloc(g->gl_pathv, (offs + g->gl_pathc + cnt + 1) * sizeof(char*)); in glob()
213 g->gl_pathv = malloc((offs + cnt + 1) * sizeof(char*)); in glob()
221 for (i = 0, tail = head.next; i < cnt; tail = tail->next, i++) in glob()
224 g->gl_pathc += cnt; in glob()
227 qsort(g->gl_pathv + offs, cnt, sizeof(char*), sort); in glob()
/third_party/dev/ethernet/e1000/
A Dem_txrx.c554 int cnt, i; in lem_isc_rxd_available() local
562 for (cnt = 0, i = idx; cnt < scctx->isc_nrxd[0] && cnt <= budget;) { in lem_isc_rxd_available()
573 cnt++; in lem_isc_rxd_available()
575 return (cnt); in lem_isc_rxd_available()
587 int cnt, i; in em_isc_rxd_available() local
595 for (cnt = 0, i = idx; cnt < scctx->isc_nrxd[0] && cnt <= budget;) { in em_isc_rxd_available()
607 cnt++; in em_isc_rxd_available()
610 return (cnt); in em_isc_rxd_available()
A Digb_txrx.c395 int cnt, i, iter; in igb_isc_rxd_available() local
403 for (iter = cnt = 0, i = idx; iter < scctx->isc_nrxd[0] && iter <= budget;) { in igb_isc_rxd_available()
415 cnt++; in igb_isc_rxd_available()
418 return (cnt); in igb_isc_rxd_available()
A Dif_em.c3961 em_if_get_counter(if_ctx_t ctx, ift_counter cnt) in em_if_get_counter() argument
3966 switch (cnt) { in em_if_get_counter()
3978 return (if_get_counter_default(ifp, cnt)); in em_if_get_counter()
/third_party/ulib/uboringssl/crypto/fipsmodule/modes/
A Dgcm.c132 int cnt = 15; in gcm_gmult_4bit() local
155 if (--cnt < 0) { in gcm_gmult_4bit()
159 nlo = ((const uint8_t *)Xi)[cnt]; in gcm_gmult_4bit()
188 int cnt; in gcm_ghash_4bit() local
192 cnt = 15; in gcm_ghash_4bit()
214 if (--cnt < 0) { in gcm_ghash_4bit()
218 nlo = ((const uint8_t *)Xi)[cnt]; in gcm_ghash_4bit()
219 nlo ^= inp[cnt]; in gcm_ghash_4bit()
/third_party/ulib/musl/ldso/
A Ddynlink.c294 static void decode_vec(ElfW(Dyn)* v, size_t* a, size_t cnt) { in decode_vec() argument
296 for (i = 0; i < cnt; i++) in decode_vec()
299 if (v->d_tag - 1 < cnt - 1) { in decode_vec()
1180 size_t cnt; in read_buildid() local
1182 for (cnt = p->phnum; cnt--; ph = (void*)((char*)ph + p->phentsize)) { in read_buildid()
1505 size_t min_addr = -1, max_addr = 0, cnt; in kernel_mapped_dso() local
1507 for (cnt = p->phnum; cnt--; ph = (void*)((char*)ph + p->phentsize)) { in kernel_mapped_dso()
/third_party/ulib/cryptolib/
A Dcryptolib.c40 uint64_t cnt = ctx->count * 8; in _HASH_final() local
48 uint8_t tmp = (uint8_t) (cnt >> ((7 - i) * 8)); in _HASH_final()

Completed in 55 milliseconds