Lines Matching refs:ptyfd
565 int fdout, ptyfd, ttyfd, ptymaster; in do_exec_pty() local
570 ptyfd = s->ptyfd; in do_exec_pty()
580 if ((fdout = dup(ptyfd)) == -1) { in do_exec_pty()
583 close(ptyfd); in do_exec_pty()
587 if ((ptymaster = dup(ptyfd)) == -1) { in do_exec_pty()
590 close(ptyfd); in do_exec_pty()
602 close(ptyfd); in do_exec_pty()
611 close(ptyfd); in do_exec_pty()
654 session_set_fds(ssh, s, ptyfd, fdout, -1, 1, 1); in do_exec_pty()
1735 sessions[id].ptyfd = -1; in session_unused()
1902 pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel); in session_window_change_req()
1934 if (!PRIVSEP(pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, in session_pty_req()
1938 s->ptyfd = -1; in session_pty_req()
1954 pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel); in session_pty_req()