Home
last modified time | relevance | path

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

/external/openssh/
Dsshpty.c64 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) in pty_allocate() argument
70 i = openpty(ptyfd, ttyfd, NULL, NULL, NULL); in pty_allocate()
76 if (ptsname_r(*ptyfd, namebuf, namebuflen)) { in pty_allocate()
78 close(*ptyfd); in pty_allocate()
79 *ptyfd = -1; in pty_allocate()
186 pty_change_window_size(int ptyfd, u_int row, u_int col, in pty_change_window_size() argument
196 (void) ioctl(ptyfd, TIOCSWINSZ, &w); in pty_change_window_size()
Dsession.c480 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()
[all …]
Dsession.h41 int ptyfd, ttyfd, ptymaster; member
Dmonitor.c1429 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ptyfd); in mm_session_close()
1451 res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty)); in mm_answer_pty()
1474 if (mm_send_fd(sock, s->ptyfd) == -1 || in mm_answer_pty()
1486 s->ttyfd = s->ptyfd; in mm_answer_pty()
1488 s->ptymaster = s->ptyfd; in mm_answer_pty()
Dmonitor_wrap.c486 mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) in mm_pty_allocate() argument
527 if ((*ptyfd = mm_receive_fd(pmonitor->m_recvfd)) == -1 || in mm_pty_allocate()
Dconfigure.ac2163 int fd, ptyfd, ttyfd, status;
2177 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
Dconfigure11880 int fd, ptyfd, ttyfd, status;
11894 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);