Searched refs:listen_fd (Results 1 - 7 of 7) sorted by relevance
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_pipesvc.c | 179 int err, listen_fd, newfd, snlen; local 185 listen_fd = socket(AF_UNIX, SOCK_STREAM, 0); 186 if (listen_fd < 0) { 198 if (bind(listen_fd, (struct sockaddr *)&sa, sizeof (sa)) < 0) { 200 (void) close(listen_fd); 204 if (listen(listen_fd, SOMAXCONN) < 0) { 206 (void) close(listen_fd); 213 newfd = accept(listen_fd, (struct sockaddr *)&sa, &snlen); 251 (void) close(listen_fd);
|
/illumos-gate/usr/src/lib/libdhcpagent/common/ |
H A D | dhcpagent_ipc.c | 420 dhcp_ipc_init(int *listen_fd) argument 431 *listen_fd = socket(AF_INET, SOCK_STREAM, 0); 432 if (*listen_fd == -1) 441 (void) setsockopt(*listen_fd, SOL_SOCKET, SO_REUSEADDR, &on, 444 if (bind(*listen_fd, (struct sockaddr *)&sin, sizeof (sin)) == -1) { 445 (void) close(*listen_fd); 449 if (listen(*listen_fd, DHCP_IPC_LISTEN_BACKLOG) == -1) { 450 (void) close(*listen_fd); 468 dhcp_ipc_accept(int listen_fd, int *fd, int *is_priv) argument 488 *fd = accept(listen_fd, (struc [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | tlx.c | 449 int fd = tlx_info->pr_info.listen_fd; 541 int listen_fd = tlx_info->pr_info.listen_fd; local 572 } else if ((call = get_new_conind(listen_fd)) == NULL) { 582 if (t_accept(listen_fd, fd, call) == -1) {
|
H A D | inetd.c | 842 if (pi->listen_fd != -1) { /* fd bound */ 846 clear_pollfd(pi->listen_fd); 847 } else if (set_pollfd(pi->listen_fd, 894 if ((pi->listen_fd != -1) && 895 (find_pollfd(pi->listen_fd) != NULL)) 1088 if (pi->listen_fd != -1) 1091 pi->listen_fd = create_bound_endpoint(instance, 1103 pi->listen_fd = create_bound_socket(instance, 1106 if (pi->listen_fd == -1) { 1121 close_net_fd(instance, pi->listen_fd); [all...] |
/illumos-gate/usr/src/stand/lib/sock/ |
H A D | sock_test.c | 711 int listen_fd, newfd; local 733 if ((listen_fd = st_local_socket(AF_INET, SOCK_STREAM, 0)) < 0) { 745 if (st_local_bind(listen_fd, (struct sockaddr *)&addr, 750 if (st_local_listen(listen_fd, backlog) < 0) { 756 if ((newfd = st_local_accept(listen_fd, (struct sockaddr *)&addr, 759 (void) st_local_socket_close(listen_fd); 764 (void) st_local_socket_close(listen_fd);
|
/illumos-gate/usr/src/lib/libinetsvc/common/ |
H A D | inetsvc.h | 189 int listen_fd; member in struct:__anon3324
|
H A D | inetsvc.c | 488 assert(pi->listen_fd == -1); 920 p_inf->listen_fd = -1;
|
Completed in 70 milliseconds