Lines Matching refs:ptyfd
632 int fdout, ptyfd, ttyfd, ptymaster; in do_exec_pty() local
637 ptyfd = s->ptyfd; in do_exec_pty()
647 if ((fdout = dup(ptyfd)) < 0) { in do_exec_pty()
650 close(ptyfd); in do_exec_pty()
654 if ((ptymaster = dup(ptyfd)) < 0) { in do_exec_pty()
657 close(ptyfd); in do_exec_pty()
669 close(ptyfd); in do_exec_pty()
681 close(ptyfd); in do_exec_pty()
737 session_set_fds(s, ptyfd, fdout, -1, 1, 1); in do_exec_pty()
739 server_loop(pid, ptyfd, fdout, -1); in do_exec_pty()
1905 sessions[id].ptyfd = -1; in session_unused()
2069 pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel); in session_window_change_req()
2107 if (!PRIVSEP(pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, in session_pty_req()
2111 s->ptyfd = -1; in session_pty_req()
2127 pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel); in session_pty_req()