/freebsd-12-stable/tests/sys/file/ |
H A D | newfileops_on_fork_test.c | 57 static int listen_fd; variable 64 accept_fd = accept(listen_fd, NULL, NULL); 87 * listen_fd+1, and get back EBADF if it's not a valid descriptor, 90 if (ftruncate(listen_fd + 1, 0) < 0) { 107 listen_fd = socket(PF_INET, SOCK_STREAM, 0); 108 if (listen_fd < 0) 115 if (bind(listen_fd, (struct sockaddr *)&sin, sizeof(sin)) < 0) 117 if (listen(listen_fd, -1) <0)
|
/freebsd-12-stable/tools/regression/netinet/tcpsocktimewait/ |
H A D | tcpsocktimewait.c | 54 tcp_server(pid_t partner, int listen_fd) argument 58 accept_fd = accept(listen_fd, NULL, NULL); 66 close(listen_fd); 114 int listen_fd; local 127 listen_fd = socket(PF_INET, SOCK_STREAM, 0); 128 if (listen_fd < 0) 140 if (bind(listen_fd, (struct sockaddr *)&sin, sizeof(sin)) < 0) 143 if (listen(listen_fd, -1) < 0) 153 if (getsockname(listen_fd, (struct sockaddr *)&sin, &len) < 0) 164 tcp_server(child_pid, listen_fd); [all...] |
/freebsd-12-stable/usr.sbin/bhyve/ |
H A D | dbgport.c | 61 static int listen_fd, conn_fd; variable 88 conn_fd = accept4(listen_fd, NULL, NULL, SOCK_NONBLOCK); 144 if ((listen_fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { 155 if (setsockopt(listen_fd, SOL_SOCKET, SO_REUSEADDR, &reuse, 161 if (bind(listen_fd, (struct sockaddr *)&sin, sizeof(sin)) < 0) { 166 if (listen(listen_fd, 1) < 0) { 173 if (caph_rights_limit(listen_fd, &rights) == -1)
|
/freebsd-12-stable/tools/regression/netinet/tcpsockclosebeforeaccept/ |
H A D | tcpsockclosebeforeaccept.c | 72 int error, listen_fd, accept_fd; local 75 listen_fd = socket(PF_INET, SOCK_STREAM, 0); 76 if (listen_fd < 0) { 89 if (bind(listen_fd, (struct sockaddr *)&sin, sizeof(sin)) < 0) { 96 if (listen(listen_fd, -1) < 0) { 105 accept_fd = accept(listen_fd, NULL, NULL); 113 close(listen_fd);
|
/freebsd-12-stable/tools/regression/netinet/tcpdrop/ |
H A D | tcpdrop.c | 71 tcp_server(pid_t partner, int listen_fd) argument 77 accept_fd = accept(listen_fd, NULL, NULL); 118 close(listen_fd); 207 int listen_fd; local 211 listen_fd = socket(PF_INET, SOCK_STREAM, 0); 212 if (listen_fd < 0) 224 if (bind(listen_fd, (struct sockaddr *)&sin, sizeof(sin)) < 0) 227 if (listen(listen_fd, -1) < 0) 237 if (getsockname(listen_fd, (struct sockaddr *)&sin, &len) < 0) 251 tcp_server(parent_pid, listen_fd); [all...] |
/freebsd-12-stable/tools/tools/netrate/tcpp/ |
H A D | tcpp_server.c | 77 tcpp_server_newconn(int listen_fd) argument 83 fd = accept(listen_fd, NULL, NULL);
|
/freebsd-12-stable/crypto/heimdal/lib/kadm5/ |
H A D | ipropd_master.c | 815 krb5_socket_t signal_fd, listen_fd, listen6_fd; local 894 listen_fd = make_listen_socket (context, port_str); 910 if (signal_fd >= FD_SETSIZE || listen_fd >= FD_SETSIZE || 918 FD_SET(listen_fd, &readset); 919 max_fd = max(max_fd, listen_fd); 1009 if (ret && FD_ISSET(listen_fd, &readset)) { 1010 add_slave (context, keytab, &slaves, listen_fd);
|
/freebsd-12-stable/contrib/pf/ftp-proxy/ |
H A D | ftp-proxy.c | 383 handle_connection(const int listen_fd, short event __unused, void *ev __unused) argument 398 if ((client_fd = accept(listen_fd, client_sa, &len)) < 0) {
|