Home
last modified time | relevance | path

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

12345678910>>...23

/dports/devel/distcc/distcc-3.3.5/src/
H A Dprefork.c60 void dcc_manage_kids(int listen_fd);
62 static void dcc_create_kids(int listen_fd);
63 static int dcc_preforked_child(int listen_fd);
70 int dcc_preforking_parent(int listen_fd) in dcc_preforking_parent() argument
84 dcc_create_kids(listen_fd); in dcc_preforking_parent()
87 return dcc_stats_server(listen_fd); in dcc_preforking_parent()
90 dcc_create_kids(listen_fd); in dcc_preforking_parent()
113 void dcc_manage_kids(int listen_fd) { in dcc_manage_kids() argument
115 dcc_create_kids(listen_fd); in dcc_manage_kids()
121 static void dcc_create_kids(int listen_fd) { in dcc_create_kids() argument
[all …]
/dports/mail/postfix-current/postfix-3.7-20211107/src/master/
H A Dmaster_listen.c98 serv->listen_fd[0] = in master_listen_init()
101 close_on_exec(serv->listen_fd[0], CLOSE_ON_EXEC); in master_listen_init()
110 serv->listen_fd[0] = in master_listen_init()
112 close_on_exec(serv->listen_fd[0], CLOSE_ON_EXEC); in master_listen_init()
122 close_on_exec(serv->listen_fd[0], CLOSE_ON_EXEC); in master_listen_init()
140 serv->listen_fd[n] in master_listen_init()
154 serv->listen_fd[0] = in master_listen_init()
157 close_on_exec(serv->listen_fd[0], CLOSE_ON_EXEC); in master_listen_init()
181 if (close(serv->listen_fd[n]) < 0) in master_listen_cleanup()
183 myname, serv->listen_fd[n]); in master_listen_cleanup()
[all …]
/dports/net/micro_inetd/micro_inetd/
H A Dmicro_inetd.c60 int listen_fd, conn_fd; in main() local
76 listen_fd = initialize_listen_socket( PF_INET6, AF_INET6, port ); in main()
78 listen_fd = initialize_listen_socket( PF_INET, AF_INET, port ); in main()
88 conn_fd = accept( listen_fd, (struct sockaddr*) &sa_in, &sz ); in main()
104 (void) close( listen_fd ); in main()
166 int listen_fd; in initialize_listen_socket() local
175 listen_fd = socket( pf, SOCK_STREAM, 0 ); in initialize_listen_socket()
176 if ( listen_fd < 0 ) in initialize_listen_socket()
204 if ( bind( listen_fd, (struct sockaddr*) &sa_in, sizeof(sa_in) ) < 0 ) in initialize_listen_socket()
211 if ( listen( listen_fd, 1024 ) < 0 ) in initialize_listen_socket()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_skc_cls_ingress.c93 int listen_fd = -1, cli_fd = -1, err; in test_conn() local
100 listen_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test_conn()
101 if (CHECK_FAIL(listen_fd == -1)) in test_conn()
111 cli_fd = connect_to_fd(listen_fd, 0); in test_conn()
133 if (listen_fd != -1) in test_conn()
134 close(listen_fd); in test_conn()
141 int listen_fd = -1, cli_fd = -1, err; in test_syncookie() local
150 if (CHECK_FAIL(listen_fd == -1)) in test_syncookie()
160 cli_fd = connect_to_fd(listen_fd, 0); in test_syncookie()
187 if (listen_fd != -1) in test_syncookie()
[all …]
H A Dsk_storage_tracing.c50 int listen_fd = -1, passive_fd = -1, active_fd = -1, value = 1, err; in do_test() local
53 listen_fd = start_server(AF_INET6, SOCK_STREAM, LO_ADDR6, 0, 0); in do_test()
54 if (CHECK(listen_fd == -1, "start_server", in do_test()
55 "listen_fd:%d errno:%d\n", listen_fd, errno)) in do_test()
58 active_fd = connect_to_fd(listen_fd, 0); in do_test()
68 passive_fd = accept(listen_fd, NULL, 0); in do_test()
88 err = check_sk_stg(listen_fd, BPF_TCP_LISTEN); in do_test()
104 if (listen_fd != -1) in do_test()
105 close(listen_fd); in do_test()
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_skc_cls_ingress.c93 int listen_fd = -1, cli_fd = -1, err; in test_conn() local
100 listen_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test_conn()
101 if (CHECK_FAIL(listen_fd == -1)) in test_conn()
111 cli_fd = connect_to_fd(listen_fd, 0); in test_conn()
133 if (listen_fd != -1) in test_conn()
134 close(listen_fd); in test_conn()
141 int listen_fd = -1, cli_fd = -1, err; in test_syncookie() local
150 if (CHECK_FAIL(listen_fd == -1)) in test_syncookie()
160 cli_fd = connect_to_fd(listen_fd, 0); in test_syncookie()
187 if (listen_fd != -1) in test_syncookie()
[all …]
H A Dsk_storage_tracing.c50 int listen_fd = -1, passive_fd = -1, active_fd = -1, value = 1, err; in do_test() local
53 listen_fd = start_server(AF_INET6, SOCK_STREAM, LO_ADDR6, 0, 0); in do_test()
54 if (CHECK(listen_fd == -1, "start_server", in do_test()
55 "listen_fd:%d errno:%d\n", listen_fd, errno)) in do_test()
58 active_fd = connect_to_fd(listen_fd, 0); in do_test()
68 passive_fd = accept(listen_fd, NULL, 0); in do_test()
88 err = check_sk_stg(listen_fd, BPF_TCP_LISTEN); in do_test()
104 if (listen_fd != -1) in do_test()
105 close(listen_fd); in do_test()
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_skc_cls_ingress.c93 int listen_fd = -1, cli_fd = -1, err; in test_conn() local
100 listen_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test_conn()
101 if (CHECK_FAIL(listen_fd == -1)) in test_conn()
111 cli_fd = connect_to_fd(listen_fd, 0); in test_conn()
133 if (listen_fd != -1) in test_conn()
134 close(listen_fd); in test_conn()
141 int listen_fd = -1, cli_fd = -1, err; in test_syncookie() local
150 if (CHECK_FAIL(listen_fd == -1)) in test_syncookie()
160 cli_fd = connect_to_fd(listen_fd, 0); in test_syncookie()
187 if (listen_fd != -1) in test_syncookie()
[all …]
H A Dsk_storage_tracing.c50 int listen_fd = -1, passive_fd = -1, active_fd = -1, value = 1, err; in do_test() local
53 listen_fd = start_server(AF_INET6, SOCK_STREAM, LO_ADDR6, 0, 0); in do_test()
54 if (CHECK(listen_fd == -1, "start_server", in do_test()
55 "listen_fd:%d errno:%d\n", listen_fd, errno)) in do_test()
58 active_fd = connect_to_fd(listen_fd, 0); in do_test()
68 passive_fd = accept(listen_fd, NULL, 0); in do_test()
88 err = check_sk_stg(listen_fd, BPF_TCP_LISTEN); in do_test()
104 if (listen_fd != -1) in do_test()
105 close(listen_fd); in do_test()
/dports/net/samba412/samba-4.12.15/ctdb/tcp/
H A Dtcp_connect.c457 if (ctcp->listen_fd == -1) { in ctdb_tcp_listen_automatic()
482 close(ctcp->listen_fd); in ctdb_tcp_listen_automatic()
483 ctcp->listen_fd = -1; in ctdb_tcp_listen_automatic()
523 if (ctcp->listen_fd != -1) { in ctdb_tcp_listen_automatic()
524 close(ctcp->listen_fd); in ctdb_tcp_listen_automatic()
525 ctcp->listen_fd = -1; in ctdb_tcp_listen_automatic()
565 if (ctcp->listen_fd == -1) { in ctdb_tcp_listen()
570 set_close_on_exec(ctcp->listen_fd); in ctdb_tcp_listen()
593 if (ctcp->listen_fd != -1) { in ctdb_tcp_listen()
594 close(ctcp->listen_fd); in ctdb_tcp_listen()
[all …]
/dports/net/mpich/mpich-3.4.3/src/pm/hydra2/libhydra/sock/
H A Dhydra_sock.c10 static inline HYD_status get_listen_socket(int *listen_fd) in get_listen_socket() argument
17 *listen_fd = MPL_socket(); in get_listen_socket()
18 if (*listen_fd < 0) in get_listen_socket()
40 HYD_status HYD_sock_listen_on_port(int *listen_fd, uint16_t port) in HYD_sock_listen_on_port() argument
47 status = get_listen_socket(listen_fd); in HYD_sock_listen_on_port()
52 if (MPL_listen(*listen_fd, port) < 0) { in HYD_sock_listen_on_port()
77 status = get_listen_socket(listen_fd); in HYD_sock_listen_on_any_port()
82 ret = MPL_listen_anyport(*listen_fd, port); in HYD_sock_listen_on_any_port()
119 status = get_listen_socket(listen_fd); in HYD_sock_listen_on_port_range()
215 HYD_status HYD_sock_accept(int listen_fd, int *fd) in HYD_sock_accept() argument
[all …]
/dports/databases/proftpd-mod_sql_postgres/proftpd-1.3.7c/src/
H A Dinet.c107 if (c->listen_fd != -1) { in conn_cleanup_cb()
108 close(c->listen_fd); in conn_cleanup_cb()
109 c->listen_fd = -1; in conn_cleanup_cb()
554 c->listen_fd = fd; in init_conn()
857 if (c->listen_fd != -1) {
871 if (c->listen_fd != -1 &&
918 if (c->listen_fd != -1) {
944 if (c->listen_fd != -1) {
1742 res->listen_fd = -1;
1789 c->listen_fd != -1) {
[all …]
/dports/databases/proftpd-mod_sql_sqlite/proftpd-1.3.7c/src/
H A Dinet.c107 if (c->listen_fd != -1) { in conn_cleanup_cb()
108 close(c->listen_fd); in conn_cleanup_cb()
109 c->listen_fd = -1; in conn_cleanup_cb()
554 c->listen_fd = fd; in init_conn()
857 if (c->listen_fd != -1) {
871 if (c->listen_fd != -1 &&
918 if (c->listen_fd != -1) {
944 if (c->listen_fd != -1) {
1742 res->listen_fd = -1;
1789 c->listen_fd != -1) {
[all …]
/dports/databases/proftpd-mod_sql_tds/proftpd-1.3.7c/src/
H A Dinet.c107 if (c->listen_fd != -1) { in conn_cleanup_cb()
108 close(c->listen_fd); in conn_cleanup_cb()
109 c->listen_fd = -1; in conn_cleanup_cb()
554 c->listen_fd = fd; in init_conn()
857 if (c->listen_fd != -1) {
871 if (c->listen_fd != -1 &&
918 if (c->listen_fd != -1) {
944 if (c->listen_fd != -1) {
1742 res->listen_fd = -1;
1789 c->listen_fd != -1) {
[all …]
/dports/databases/proftpd-mod_sql_odbc/proftpd-1.3.7c/src/
H A Dinet.c107 if (c->listen_fd != -1) { in conn_cleanup_cb()
108 close(c->listen_fd); in conn_cleanup_cb()
109 c->listen_fd = -1; in conn_cleanup_cb()
554 c->listen_fd = fd; in init_conn()
857 if (c->listen_fd != -1) {
871 if (c->listen_fd != -1 &&
918 if (c->listen_fd != -1) {
944 if (c->listen_fd != -1) {
1742 res->listen_fd = -1;
1789 c->listen_fd != -1) {
[all …]
/dports/databases/proftpd-mod_sql_mysql/proftpd-1.3.7c/src/
H A Dinet.c107 if (c->listen_fd != -1) { in conn_cleanup_cb()
108 close(c->listen_fd); in conn_cleanup_cb()
109 c->listen_fd = -1; in conn_cleanup_cb()
554 c->listen_fd = fd; in init_conn()
857 if (c->listen_fd != -1) {
871 if (c->listen_fd != -1 &&
918 if (c->listen_fd != -1) {
944 if (c->listen_fd != -1) {
1742 res->listen_fd = -1;
1789 c->listen_fd != -1) {
[all …]
/dports/net/proftpd-mod_ldap/proftpd-1.3.7c/src/
H A Dinet.c107 if (c->listen_fd != -1) { in conn_cleanup_cb()
108 close(c->listen_fd); in conn_cleanup_cb()
109 c->listen_fd = -1; in conn_cleanup_cb()
554 c->listen_fd = fd; in init_conn()
857 if (c->listen_fd != -1) {
871 if (c->listen_fd != -1 &&
918 if (c->listen_fd != -1) {
944 if (c->listen_fd != -1) {
1742 res->listen_fd = -1;
1789 c->listen_fd != -1) {
[all …]
/dports/security/proftpd-mod_clamav/proftpd-1.3.7c/src/
H A Dinet.c107 if (c->listen_fd != -1) { in conn_cleanup_cb()
108 close(c->listen_fd); in conn_cleanup_cb()
109 c->listen_fd = -1; in conn_cleanup_cb()
554 c->listen_fd = fd; in init_conn()
857 if (c->listen_fd != -1) {
871 if (c->listen_fd != -1 &&
918 if (c->listen_fd != -1) {
944 if (c->listen_fd != -1) {
1742 res->listen_fd = -1;
1789 c->listen_fd != -1) {
[all …]
/dports/ftp/proftpd/proftpd-1.3.7c/src/
H A Dinet.c107 if (c->listen_fd != -1) { in conn_cleanup_cb()
108 close(c->listen_fd); in conn_cleanup_cb()
109 c->listen_fd = -1; in conn_cleanup_cb()
554 c->listen_fd = fd; in init_conn()
857 if (c->listen_fd != -1) {
871 if (c->listen_fd != -1 &&
918 if (c->listen_fd != -1) {
944 if (c->listen_fd != -1) {
1742 res->listen_fd = -1;
1789 c->listen_fd != -1) {
[all …]
/dports/ftp/proftpd-mod_vroot/proftpd-1.3.7c/src/
H A Dinet.c107 if (c->listen_fd != -1) { in conn_cleanup_cb()
108 close(c->listen_fd); in conn_cleanup_cb()
109 c->listen_fd = -1; in conn_cleanup_cb()
554 c->listen_fd = fd; in init_conn()
857 if (c->listen_fd != -1) {
871 if (c->listen_fd != -1 &&
918 if (c->listen_fd != -1) {
944 if (c->listen_fd != -1) {
1742 res->listen_fd = -1;
1789 c->listen_fd != -1) {
[all …]
/dports/net/sems/sems-f89581a/apps/rtmp/
H A DRtmpServer.cpp62 int listen_fd = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); in listen() local
63 if(listen_fd < 0){ in listen()
68 if(setsockopt(listen_fd,SOL_SOCKET,SO_REUSEADDR,&onoff,sizeof(onoff))<0){ in listen()
70 close(listen_fd); in listen()
88 if(bind(listen_fd,(const sockaddr*)&listen_addr,sizeof(struct sockaddr_in)) < 0){ in listen()
90 close(listen_fd); in listen()
94 if(::listen(listen_fd,CONN_BACKLOG)<0){ in listen()
96 close(listen_fd); in listen()
100 fds[0].fd = listen_fd; in listen()
/dports/security/tinc-devel/tinc-1.1pre18/src/
H A Duml_device.c34 static int listen_fd = -1; variable
129 if(fcntl(listen_fd, F_SETFL, O_NONBLOCK) < 0) { in setup_device()
143 if(listen(listen_fd, 1) < 0) { in setup_device()
148 device_fd = listen_fd; in setup_device()
161 if(listen_fd >= 0) { in close_device()
162 close(listen_fd); in close_device()
163 listen_fd = -1; in close_device()
200 request_fd = accept(listen_fd, &sa, &salen); in read_packet()
211 if(fcntl(listen_fd, F_SETFL, O_NONBLOCK) < 0) { in read_packet()
217 close(listen_fd); in read_packet()
[all …]
/dports/irc/icbirc/icbirc-2.1/
H A Dicbirc.c80 int listen_fd = -1; in main() local
126 if ((listen_fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { in main()
131 if (fcntl(listen_fd, F_SETFL, fcntl(listen_fd, F_GETFL) | in main()
157 if (listen(listen_fd, 1)) { in main()
182 FD_SET(listen_fd, &readfds); in main()
185 r = select(listen_fd + 1, &readfds, NULL, NULL, &tv); in main()
193 if (r > 0 && FD_ISSET(listen_fd, &readfds)) { in main()
198 client_fd = accept(listen_fd, in main()
214 close(listen_fd); in main()
218 if (listen_fd) in main()
[all …]
/dports/security/tinc/tinc-1.0.36/src/
H A Duml_device.c33 static int listen_fd = -1; variable
122 if((listen_fd = socket(PF_UNIX, SOCK_STREAM, 0)) < 0) { in setup_device()
134 if(fcntl(listen_fd, F_SETFL, O_NONBLOCK) < 0) { in setup_device()
147 if(listen(listen_fd, 1) < 0) { in setup_device()
152 device_fd = listen_fd; in setup_device()
165 if(listen_fd >= 0) { in close_device()
166 close(listen_fd); in close_device()
195 request_fd = accept(listen_fd, &sa, &salen); in read_packet()
206 if(fcntl(listen_fd, F_SETFL, O_NONBLOCK) < 0) { in read_packet()
212 close(listen_fd); in read_packet()
[all …]
/dports/net/mpich/mpich-3.4.3/modules/ucx/src/uct/tcp/sockcm/
H A Dsockcm_iface.c218 iface->listen_fd); in uct_sockcm_iface_event_handler()
321 self->listen_fd = -1; in UCS_CLASS_INIT_FUNC()
333 &self->listen_fd); in UCS_CLASS_INIT_FUNC()
344 ucs_error("bind(fd=%d) failed: %m", self->listen_fd); in UCS_CLASS_INIT_FUNC()
349 if (0 > listen(self->listen_fd, config->backlog)) { in UCS_CLASS_INIT_FUNC()
357 self->listen_fd, in UCS_CLASS_INIT_FUNC()
367 self->listen_fd, in UCS_CLASS_INIT_FUNC()
384 close(self->listen_fd); in UCS_CLASS_INIT_FUNC()
393 if (-1 != self->listen_fd) { in UCS_CLASS_CLEANUP_FUNC()
395 ucs_async_remove_handler(self->listen_fd, 1); in UCS_CLASS_CLEANUP_FUNC()
[all …]

12345678910>>...23