Lines Matching refs:stdinout_sfd_

209     unique_fd stdinout_sfd_, stderr_sfd_, protocol_sfd_;  member in __anon0e077fa70111::Subprocess
314 stdinout_sfd_ = std::move(pty_master); in ForkAndExec()
317 if (!CreateSocketpair(&stdinout_sfd_, &child_stdinout_sfd)) { in ForkAndExec()
351 stdinout_sfd_.reset(-1); in ForkAndExec()
403 stdinout_sfd_.get(), stderr_sfd_.get()); in ForkAndExec()
430 if (!CreateSocketpair(&stdinout_sfd_, &child_stdinout_sfd)) { in ExecInProcess()
447 D("execinprocess: stdin/stdout FD = %d, stderr FD = %d", stdinout_sfd_.get(), in ExecInProcess()
467 local_socket_sfd_.reset(stdinout_sfd_.release()); in ConnectProtocolEndpoints()
488 for (int fd : {stdinout_sfd_.get(), stderr_sfd_.get()}) { in ConnectProtocolEndpoints()
562 pfds.stdinout_pfd() = {.fd = stdinout_sfd_.get(), .events = POLLIN}; in PassDataStreams()
568 while (protocol_sfd_ != -1 && (stdinout_sfd_ != -1 || stderr_sfd_ != -1)) { in PassDataStreams()
591 stdinout_sfd_.reset(); in PassDataStreams()
612 stdinout_sfd_.reset(-1); in PollLoop()
620 dead_sfd = PassOutput(&stdinout_sfd_, ShellProtocol::kIdStdout); in PollLoop()
656 return &stdinout_sfd_; in PollLoop()
682 if (stdinout_sfd_ != -1) { in PassInput()
693 ioctl(stdinout_sfd_.get(), TIOCSWINSZ, &ws); in PassInput()
701 if (adb_shutdown(stdinout_sfd_, SHUT_WR) == 0) { in PassInput()
704 PLOG(ERROR) << "failed to shutdown writes to FD " << stdinout_sfd_.get(); in PassInput()
705 return &stdinout_sfd_; in PassInput()
713 D("can't close input for PTY FD %d", stdinout_sfd_.get()); in PassInput()
722 int bytes = adb_write(stdinout_sfd_, input_->data() + index, input_bytes_left_); in PassInput()
725 PLOG(ERROR) << "error reading stdin FD " << stdinout_sfd_.get(); in PassInput()
730 return &stdinout_sfd_; in PassInput()