Searched refs:listenfd (Results 1 - 6 of 6) sorted by relevance
/freebsd-11-stable/tools/regression/sockets/unix_close_race/ |
H A D | unix_close_race.c | 66 int listenfd, connfd, pid; local 86 if ((listenfd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0) 92 if (bind(listenfd, (struct sockaddr *) &servaddr, 95 if (listen(listenfd, 1024) < 0) 106 close(listenfd); 134 if ((connfd = accept(listenfd,
|
/freebsd-11-stable/tools/regression/sockets/unix_sendtorace/ |
H A D | unix_sendtorace.c | 53 stream_server(int listenfd) argument 58 acceptfd = accept(listenfd, NULL, NULL); 99 int listenfd; local 101 listenfd = socket(PF_UNIX, SOCK_STREAM, 0); 102 if (listenfd < 0) 110 if (bind(listenfd, (struct sockaddr *)&sun, sizeof(sun)) < 0) 113 if (listen(listenfd, -1) < 0) 126 stream_server(listenfd);
|
/freebsd-11-stable/contrib/sendmail/libmilter/ |
H A D | listener.c | 36 static socket_t listenfd = INVALID_SOCKET; variable 69 if (ValidSocket(listenfd)) 80 listenfd = mi_milteropen(conn, backlog, rmsocket, smfi->xxfi_name); 81 if (!ValidSocket(listenfd)) 89 if (!SM_FD_OK_SELECT(listenfd)) 92 smfi->xxfi_name, listenfd, FD_SETSIZE); 597 if (ValidSocket(listenfd)) 606 fstat(listenfd, &sockinfo) == 0 && 614 (void) closesocket(listenfd); 615 listenfd [all...] |
/freebsd-11-stable/tools/regression/sockets/unix_cmsg/ |
H A D | uc_common.h | 75 int uc_socket_accept(int listenfd);
|
H A D | uc_common.c | 354 uc_socket_accept(int listenfd) argument 363 FD_SET(listenfd, &rset); 366 rv = select(listenfd + 1, &rset, (fd_set *)NULL, (fd_set *)NULL, &tv); 376 fd = accept(listenfd, (struct sockaddr *)NULL, (socklen_t *)NULL);
|
/freebsd-11-stable/contrib/pf/ftp-proxy/ |
H A D | ftp-proxy.c | 605 int ch, error, listenfd, on; local 745 if ((listenfd = socket(res->ai_family, SOCK_STREAM, IPPROTO_TCP)) == -1) 748 if (setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR, (void *)&on, 751 if (bind(listenfd, (struct sockaddr *)res->ai_addr, 754 if (listen(listenfd, TCP_BACKLOG) != 0) 785 event_set(&ev, listenfd, EV_READ | EV_PERSIST, handle_connection, &ev);
|
Completed in 100 milliseconds