HomeSort by relevance Sort by last modified time
    Searched full:ttyfd (Results 1 - 12 of 12) sorted by null

  /external/dropbear/
sshpty.c 49 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
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_PUSH, "ttcompat") < 0)
    [all...]
  /external/openssh/
sshpty.c 64 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen)
70 i = openpty(ptyfd, ttyfd, NULL, NULL, NULL);
79 name = ttyname(*ttyfd);
104 pty_make_controlling_tty(int *ttyfd, const char *tty)
127 ioctl(*ttyfd, TCSETCTTY, NULL);
131 close(*ttyfd);
132 *ttyfd = fd;
158 if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0)
175 close(*ttyfd);
176 *ttyfd = fd
    [all...]
readpass.c 122 int rppflags, use_askpass = 0, ttyfd; local
134 ttyfd = open(_PATH_TTY, O_RDWR);
135 if (ttyfd >= 0)
136 close(ttyfd);
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, 2) < 0
    [all...]
session.h 41 int ptyfd, ttyfd, ptymaster; member in struct:Session
monitor_wrap.c 702 mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen)
744 (*ttyfd = mm_receive_fd(pmonitor->m_recvfd)) == -1)
756 if (s->ttyfd == -1)
769 s->ttyfd = -1;
    [all...]
monitor.c     [all...]
sshd.c 1006 * ttyfd happens to be one of those.
    [all...]
configure.ac     [all...]
configure     [all...]
  /external/ppp/pppd/
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, ttyfd, 0) < 0)
    [all...]
  /system/core/sh/
jobs.c 97 static int ttyfd = -1; variable
153 if (ttyfd != -1)
154 close(ttyfd);
155 if ((ttyfd = open("/dev/tty", O_RDWR)) == -1) {
157 if (isatty(i) && (ttyfd = dup(i)) != -1)
165 if ((err = fcntl(ttyfd, F_DUPFD, (1 << i) - 1)) != -1)
169 close(ttyfd);
170 ttyfd = err;
173 err = ioctl(ttyfd, FIOCLEX, 0);
175 err = fcntl(ttyfd, F_SETFD
    [all...]

Completed in 543 milliseconds