Home
last modified time | relevance | path

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

123

/dports/www/tinyproxy/tinyproxy-1.11.0/src/
H A Dchild.c40 static sblist* listen_fds; variable
85 int nfds = sblist_getsize(listen_fds); in child_main_loop()
95 int *fd = sblist_get(listen_fds, i); in child_main_loop()
265 if (listen_fds == NULL) { in child_listening_sockets()
266 listen_fds = sblist_new(sizeof(int), 16); in child_listening_sockets()
267 if (listen_fds == NULL) { in child_listening_sockets()
280 ret = listen_sock(NULL, port, listen_fds); in child_listening_sockets()
307 for (i = 0; i < sblist_getsize(listen_fds); i++) { in child_close_sock()
308 int *fd = sblist_get(listen_fds, i); in child_close_sock()
312 sblist_free(listen_fds); in child_close_sock()
[all …]
H A Dsock.c301 int listen_sock (const char *addr, uint16_t port, sblist* listen_fds) in listen_sock() argument
309 assert (listen_fds != NULL); in listen_sock()
339 sblist_add (listen_fds, &listenfd); in listen_sock()
/dports/security/oidentd/oidentd-2.5.1/src/
H A Doidentd.c82 int *listen_fds = NULL; in main() local
104 listen_fds = setup_listen(addr, htons(listen_port)); in main()
105 if (!listen_fds || listen_fds[0] == -1) { in main()
156 int fd = listen_fds[fdlen++]; in main()
158 } while (listen_fds[fdlen] != -1); in main()
160 ret = select(listen_fds[fdlen - 1] + 1, &rfds, NULL, NULL, NULL); in main()
165 if (FD_ISSET(listen_fds[i], &rfds)) { in main()
169 connectfd = accept(listen_fds[i], NULL, NULL); in main()
191 for (idx = 0; listen_fds[idx] != -1; ++idx) in main()
192 close(listen_fds[idx]); in main()
[all …]
/dports/net/samba412/samba-4.12.15/source3/lib/
H A Dserver_prefork.c33 struct pf_listen_fd *listen_fds; member
59 int listen_fd_size, struct pf_listen_fd *listen_fds, in prefork_create_pool() argument
80 if (!pfp->listen_fds) { in prefork_create_pool()
85 pfp->listen_fds[i] = listen_fds[i]; in prefork_create_pool()
87 set_blocking(listen_fds[i].fd, false); in prefork_create_pool()
121 pfp->listen_fds, in prefork_create_pool()
209 pfp->listen_fds, in prefork_add_children()
501 struct pf_listen_fd *listen_fds; member
526 struct pf_listen_fd *listen_fds) in prefork_listen_send() argument
543 state->listen_fds = listen_fds; in prefork_listen_send()
[all …]
H A Dserver_prefork.h135 int listen_fd_size, struct pf_listen_fd *listen_fds,
294 struct pf_listen_fd *listen_fds);
/dports/x11-servers/xarcan/xarcan-0.6.0/hw/xwayland/
H A Dxwayland.c98 static int listen_fds[5] = { -1, -1, -1, -1, -1 }; variable
116 if (listen_fd_count == ARRAY_SIZE(listen_fds)) in xwl_add_listen_fd()
118 ARRAY_SIZE(listen_fds)); in xwl_add_listen_fd()
120 listen_fds[listen_fd_count++] = atoi(argv[i + 1]); in xwl_add_listen_fd()
189 ListenOnOpenFD(listen_fds[i], FALSE); in listen_on_fds()
/dports/x11-servers/xwayland-devel/xorg-xserver-xorg-server-21.0.99.1-177-g9e5a37961/hw/xwayland/
H A Dxwayland.c112 static int listen_fds[5] = { -1, -1, -1, -1, -1 }; variable
158 if (listen_fd_count == ARRAY_SIZE(listen_fds)) in xwl_add_listen_fd()
160 ARRAY_SIZE(listen_fds)); in xwl_add_listen_fd()
162 listen_fds[listen_fd_count++] = atoi(argv[i + 1]); in xwl_add_listen_fd()
250 ListenOnOpenFD(listen_fds[i], FALSE); in listen_on_fds()
/dports/net/rabbitmq/rabbitmq-server-3.9.11/deps/systemd/src/
H A Dsystemd.erl53 listen_fds/0,
89 Subsystem :: notify | watchdog | listen_fds.
97 unset_env(listen_fds) ->
321 -spec listen_fds() -> [fd()].
322 listen_fds() -> function
/dports/net/samba412/samba-4.12.15/source3/printing/
H A Dspoolssd.c323 struct pf_listen_fd *listen_fds; member
333 struct pf_listen_fd *listen_fds, in spoolss_children_main() argument
353 data->listen_fds = listen_fds; in spoolss_children_main()
411 data->listen_fds); in spoolss_next_client()
675 struct pf_listen_fd listen_fds[1]; in start_spoolssd() local
737 status = spoolssd_create_sockets(ev_ctx, msg_ctx, listen_fds, in start_spoolssd()
748 listen_fds_size, listen_fds, in start_spoolssd()
/dports/sysutils/powerman/powerman-2.3.20/powermand/
H A Dclient.c131 static int *listen_fds; /* powermand listen sockets */ variable
810 if (listen_fds == NULL) in _listen_client()
813 listen_fds = (int *)xrealloc((char *)listen_fds, in _listen_client()
820 listen_fds[i] = NO_FD; in _listen_client()
847 listen_fds[i] = fd; in _listen_client()
1043 if (listen_fds[i] != NO_FD) in cli_pre_poll()
1044 assert(listen_fds[i] >= 0); in cli_pre_poll()
1045 xpollfd_set(pfd, listen_fds[i], XPOLLIN); in cli_pre_poll()
1079 if (listen_fds[i] != NO_FD) in cli_post_poll()
1081 _create_client_socket(listen_fds[i]); in cli_post_poll()
[all …]
/dports/devel/dbus/dbus-1.12.20/dbus/
H A Ddbus-server-socket.c425 DBusSocket *listen_fds = NULL; in _dbus_server_new_for_tcp_socket() local
461 &listen_fds, error); in _dbus_server_new_for_tcp_socket()
506 server = _dbus_server_new_for_socket (listen_fds, nlisten_fds, &address, noncefile, error); in _dbus_server_new_for_tcp_socket()
517 dbus_free(listen_fds); in _dbus_server_new_for_tcp_socket()
529 _dbus_close_socket (listen_fds[i], NULL); in _dbus_server_new_for_tcp_socket()
530 dbus_free(listen_fds); in _dbus_server_new_for_tcp_socket()
/dports/www/uwsgi/uwsgi-2.0.20/core/
H A Dsetup_utils.c13 char *listen_fds = getenv("LISTEN_FDS"); in uwsgi_setup_systemd() local
14 if (listen_fds) { in uwsgi_setup_systemd()
15 int systemd_fds = atoi(listen_fds); in uwsgi_setup_systemd()
/dports/www/py-gunicorn/gunicorn-19.9.0/tests/
H A Dtest_systemd.py54 assert systemd.listen_fds(unset) == 0, \
64 assert systemd.listen_fds(unset) == 5, \
/dports/security/nmap/nmap-7.91/ncat/
H A Dncat_listen.c171 fd_set listen_fds; in ncat_listen_stream() local
180 FD_ZERO(&listen_fds); in ncat_listen_stream()
250 FD_SET(listen_socket[num_sockets], &listen_fds); in ncat_listen_stream()
342 if (FD_ISSET(cfd, &listen_fds)) { in ncat_listen_stream()
682 fd_set listen_fds; in ncat_listen_dgram() local
684 FD_ZERO(&listen_fds); in ncat_listen_dgram()
696 FD_SET(sockfd[num_sockets].fd, &listen_fds); in ncat_listen_dgram()
716 FD_CLR(sockfd[fdn].fd, &listen_fds); in ncat_listen_dgram()
723 FD_SET(sockfd[fdn].fd, &listen_fds); in ncat_listen_dgram()
737 fds = listen_fds; in ncat_listen_dgram()
/dports/x11/rxvt-unicode/rxvt-unicode-9.30/src/
H A Drxvtd.C258 const char *listen_fds = getenv ("LISTEN_FDS"); in get_listen_fds() local
259 if (!listen_fds) in get_listen_fds()
263 long n = strtol (listen_fds, &end, 10); in get_listen_fds()
264 if (errno || end == listen_fds || *end) in get_listen_fds()
/dports/databases/rrdtool/rrdtool-1.7.2/src/
H A Drrd_daemon.c3685 listen_fds = temp; in open_listen_socket_unix()
3686 memcpy (listen_fds + listen_fds_num, sock, sizeof (listen_fds[0])); in open_listen_socket_unix()
3842 listen_fds = temp; in open_listen_socket_network()
3843 memcpy (listen_fds + listen_fds_num, sock, sizeof (listen_fds[0])); in open_listen_socket_network()
3967 listen_fds = temp; in open_listen_sockets_systemd()
4024 close (listen_fds[i].fd); in close_listen_sockets()
4026 if (listen_fds[i].family == PF_UNIX && listen_fds[i].addr != NULL) in close_listen_sockets()
4028 free(listen_fds[i].addr); in close_listen_sockets()
4031 free (listen_fds); in close_listen_sockets()
4032 listen_fds = NULL; in close_listen_sockets()
[all …]
/dports/net/samba412/samba-4.12.15/source3/rpc_server/
H A Dmdssd.c239 struct pf_listen_fd *listen_fds; member
249 struct pf_listen_fd *listen_fds, in mdssd_children_main() argument
269 data->listen_fds = listen_fds; in mdssd_children_main()
329 data->listen_fds); in mdssd_next_client()
H A Dlsasd.c297 struct pf_listen_fd *listen_fds; member
307 struct pf_listen_fd *listen_fds, in lsasd_children_main() argument
327 data->listen_fds = listen_fds; in lsasd_children_main()
387 data->listen_fds); in lsasd_next_client()
/dports/net/libvncserver/libvncserver-LibVNCServer-0.9.13/libvncserver/
H A Dsockets.c477 fd_set listen_fds; in rfbProcessNewConnection() local
486 FD_ZERO(&listen_fds); in rfbProcessNewConnection()
488 FD_SET(rfbScreen->listenSock, &listen_fds); in rfbProcessNewConnection()
490 FD_SET(rfbScreen->listen6Sock, &listen_fds); in rfbProcessNewConnection()
491 if (select(rfbScreen->maxFd+1, &listen_fds, NULL, NULL, NULL) == -1) { in rfbProcessNewConnection()
495 if (rfbScreen->listenSock != RFB_INVALID_SOCKET && FD_ISSET(rfbScreen->listenSock, &listen_fds)) in rfbProcessNewConnection()
497 … if (rfbScreen->listen6Sock != RFB_INVALID_SOCKET && FD_ISSET(rfbScreen->listen6Sock, &listen_fds)) in rfbProcessNewConnection()
/dports/www/py-gunicorn/gunicorn-19.9.0/gunicorn/
H A Dsystemd.py11 def listen_fds(unset_environment=True): function
/dports/net-p2p/c-lightning/lightning-0.10.2/connectd/
H A Dconnectd.c127 struct listen_fd *listen_fds; member
1062 tal_arr_expand(&daemon->listen_fds, l); in add_listen_fd()
1545 for (size_t i = 0; i < tal_count(daemon->listen_fds); i++) { in connect_activate()
1548 if (listen(daemon->listen_fds[i].fd, 64) != 0) { in connect_activate()
1549 if (daemon->listen_fds[i].mayfail) in connect_activate()
1556 daemon->listen_fds[i].fd, in connect_activate()
1557 daemon->listen_fds[i].in_cb, in connect_activate()
1562 daemon->listen_fds = tal_free(daemon->listen_fds); in connect_activate()
1989 daemon->listen_fds = tal_arr(daemon, struct listen_fd, 0); in main()
/dports/irc/ircproxy/ircproxy-1.3.6/src/
H A Dlisten_io.h51 void listen_fds(fd_set *ReadFDS, fd_set *WriteFDS, unsigned long int *FDS);
/dports/misc/adios2/ADIOS2-2.7.1/thirdparty/EVPath/EVPath/
H A Dcmsockets.c89 int *listen_fds; member
720 conn_sock = sd->listen_fds[i];
807 sd->listen_fds = realloc(sd->listen_fds,
811 sd->listen_fds[sd->listen_count] = conn_sock;
1176 close(sd->listen_fds[i]); in free_socket_data()
1178 svc->free_func(sd->listen_fds); in free_socket_data()
1230 socket_data->listen_fds = malloc(sizeof(int)); in libcmsockets_LTX_initialize()
/dports/x11-wm/i3/i3-4.20.1/include/
H A Di3.h40 extern int listen_fds;
/dports/x11-wm/i3-gaps/i3-4.20.1/include/
H A Di3.h40 extern int listen_fds;

123