Searched refs:ttyfd (Results 1 - 9 of 9) sorted by relevance
/external/dropbear/ |
H A D | sshpty.c | 49 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) argument 56 i = openpty(ptyfd, ttyfd, NULL, NULL, NULL); 62 name = ttyname(*ttyfd); 85 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); 86 if (*ttyfd < 0) { 129 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); 130 if (*ttyfd < 0) { 141 if (ioctl(*ttyfd, I_PUSH, "ptem") < 0) { 145 if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0) { 150 if (ioctl(*ttyfd, I_PUS 265 pty_make_controlling_tty(int *ttyfd, const char *tty_name) argument [all...] |
/external/openssh/ |
H A D | sshpty.c | 64 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) argument 70 i = openpty(ptyfd, ttyfd, NULL, NULL, NULL); 79 name = ttyname(*ttyfd); 104 pty_make_controlling_tty(int *ttyfd, const char *tty) argument 127 ioctl(*ttyfd, TCSETCTTY, NULL); 131 close(*ttyfd); 132 *ttyfd = fd; 158 if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0) 175 close(*ttyfd); 176 *ttyfd [all...] |
H A D | readpass.c | 122 int rppflags, use_askpass = 0, ttyfd; local 134 ttyfd = open(_PATH_TTY, O_RDWR); 135 if (ttyfd >= 0) 136 close(ttyfd);
|
H A D | session.h | 41 int ptyfd, ttyfd, ptymaster; member in struct:Session
|
H A D | session.c | 645 int fdout, ptyfd, ttyfd, ptymaster; local 651 ttyfd = s->ttyfd; 662 close(ttyfd); 669 close(ttyfd); 681 close(ttyfd); 697 pty_make_controlling_tty(&ttyfd, s->tty); 700 if (dup2(ttyfd, 0) < 0) 702 if (dup2(ttyfd, 1) < 0) 704 if (dup2(ttyfd, [all...] |
H A D | monitor_wrap.c | 702 mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) argument 744 (*ttyfd = mm_receive_fd(pmonitor->m_recvfd)) == -1) 756 if (s->ttyfd == -1) 769 s->ttyfd = -1;
|
H A D | monitor.c | 1404 if (s->ttyfd != -1) { 1427 res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty)); 1436 if (dup2(s->ttyfd, 0) == -1) 1451 mm_send_fd(sock, s->ttyfd) == -1) 1461 close(s->ttyfd); 1462 s->ttyfd = s->ptyfd; 1466 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ttyfd);
|
H A D | configure | 9955 int fd, ptyfd, ttyfd, status; 9969 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
|
/external/ppp/pppd/ |
H A D | tty.c | 126 static int ttyfd; /* Serial port file descriptor */ variable 582 ttyfd = real_ttyfd; 583 if ((fdflags = fcntl(ttyfd, F_GETFL)) == -1 584 || fcntl(ttyfd, F_SETFL, fdflags & ~O_NONBLOCK) < 0) 595 if (fstat(ttyfd, &statbuf) < 0 596 || fchmod(ttyfd, statbuf.st_mode & ~(S_IWGRP | S_IWOTH)) < 0) { 612 set_up_tty(ttyfd, ((connector != NULL && connector[0] != 0) 661 int fd = dup(ttyfd); 667 ttyfd = pty_slave; 684 if (device_script(initializer, ttyfd, ttyf [all...] |
Completed in 349 milliseconds