Lines Matching refs:uc_fd
56 int uc_fd; member
112 uctx->uc_fd = socket(AF_UNIX, SOCK_STREAM, 0); in uds_common_setup()
113 if (uctx->uc_fd == -1) { in uds_common_setup()
142 if (connect(uctx->uc_fd, (struct sockaddr *)&uctx->uc_sun, in uds_connect()
162 PJDLOG_ASSERT(uctx->uc_fd >= 0); in uds_connect_wait()
179 if (bind(uctx->uc_fd, (struct sockaddr *)&uctx->uc_sun, in uds_server()
186 if (listen(uctx->uc_fd, 8) == -1) { in uds_server()
208 PJDLOG_ASSERT(uctx->uc_fd >= 0); in uds_accept()
215 newuctx->uc_fd = accept(uctx->uc_fd, in uds_accept()
217 if (newuctx->uc_fd < 0) { in uds_accept()
237 PJDLOG_ASSERT(uctx->uc_fd >= 0); in uds_send()
239 return (proto_common_send(uctx->uc_fd, data, size, fd)); in uds_send()
249 PJDLOG_ASSERT(uctx->uc_fd >= 0); in uds_recv()
251 return (proto_common_recv(uctx->uc_fd, data, size, fdp)); in uds_recv()
262 return (uctx->uc_fd); in uds_descriptor()
277 if (getsockname(uctx->uc_fd, (struct sockaddr *)&sun, &sunlen) < 0) { in uds_local_address()
301 if (getpeername(uctx->uc_fd, (struct sockaddr *)&sun, &sunlen) < 0) { in uds_remote_address()
321 if (uctx->uc_fd >= 0) in uds_close()
322 close(uctx->uc_fd); in uds_close()