Home
last modified time | relevance | path

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

12

/libuv/src/win/
H A Dprocess-stdio.c41 sizeof(uintptr_t) * (count))
173 int count, i; in uv__stdio_create() local
176 count = options->stdio_count; in uv__stdio_create()
178 if (count < 0 || count > 255) { in uv__stdio_create()
181 } else if (count < 3) { in uv__stdio_create()
183 count = 3; in uv__stdio_create()
195 for (i = 0; i < count; i++) { in uv__stdio_create()
359 int i, count; in uv__stdio_destroy() local
374 int i, count; in uv__stdio_noinherit() local
387 unsigned int count; in uv__stdio_verify() local
[all …]
H A Dutil.c511 int count; in uv_available_parallelism() local
517 count = 0; in uv_available_parallelism()
522 if (count > 0) in uv_available_parallelism()
523 return count; in uv_available_parallelism()
665 int count; in uv_interface_addresses() local
742 count = 0; in uv_interface_addresses()
768 count++; in uv_interface_addresses()
871 int count) { in uv_free_interface_addresses() argument
1184 *count = 0; in uv_os_environ()
1230 *count = cnt; in uv_os_environ()
[all …]
/libuv/docs/code/interfaces/
H A Dmain.c7 int count, i; in main() local
9 uv_interface_addresses(&info, &count); in main()
10 i = count; in main()
12 printf("Number of interfaces: %d\n", count); in main()
31 uv_free_interface_addresses(info, count); in main()
/libuv/src/unix/
H A Dbsd-ifaddrs.c68 int uv_interface_addresses(uv_interface_address_t** addresses, int* count) { in uv_interface_addresses() argument
76 *count = 0; in uv_interface_addresses()
86 (*count)++; in uv_interface_addresses()
89 if (*count == 0) { in uv_interface_addresses()
95 *addresses = uv__calloc(*count, sizeof(**addresses)); in uv_interface_addresses()
137 for (i = 0; i < *count; i++) { in uv_interface_addresses()
155 int count) { in uv_free_interface_addresses() argument
158 for (i = 0; i < count; i++) { in uv_free_interface_addresses()
H A Dhurd.c68 mach_msg_type_number_t count; in uv_resident_set_memory() local
70 count = TASK_BASIC_INFO_COUNT; in uv_resident_set_memory()
72 (task_info_t) &bi, &count); in uv_resident_set_memory()
134 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
155 *count = hbi.avail_cpus; in uv_cpu_info()
161 *count = 0; in uv_cpu_info()
H A Dnetbsd.c185 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
206 *count = numcpus; in uv_cpu_info()
245 size_t count, req; in uv__random_sysctl() local
251 count = req; in uv__random_sysctl()
253 if (sysctl(name, ARRAY_SIZE(name), p, &count, NULL, 0) == -1) in uv__random_sysctl()
256 if (count != req) in uv__random_sysctl()
259 p += count; in uv__random_sysctl()
260 len -= count; in uv__random_sysctl()
H A Ddarwin.c100 mach_msg_type_number_t count = sizeof(info) / sizeof(integer_t); in uv_get_free_memory() local
103 (host_info_t)&info, &count) != KERN_SUCCESS) { in uv_get_free_memory()
147 mach_msg_type_number_t count; in uv_resident_set_memory() local
151 count = TASK_BASIC_INFO_COUNT; in uv_resident_set_memory()
155 &count); in uv_resident_set_memory()
182 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
220 *count = numcpus; in uv_cpu_info()
H A Dibmi.c287 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
292 *count = 0; in uv_cpu_info()
312 *count = numcpus; in uv_cpu_info()
394 int uv_interface_addresses(uv_interface_address_t** addresses, int* count) { in uv_interface_addresses() argument
399 *count = 0; in uv_interface_addresses()
414 (*count)++; in uv_interface_addresses()
417 if (*count == 0) { in uv_interface_addresses()
423 *addresses = uv__calloc(*count, sizeof(**addresses)); in uv_interface_addresses()
500 void uv_free_interface_addresses(uv_interface_address_t* addresses, int count) { in uv_free_interface_addresses() argument
503 for (i = 0; i < count; ++i) { in uv_free_interface_addresses()
H A Dos390.c258 while (idx < *count) { in uv_cpu_info()
292 *count = 0; in uv__interface_addresses_v6()
331 ++(*count); in uv__interface_addresses_v6()
334 if ((*count) == 0) { in uv__interface_addresses_v6()
417 *count = 0; in uv_interface_addresses()
481 (*count)++; in uv_interface_addresses()
484 if (*count == 0 && count_v6 == 0) { in uv_interface_addresses()
507 *count += count_v6; in uv_interface_addresses()
512 count_names = *count; in uv_interface_addresses()
581 for (i = 0; i < count; ++i) in uv_free_interface_addresses()
[all …]
H A Dsunos.c162 int count; in uv__io_poll() local
342 if (nfds == ARRAY_SIZE(events) && --count != 0) { in uv__io_poll()
669 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
692 *count = lookup_instance; in uv_cpu_info()
761 *count = 0; in uv_interface_addresses()
830 *count = 0; in uv_interface_addresses()
840 (*count)++; in uv_interface_addresses()
843 if (*count == 0) { in uv_interface_addresses()
848 *addresses = uv__malloc(*count * sizeof(**addresses)); in uv_interface_addresses()
888 int count) { in uv_free_interface_addresses() argument
[all …]
H A Dos390-syscalls.c41 unsigned count; in scandir() local
46 count = 0; in scandir()
63 nl_copy = uv__realloc(nl, sizeof(*copy) * (count + 1)); in scandir()
70 nl[count++] = copy; in scandir()
74 qsort(nl, count, sizeof(struct dirent *), in scandir()
80 return count; in scandir()
83 while (count > 0) { in scandir()
84 dirent = nl[--count]; in scandir()
H A Daix.c145 int count; in uv__io_poll() local
352 if (nfds == ARRAY_SIZE(events) && --count != 0) { in uv__io_poll()
1096 *count = ncpus; in uv_cpu_info()
1127 *count = 0; in uv_interface_addresses()
1178 (*count)++; in uv_interface_addresses()
1181 if (*count == 0) in uv_interface_addresses()
1256 for (i = 0; i < *count; i++) { in uv_interface_addresses()
1269 uv_free_interface_addresses(*addresses, *count); in uv_interface_addresses()
1271 *count = 0; in uv_interface_addresses()
1285 int count) { in uv_free_interface_addresses() argument
[all …]
H A Dhaiku.c118 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
127 if (cpu_infos == NULL || count == NULL) in uv_cpu_info()
169 *count = system.cpu_count; in uv_cpu_info()
H A Dcygwin.c80 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
83 *count = 0; in uv_cpu_info()
H A Dqnx.c122 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
130 *count = num_cpus; in uv_cpu_info()
H A Dopenbsd.c184 int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { in uv_cpu_info() argument
210 *count = numcpus; in uv_cpu_info()
238 *count = 0; in uv_cpu_info()
/libuv/test/
H A Dbenchmark-fs-stat.c42 int* count; member
88 if (*req->count == 0) return; in stat_cb()
90 (*req->count)--; in stat_cb()
100 int count; in async_bench() local
104 count = NUM_ASYNC_REQS; in async_bench()
108 req->count = &count; in async_bench()
H A Dtest-platform-output.c42 int count; in TEST_IMPL() local
132 err = uv_cpu_info(&cpus, &count); in TEST_IMPL()
139 for (i = 0; i < count; i++) { in TEST_IMPL()
152 uv_free_cpu_info(cpus, count); in TEST_IMPL()
154 err = uv_interface_addresses(&interfaces, &count); in TEST_IMPL()
158 for (i = 0; i < count; i++) { in TEST_IMPL()
188 uv_free_interface_addresses(interfaces, count); in TEST_IMPL()
H A Dtest-ip6-addr.c50 int count; in TEST_IMPL() local
54 ASSERT_OK(uv_interface_addresses(&addresses, &count)); in TEST_IMPL()
56 for (ix = 0; ix < count; ix++) { in TEST_IMPL()
113 uv_free_interface_addresses(addresses, count); in TEST_IMPL()
H A Dtest-udp-multicast-join6.c152 int count; in can_ipv6_external() local
155 if (uv_interface_addresses(&addr, &count)) in can_ipv6_external()
159 for (i = 0; supported == 0 && i < count; i += 1) in can_ipv6_external()
163 uv_free_interface_addresses(addr, count); in can_ipv6_external()
H A Dtask.h347 int count; in can_ipv6() local
350 if (uv_interface_addresses(&addr, &count)) in can_ipv6()
354 for (i = 0; supported == 0 && i < count; i += 1) in can_ipv6()
357 uv_free_interface_addresses(addr, count); in can_ipv6()
/libuv/src/
H A Dthread-common.c38 int uv_barrier_init(uv_barrier_t* barrier, unsigned int count) { in uv_barrier_init() argument
44 if (barrier == NULL || count == 0) in uv_barrier_init()
49 if (barrier == NULL || count == 0) in uv_barrier_init()
59 b->threshold = count; in uv_barrier_init()
153 int uv_barrier_init(uv_barrier_t* barrier, unsigned int count) { in uv_barrier_init() argument
154 return UV__ERR(pthread_barrier_init(barrier, NULL, count)); in uv_barrier_init()
H A Duv-common.h234 ((loop)->active_reqs.count > 0)
238 (loop)->active_reqs.count++; \
245 (loop)->active_reqs.count--; \
378 void *uv__calloc(size_t count, size_t size);
H A Duv-common.c92 void* uv__calloc(size_t count, size_t size) { in uv__calloc() argument
93 return uv__allocator.local_calloc(count, size); in uv__calloc()
914 void uv_os_free_environ(uv_env_item_t* envitems, int count) { in uv_os_free_environ() argument
917 for (i = 0; i < count; i++) { in uv_os_free_environ()
925 void uv_free_cpu_info(uv_cpu_info_t* cpu_infos, int count) { in uv_free_cpu_info() argument
927 (void) &count; in uv_free_cpu_info()
932 for (i = 0; i < count; i++) in uv_free_cpu_info()
/libuv/
H A Dtsansupp.txt1 # glibc reads `count` field unsynchronized, not a libuv bug

Completed in 75 milliseconds

12