Home
last modified time | relevance | path

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

/libuv/test/
H A Dtest-tcp-connect-timeout.c106 int cnt; in is_supported_system() local
110 cnt = sscanf(uname.release, "%d.%d.%d", &semver[0], &semver[1], &semver[2]); in is_supported_system()
111 if (cnt != 3) { in is_supported_system()
115 for (cnt = 0; cnt < 3; ++cnt) { in is_supported_system()
116 if (semver[cnt] > min_semver[cnt]) in is_supported_system()
118 if (semver[cnt] < min_semver[cnt]) in is_supported_system()
H A Dtest-fork.c52 ssize_t cnt; in socket_cb() local
58 cnt = read(socket_cb_read_fd, socket_cb_read_buf, socket_cb_read_size); in socket_cb()
59 ASSERT_EQ(cnt, socket_cb_read_size); in socket_cb()
/libuv/src/unix/
H A Dhurd.c98 mach_msg_type_number_t cnt; in uv_get_total_memory() local
100 cnt = HOST_BASIC_INFO_COUNT; in uv_get_total_memory()
101 err = host_info(mach_host_self(), HOST_BASIC_INFO, (host_info_t) &hbi, &cnt); in uv_get_total_memory()
137 mach_msg_type_number_t cnt; in uv_cpu_info() local
140 cnt = HOST_BASIC_INFO_COUNT; in uv_cpu_info()
141 err = host_info(mach_host_self(), HOST_BASIC_INFO, (host_info_t) &hbi, &cnt); in uv_cpu_info()
H A Ddarwin-syscalls.h14 ssize_t recvmsg_x(int s, const struct mmsghdr* msgp, u_int cnt, int flags);
15 ssize_t sendmsg_x(int s, const struct mmsghdr* msgp, u_int cnt, int flags);
H A Dtcp.c472 int cnt; in uv__tcp_keepalive() local
476 (void) &cnt; in uv__tcp_keepalive()
531 cnt = 1; /* 1 retry, ensure (TCP_KEEPINTVL * TCP_KEEPCNT) is 10 seconds */ in uv__tcp_keepalive()
532 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(cnt))) in uv__tcp_keepalive()
570 cnt = 10; /* 10 retries; same as hardcoded on Win32 */ in uv__tcp_keepalive()
571 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(cnt))) in uv__tcp_keepalive()
H A Dcore.c1386 int i, j, cnt; in uv_os_environ() local
1399 for (j = 0, cnt = 0; j < i; j++) { in uv_os_environ()
1418 envitem = &(*envitems)[cnt]; in uv_os_environ()
1422 cnt++; in uv_os_environ()
1425 *count = cnt; in uv_os_environ()
1429 for (i = 0; i < cnt; i++) { in uv_os_environ()
1430 envitem = &(*envitems)[cnt]; in uv_os_environ()
/libuv/src/win/
H A Dutil.c1180 int i, cnt; in uv_os_environ() local
1199 cnt = 0; in uv_os_environ()
1201 while (*penv != L'\0' && cnt < i) { in uv_os_environ()
1218 envitem = &(*envitems)[cnt]; in uv_os_environ()
1222 cnt++; in uv_os_environ()
1230 *count = cnt; in uv_os_environ()
1236 for (i = 0; i < cnt; i++) { in uv_os_environ()
1237 envitem = &(*envitems)[cnt]; in uv_os_environ()

Completed in 19 milliseconds