/freebsd-11.0-release/bin/pax/ |
H A D | tty_subs.c | 69 int ttyfd; local 71 if ((ttyfd = open(DEVTTY, O_RDWR)) >= 0) { 72 if ((ttyoutf = fdopen(ttyfd, "w")) != NULL) { 73 if ((ttyinf = fdopen(ttyfd, "r")) != NULL) 77 (void)close(ttyfd);
|
/freebsd-11.0-release/crypto/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); 75 name = ttyname(*ttyfd); 99 pty_make_controlling_tty(int *ttyfd, const char *tty) argument 119 ioctl(*ttyfd, TCSETCTTY, NULL); 123 close(*ttyfd); 124 *ttyfd = fd; 150 if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0)
|
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 | 656 int fdout, ptyfd, ttyfd, ptymaster; local 662 ttyfd = s->ttyfd; 673 close(ttyfd); 680 close(ttyfd); 692 close(ttyfd); 708 pty_make_controlling_tty(&ttyfd, s->tty); 711 if (dup2(ttyfd, 0) < 0) 713 if (dup2(ttyfd, 1) < 0) 715 if (dup2(ttyfd, [all...] |
H A D | monitor_wrap.c | 495 mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) argument 537 (*ttyfd = mm_receive_fd(pmonitor->m_recvfd)) == -1) 549 if (s->ttyfd == -1) 562 s->ttyfd = -1;
|
H A D | monitor.c | 1501 if (s->ttyfd != -1) { 1524 res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty)); 1533 if (dup2(s->ttyfd, 0) == -1) 1548 mm_send_fd(sock, s->ttyfd) == -1) 1558 close(s->ttyfd); 1559 s->ttyfd = s->ptyfd; 1563 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ttyfd);
|
/freebsd-11.0-release/sbin/conscontrol/ |
H A D | conscontrol.c | 158 int ttyfd; local 160 ttyfd = open(devnam, O_RDONLY); 161 if (ttyfd == -1) 163 if (ioctl(ttyfd, TIOCCONS, &flag) == -1) 166 close(ttyfd);
|
/freebsd-11.0-release/usr.bin/patch/ |
H A D | util.c | 274 static int ttyfd = -1; local 280 if (ttyfd < 0) 281 ttyfd = open(_PATH_TTY, O_RDONLY); 282 if (ttyfd >= 0) { 283 if ((nr = read(ttyfd, buf, buf_size)) > 0 && 287 if (ttyfd < 0 || nr <= 0) {
|
/freebsd-11.0-release/bin/sh/ |
H A D | jobs.c | 86 static int ttyfd = -1; variable 124 if (ttyfd >= 0) { 125 close(ttyfd); 126 ttyfd = -1; 147 if (ttyfd != -1) 148 close(ttyfd); 149 if ((ttyfd = open(_PATH_TTY, O_RDWR | O_CLOEXEC)) < 0) { 154 (ttyfd = fcntl(i, F_DUPFD_CLOEXEC, 10)) < 0) { 159 if (ttyfd < 10) { 164 if ((i = fcntl(ttyfd, F_DUPFD_CLOEXE [all...] |
/freebsd-11.0-release/usr.sbin/bhyve/ |
H A D | uart_emul.c | 92 struct ttyfd { struct 115 struct ttyfd tty; 133 ttyopen(struct ttyfd *tf) 150 ttyread(struct ttyfd *tf) 161 ttywrite(struct ttyfd *tf, unsigned char wb)
|
/freebsd-11.0-release/crypto/heimdal/appl/telnet/telnetd/ |
H A D | sys_term.c | 165 static int ttyfd = -1; variable 189 tcgetattr(ttyfd, &termbuf); 205 tcsetattr(ttyfd, TCSANOW, &termbuf); 858 ttyfd = t;
|
/freebsd-11.0-release/contrib/ntp/ntpd/ |
H A D | refclock_oncore.c | 272 int ttyfd; /* TTY file descriptor */ member in struct:instance 719 instance->ttyfd = fd1; 791 close(instance->ttyfd); 793 if ((instance->ppsfd != -1) && (instance->ppsfd != instance->ttyfd)) 3534 write(instance->ttyfd, cp, n); 3549 write(instance->ttyfd, cp, n); 3758 fd = instance->ttyfd;
|