/dports/games/fs2open/fs2open.github.com-release_21_4_1/lib/mdns/ |
H A D | mdns.c | 224 int num_sockets = 0; in open_client_sockets() local 247 return num_sockets; in open_client_sockets() 409 return num_sockets; in open_client_sockets() 416 int num_sockets = 0; in open_service_sockets() local 454 return num_sockets; in open_service_sockets() 461 if (num_sockets <= 0) { in send_dns_sd() 465 printf("Opened %d socket%s for DNS-SD\n", num_sockets, num_sockets ? "s" : ""); in send_dns_sd() 521 if (num_sockets <= 0) { in send_mdns_query() 525 printf("Opened %d socket%s for mDNS query\n", num_sockets, num_sockets ? "s" : ""); in send_mdns_query() 583 if (num_sockets <= 0) { in service_mdns() [all …]
|
/dports/net-p2p/libktorrent/libktorrent-21.12.3/src/net/ |
H A D | poll.cpp | 21 : num_sockets(0) in Poll() 31 if (fd_vec.size() <= num_sockets) { in add() 40 struct pollfd &pfd = fd_vec[num_sockets]; in add() 46 int ret = num_sockets; in add() 47 num_sockets++; in add() 60 if (index < 0 || index >= (int)num_sockets) in ready() 68 num_sockets = 0; in reset() 73 if (num_sockets == 0) in poll() 78 ret = ::poll(&fd_vec[0], num_sockets, timeout); in poll() 80 ret = ::mingw_poll(&fd_vec[0], num_sockets, timeout); in poll()
|
/dports/misc/libiio/libiio-0.21/ |
H A D | dns_sd_windows.c | 53 int num_sockets = 0; in open_client_sockets() local 78 return num_sockets; in open_client_sockets() 95 if (num_sockets < max_sockets) { in open_client_sockets() 98 sockets[num_sockets++] = sock; in open_client_sockets() 113 if (num_sockets < max_sockets) { in open_client_sockets() 116 sockets[num_sockets++] = sock; in open_client_sockets() 127 for (int isock = 0; isock < num_sockets; ++isock) { in open_client_sockets() 132 return num_sockets; in open_client_sockets() 222 if (num_sockets <= 0) { in dnssd_find_hosts() 226 IIO_DEBUG("Opened %d socket%s for mDNS query\n", num_sockets, num_sockets ? "s" : ""); in dnssd_find_hosts() [all …]
|
/dports/sysutils/slurm-wlm/slurm-20.02.7/testsuite/expect/ |
H A D | test1.91 | 95 set num_sockets 0 110 set num_sockets $expect_out(1,string) 122 if {$num_cputot == 0 || $num_sockets == 0 || $num_cores == 0 || $num_threads == 0} { 123 …skip "Could not determine number of CPUs:Sockets:Cores:Threads (saw $num_cputot:$num_sockets:$num_… 127 set total_thread_count [expr $num_sockets * $num_cores * $num_threads] 131 log_debug "Node config: CPUs=$num_cputot Sockets=$num_sockets Cores=$num_cores Threads=$num_threads" 245 while {$this_cnt <= $num_sockets} { 299 set expected_tasks [ expr $num_sockets * $this_cnt * $num_threads ] 303 send "$srun -B $num_sockets:$this_cnt-$this_cnt:$num_threads ./$file_prog\r" 352 set expected_tasks [ expr $num_sockets * $num_cores * $this_cnt ] [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/misc/ |
H A D | tifm_7xx1.c | 52 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_isr() 63 & ((1 << fm->num_sockets) - 1); in tifm_7xx1_isr() 157 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_switch_media() 218 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_suspend() 239 if (WARN_ON(fm->num_sockets > ARRAY_SIZE(new_ids))) in tifm_7xx1_resume() 246 for (rc = 0; rc < fm->num_sockets; rc++) in tifm_7xx1_resume() 250 for (rc = 0; rc < fm->num_sockets; rc++) { in tifm_7xx1_resume() 259 writel(TIFM_IRQ_ENABLE | TIFM_IRQ_SOCKMASK((1 << fm->num_sockets) - 1), in tifm_7xx1_resume() 300 if (((fm->num_sockets == 4) && (sock->socket_id == 2)) in tifm_7xx1_has_ms_pif() 301 || ((fm->num_sockets == 2) && (sock->socket_id == 0))) in tifm_7xx1_has_ms_pif() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/misc/ |
H A D | tifm_7xx1.c | 52 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_isr() 63 & ((1 << fm->num_sockets) - 1); in tifm_7xx1_isr() 157 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_switch_media() 218 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_suspend() 239 if (WARN_ON(fm->num_sockets > ARRAY_SIZE(new_ids))) in tifm_7xx1_resume() 246 for (rc = 0; rc < fm->num_sockets; rc++) in tifm_7xx1_resume() 250 for (rc = 0; rc < fm->num_sockets; rc++) { in tifm_7xx1_resume() 259 writel(TIFM_IRQ_ENABLE | TIFM_IRQ_SOCKMASK((1 << fm->num_sockets) - 1), in tifm_7xx1_resume() 300 if (((fm->num_sockets == 4) && (sock->socket_id == 2)) in tifm_7xx1_has_ms_pif() 301 || ((fm->num_sockets == 2) && (sock->socket_id == 0))) in tifm_7xx1_has_ms_pif() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/misc/ |
H A D | tifm_7xx1.c | 52 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_isr() 63 & ((1 << fm->num_sockets) - 1); in tifm_7xx1_isr() 157 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_switch_media() 218 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_suspend() 239 if (WARN_ON(fm->num_sockets > ARRAY_SIZE(new_ids))) in tifm_7xx1_resume() 246 for (rc = 0; rc < fm->num_sockets; rc++) in tifm_7xx1_resume() 250 for (rc = 0; rc < fm->num_sockets; rc++) { in tifm_7xx1_resume() 259 writel(TIFM_IRQ_ENABLE | TIFM_IRQ_SOCKMASK((1 << fm->num_sockets) - 1), in tifm_7xx1_resume() 300 if (((fm->num_sockets == 4) && (sock->socket_id == 2)) in tifm_7xx1_has_ms_pif() 301 || ((fm->num_sockets == 2) && (sock->socket_id == 0))) in tifm_7xx1_has_ms_pif() [all …]
|
/dports/sysutils/x86info/x86info-1b41e8b/ |
H A D | topology.c | 38 int num_sockets = 0; in display_topology() local 88 num_sockets++; in display_topology() 93 printf("Total processor threads: %d\n", sockets[0] * num_sockets); in display_topology() 94 printf("This system has %d ", num_sockets); in display_topology() 111 if (num_sockets > 1) in display_topology()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/chrome/browser/predictors/ |
H A D | preconnect_manager.cc | 45 int num_sockets, in PreresolveJob() argument 50 num_sockets(num_sockets), in PreresolveJob() 54 DCHECK_GE(num_sockets, 0); in PreresolveJob() 60 num_sockets(preconnect_request.num_sockets), in PreresolveJob() 65 DCHECK_GE(num_sockets, 0); in PreresolveJob() 161 int num_sockets, in PreconnectUrl() argument 167 observer_->OnPreconnectUrl(url, num_sockets, allow_credentials); in PreconnectUrl() 173 network_context->PreconnectSockets(num_sockets, url, allow_credentials, in PreconnectUrl() 297 PreconnectUrl(job->url, job->num_sockets, job->allow_credentials, in FinishPreresolveJob()
|
H A D | preconnect_manager.h | 76 int num_sockets, 84 return num_sockets > 0 && !(info && info->was_canceled); in need_preconnect() 88 int num_sockets; member 135 int num_sockets, in OnPreconnectUrl() argument 193 int num_sockets,
|
/dports/security/nmap/nmap-7.91/ncat/ |
H A D | ncat_listen.c | 174 unsigned int num_sockets; in ncat_listen_stream() local 230 num_sockets = 0; in ncat_listen_stream() 234 if (listen_socket[num_sockets] == -1) { in ncat_listen_stream() 244 unblock_socket(listen_socket[num_sockets]); in ncat_listen_stream() 252 num_sockets++; in ncat_listen_stream() 254 if (num_sockets == 0) { in ncat_listen_stream() 637 unsigned int num_sockets; in ncat_listen_dgram() local 687 num_sockets = 0; in ncat_listen_dgram() 691 if (sockfd[num_sockets].fd == -1) { in ncat_listen_dgram() 699 num_sockets++; in ncat_listen_dgram() [all …]
|
/dports/lang/erlang-runtime23/otp-OTP-23.3.4.10/erts/epmd/src/ |
H A D | epmd_srv.c | 241 int num_sockets = 0; local 273 num_sockets = n; 293 num_sockets++; 296 num_sockets++; 344 num_sockets++; 359 num_sockets++; 362 num_sockets++; 379 g->active_conn = 3 + num_sockets; 380 g->max_conn -= num_sockets; 488 num_sockets = bound; [all …]
|
/dports/lang/erlang-runtime24/otp-OTP-24.1.7/erts/epmd/src/ |
H A D | epmd_srv.c | 247 int num_sockets = 0; local 279 num_sockets = n; 299 num_sockets++; 302 num_sockets++; 350 num_sockets++; 365 num_sockets++; 368 num_sockets++; 385 g->active_conn = 3 + num_sockets; 386 g->max_conn -= num_sockets; 494 num_sockets = bound; [all …]
|
/dports/lang/erlang-wx/otp-OTP-24.1.7/erts/epmd/src/ |
H A D | epmd_srv.c | 247 int num_sockets = 0; local 279 num_sockets = n; 299 num_sockets++; 302 num_sockets++; 350 num_sockets++; 365 num_sockets++; 368 num_sockets++; 385 g->active_conn = 3 + num_sockets; 386 g->max_conn -= num_sockets; 494 num_sockets = bound; [all …]
|
/dports/lang/erlang-java/otp-OTP-24.1.7/erts/epmd/src/ |
H A D | epmd_srv.c | 247 int num_sockets = 0; local 279 num_sockets = n; 299 num_sockets++; 302 num_sockets++; 350 num_sockets++; 365 num_sockets++; 368 num_sockets++; 385 g->active_conn = 3 + num_sockets; 386 g->max_conn -= num_sockets; 494 num_sockets = bound; [all …]
|
/dports/lang/erlang/otp-OTP-24.1.7/erts/epmd/src/ |
H A D | epmd_srv.c | 247 int num_sockets = 0; local 279 num_sockets = n; 299 num_sockets++; 302 num_sockets++; 350 num_sockets++; 365 num_sockets++; 368 num_sockets++; 385 g->active_conn = 3 + num_sockets; 386 g->max_conn -= num_sockets; 494 num_sockets = bound; [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_basic.c | 204 __u32 i, num_sockets, num_elems; in test_sockmap_copy() local 218 num_sockets = num_elems - 1; in test_sockmap_copy() 222 num_sockets = num_elems; in test_sockmap_copy() 225 sock_fd = calloc(num_sockets, sizeof(*sock_fd)); in test_sockmap_copy() 229 for (i = 0; i < num_sockets; i++) in test_sockmap_copy() 234 for (i = 0; i < num_sockets; i++) { in test_sockmap_copy() 266 if (CHECK(skel->bss->socks != num_sockets, "socks", "got %u expected %u\n", in test_sockmap_copy() 267 skel->bss->socks, num_sockets)) in test_sockmap_copy() 277 for (i = 0; sock_fd && i < num_sockets; i++) in test_sockmap_copy()
|
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_basic.c | 204 __u32 i, num_sockets, num_elems; in test_sockmap_copy() local 218 num_sockets = num_elems - 1; in test_sockmap_copy() 222 num_sockets = num_elems; in test_sockmap_copy() 225 sock_fd = calloc(num_sockets, sizeof(*sock_fd)); in test_sockmap_copy() 229 for (i = 0; i < num_sockets; i++) in test_sockmap_copy() 234 for (i = 0; i < num_sockets; i++) { in test_sockmap_copy() 266 if (CHECK(skel->bss->socks != num_sockets, "socks", "got %u expected %u\n", in test_sockmap_copy() 267 skel->bss->socks, num_sockets)) in test_sockmap_copy() 277 for (i = 0; sock_fd && i < num_sockets; i++) in test_sockmap_copy()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_basic.c | 204 __u32 i, num_sockets, num_elems; in test_sockmap_copy() local 218 num_sockets = num_elems - 1; in test_sockmap_copy() 222 num_sockets = num_elems; in test_sockmap_copy() 225 sock_fd = calloc(num_sockets, sizeof(*sock_fd)); in test_sockmap_copy() 229 for (i = 0; i < num_sockets; i++) in test_sockmap_copy() 234 for (i = 0; i < num_sockets; i++) { in test_sockmap_copy() 266 if (CHECK(skel->bss->socks != num_sockets, "socks", "got %u expected %u\n", in test_sockmap_copy() 267 skel->bss->socks, num_sockets)) in test_sockmap_copy() 277 for (i = 0; sock_fd && i < num_sockets; i++) in test_sockmap_copy()
|
/dports/games/masterserver/masterserver-0.4.1/ |
H A D | masterserver.c | 248 me->num_sockets = 0; in register_plugin() 467 for (l = 0; l < num_listen_interfaces; l++, (*j)->num_sockets++) { in main() 471 (*j)->num_sockets+1*sizeof(int)); in main() 477 (*j)->num_sockets, (*j)->socket_d[(*j)->num_sockets]); in main() 480 retval = setsockopt((*j)->socket_d[(*j)->num_sockets], SOL_SOCKET, in main() 493 retval = setsockopt((*j)->socket_d[(*j)->num_sockets], in main() 502 (*j)->name, (*j)->num_sockets, listen_interface[l]); in main() 509 retval = bind((*j)->socket_d[(*j)->num_sockets], in main() 605 for (i = 0; i < (*j)->num_sockets; i++) close((*j)->socket_d[i]); in main() 643 for (i = 0; i < me->num_sockets; i++) { in plugin_thread() [all …]
|
/dports/lang/erlang-runtime22/otp-OTP-22.3.4.24/erts/epmd/src/ |
H A D | epmd_srv.c | 205 int num_sockets = 0; in run() local 237 num_sockets = n; in run() 257 num_sockets++; in run() 260 num_sockets++; in run() 308 num_sockets++; in run() 323 num_sockets++; in run() 326 num_sockets++; in run() 343 g->active_conn = 3 + num_sockets; in run() 344 g->max_conn -= num_sockets; in run() 447 num_sockets = bound; in run() [all …]
|
/dports/lang/erlang-runtime21/otp-OTP-21.3.8.24/erts/epmd/src/ |
H A D | epmd_srv.c | 205 int num_sockets = 0; in run() local 237 num_sockets = n; in run() 257 num_sockets++; in run() 260 num_sockets++; in run() 308 num_sockets++; in run() 323 num_sockets++; in run() 326 num_sockets++; in run() 343 g->active_conn = 3 + num_sockets; in run() 344 g->max_conn -= num_sockets; in run() 447 num_sockets = bound; in run() [all …]
|
/dports/net/libcoap/libcoap-4.3.0/src/ |
H A D | coap_io_riot.c | 167 find_socket(coap_fd_t fd, coap_socket_t *sockets[], unsigned int num_sockets) { in find_socket() argument 168 for (unsigned int i = 0; i < num_sockets; i++) { in find_socket() 187 unsigned int num_sockets = 0, timeout; in coap_io_process() local 196 coap_io_prepare_io(ctx, sockets, ARRAY_SIZE(sockets), &num_sockets, before); in coap_io_process() 200 if (num_sockets > 0) { in coap_io_process() 228 coap_socket_t *sock = find_socket(s->sock.fd, sockets, num_sockets); in coap_io_process() 249 coap_socket_t *sock = find_socket(ep->sock.fd, sockets, num_sockets); in coap_io_process()
|
/dports/multimedia/librist/librist-5c1f4a06ab46e16e6bba42fe7381d8353020a1fd/contrib/ |
H A D | poll_win.c | 175 int num_sockets; in poll() local 196 num_sockets = 0; in poll() 204 if (num_sockets >= FD_SETSIZE) { in poll() 220 num_sockets++; in poll() 300 if (handle_signaled || (num_sockets && rc > 0)) in poll()
|
/dports/security/libressl-static/libressl-3.3.5/apps/openssl/compat/ |
H A D | poll_win.c | 170 int num_sockets; 191 num_sockets = 0; 199 if (num_sockets >= FD_SETSIZE) { 215 num_sockets++; 296 if (handle_signaled || (num_sockets && rc > 0))
|