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