/freebsd-11-stable/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-stable/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 | 481 int fdout, ptyfd, ttyfd, ptymaster; local 487 ttyfd = s->ttyfd; 498 close(ttyfd); 505 close(ttyfd); 517 close(ttyfd); 533 pty_make_controlling_tty(&ttyfd, s->tty); 536 if (dup2(ttyfd, 0) < 0) 538 if (dup2(ttyfd, 1) < 0) 540 if (dup2(ttyfd, [all...] |
H A D | monitor_wrap.c | 486 mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) argument 528 (*ttyfd = mm_receive_fd(pmonitor->m_recvfd)) == -1) 540 if (s->ttyfd == -1) 553 s->ttyfd = -1;
|
H A D | monitor.c | 1423 if (s->ttyfd != -1) { 1446 res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty)); 1455 if (dup2(s->ttyfd, 0) == -1) 1470 mm_send_fd(sock, s->ttyfd) == -1) 1480 close(s->ttyfd); 1481 s->ttyfd = s->ptyfd; 1485 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ttyfd);
|
/freebsd-11-stable/sbin/conscontrol/ |
H A D | conscontrol.c | 160 int ttyfd; local 162 ttyfd = open(devnam, O_RDONLY); 163 if (ttyfd == -1) 165 if (ioctl(ttyfd, TIOCCONS, &flag) == -1) 168 close(ttyfd);
|
/freebsd-11-stable/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-stable/bin/sh/ |
H A D | jobs.c | 123 static int ttyfd = -1; variable 162 if (ttyfd >= 0) { 163 close(ttyfd); 164 ttyfd = -1; 185 if (ttyfd != -1) 186 close(ttyfd); 187 if ((ttyfd = open(_PATH_TTY, O_RDWR | O_CLOEXEC)) < 0) { 192 (ttyfd = fcntl(i, F_DUPFD_CLOEXEC, 10)) < 0) { 197 if (ttyfd < 10) { 202 if ((i = fcntl(ttyfd, F_DUPFD_CLOEXE [all...] |
/freebsd-11-stable/usr.sbin/bhyve/ |
H A D | uart_emul.c | 100 struct ttyfd { struct 123 struct ttyfd tty; 141 ttyopen(struct ttyfd *tf) 158 ttyread(struct ttyfd *tf) 169 ttywrite(struct ttyfd *tf, unsigned char wb)
|
/freebsd-11-stable/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-stable/contrib/ntp/ntpd/ |
H A D | refclock_oncore.c | 273 int ttyfd; /* TTY file descriptor */ member in struct:instance 721 instance->ttyfd = fd1; 793 close(instance->ttyfd); 795 if ((instance->ppsfd != -1) && (instance->ppsfd != instance->ttyfd)) 3540 write(instance->ttyfd, cp, n); 3555 write(instance->ttyfd, cp, n); 3764 fd = instance->ttyfd;
|