Lines Matching refs:input_fd
548 k = readv(b->input_fd, &iov, 1); in bus_socket_read_auth()
559 k = recvmsg_safe(b->input_fd, &mh, MSG_DONTWAIT|MSG_CMSG_CLOEXEC); in bus_socket_read_auth()
562 k = readv(b->input_fd, &iov, 1); in bus_socket_read_auth()
611 (void) fd_inc_rcvbuf(b->input_fd, SNDBUF_SIZE); in bus_socket_setup()
627 b->ucred_valid = getpeercred(b->input_fd, &b->ucred) >= 0; in bus_get_peercred()
630 r = getpeersec(b->input_fd, &b->label); in bus_get_peercred()
635 r = getpeergroups(b->input_fd, &b->groups); in bus_get_peercred()
688 if (sd_is_socket(b->input_fd, AF_UNIX, 0, 0) <= 0) in bus_socket_start_auth()
691 if (b->output_fd != b->input_fd) in bus_socket_start_auth()
886 assert(b->input_fd < 0); in bus_socket_connect()
897 … b->input_fd = socket(b->sockaddr.sa.sa_family, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0); in bus_socket_connect()
898 if (b->input_fd < 0) in bus_socket_connect()
901 b->input_fd = fd_move_above_stdio(b->input_fd); in bus_socket_connect()
903 b->output_fd = b->input_fd; in bus_socket_connect()
906 if (connect(b->input_fd, &b->sockaddr.sa, b->sockaddr_size) < 0) { in bus_socket_connect()
963 assert(b->input_fd < 0); in bus_socket_exec()
1008 b->output_fd = b->input_fd = fd_move_above_stdio(s[0]); in bus_socket_exec()
1214 k = readv(bus->input_fd, &iov, 1); in bus_socket_read_message()
1225 k = recvmsg_safe(bus->input_fd, &mh, MSG_DONTWAIT|MSG_CMSG_CLOEXEC); in bus_socket_read_message()
1228 k = readv(bus->input_fd, &iov, 1); in bus_socket_read_message()