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 | 182 int err, listen_fd, newfd, snlen; in pipesvc_listener() local 188 listen_fd = socket(AF_UNIX, SOCK_STREAM, 0); in pipesvc_listener() 189 if (listen_fd < 0) { in pipesvc_listener() 201 if (bind(listen_fd, (struct sockaddr *)&sa, sizeof (sa)) < 0) { in pipesvc_listener() 203 (void) close(listen_fd); in pipesvc_listener() 207 if (listen(listen_fd, SOMAXCONN) < 0) { in pipesvc_listener() 209 (void) close(listen_fd); in pipesvc_listener() 216 newfd = accept(listen_fd, (struct sockaddr *)&sa, &snlen); in pipesvc_listener() 254 (void) close(listen_fd); in pipesvc_listener()
|
/illumos-gate/usr/src/lib/libdhcpagent/common/ |
H A D | dhcpagent_ipc.c | 423 dhcp_ipc_init(int *listen_fd) in dhcp_ipc_init() argument 434 *listen_fd = socket(AF_INET, SOCK_STREAM, 0); in dhcp_ipc_init() 435 if (*listen_fd == -1) in dhcp_ipc_init() 444 (void) setsockopt(*listen_fd, SOL_SOCKET, SO_REUSEADDR, &on, in dhcp_ipc_init() 447 if (bind(*listen_fd, (struct sockaddr *)&sin, sizeof (sin)) == -1) { in dhcp_ipc_init() 448 (void) close(*listen_fd); in dhcp_ipc_init() 452 if (listen(*listen_fd, DHCP_IPC_LISTEN_BACKLOG) == -1) { in dhcp_ipc_init() 453 (void) close(*listen_fd); in dhcp_ipc_init() 471 dhcp_ipc_accept(int listen_fd, int *fd, int *is_priv) in dhcp_ipc_accept() argument 491 *fd = accept(listen_fd, (struct sockaddr *)&sin_peer, &sin_len); in dhcp_ipc_accept()
|
/illumos-gate/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()
|
/illumos-gate/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()
|
/illumos-gate/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()
|