Home
last modified time | relevance | path

Searched refs:ptyfd (Results 1 – 3 of 3) sorted by relevance

/titanic_41/usr/src/cmd/ssh/sshd/
H A Dsshpty.c51 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) in pty_allocate() argument
58 i = openpty(ptyfd, ttyfd, NULL, NULL, NULL); in pty_allocate()
77 slave = _getpty(ptyfd, O_RDWR, 0622, 0); in pty_allocate()
87 close(*ptyfd); in pty_allocate()
120 *ptyfd = ptm; in pty_allocate()
126 close(*ptyfd); in pty_allocate()
149 *ptyfd = open("/dev/ptc", O_RDWR | O_NOCTTY); in pty_allocate()
150 if (*ptyfd < 0) { in pty_allocate()
154 name = ttyname(*ptyfd); in pty_allocate()
162 close(*ptyfd); in pty_allocate()
[all …]
H A Dsession.c565 int fdout, ptyfd, ttyfd, ptymaster, pipe_fds[2]; in do_exec_pty() local
570 ptyfd = s->ptyfd; in do_exec_pty()
600 close(ptyfd); in do_exec_pty()
669 fdout = dup(ptyfd); in do_exec_pty()
674 ptymaster = dup(ptyfd); in do_exec_pty()
682 session_set_fds(s, ptyfd, fdout, -1); in do_exec_pty()
686 server_loop(pid, ptyfd, fdout, -1); in do_exec_pty()
1544 s->ptyfd = -1; in session_new()
1646 pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel); in session_window_change_req()
1724 if (!pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty))) { in session_pty_req()
[all …]
/titanic_41/usr/src/cmd/ssh/include/
H A Dsession.h47 int ptyfd, ttyfd, ptymaster; member