Lines Matching refs:ptyfd
480 int fdout, ptyfd, ttyfd, ptymaster; in do_exec_pty() local
485 ptyfd = s->ptyfd; in do_exec_pty()
495 if ((fdout = dup(ptyfd)) < 0) { in do_exec_pty()
498 close(ptyfd); in do_exec_pty()
502 if ((ptymaster = dup(ptyfd)) < 0) { in do_exec_pty()
505 close(ptyfd); in do_exec_pty()
517 close(ptyfd); in do_exec_pty()
529 close(ptyfd); in do_exec_pty()
578 session_set_fds(s, ptyfd, fdout, -1, 1, 1); in do_exec_pty()
1701 sessions[id].ptyfd = -1; in session_unused()
1865 pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel); in session_window_change_req()
1897 if (!PRIVSEP(pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, in session_pty_req()
1901 s->ptyfd = -1; in session_pty_req()
1915 pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel); in session_pty_req()