/freebsd-10.1-release/bin/pax/ |
H A D | tty_subs.c | 70 int ttyfd; local 72 if ((ttyfd = open(DEVTTY, O_RDWR)) >= 0) { 73 if ((ttyoutf = fdopen(ttyfd, "w")) != NULL) { 74 if ((ttyinf = fdopen(ttyfd, "r")) != NULL) 78 (void)close(ttyfd);
|
/freebsd-10.1-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 122 ioctl(*ttyfd, TCSETCTTY, NULL); 126 close(*ttyfd); 127 *ttyfd = fd; 153 if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0) 170 close(*ttyfd); 171 *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 | 675 int fdout, ptyfd, ttyfd, ptymaster; local 681 ttyfd = s->ttyfd; 692 close(ttyfd); 699 close(ttyfd); 711 close(ttyfd); 727 pty_make_controlling_tty(&ttyfd, s->tty); 730 if (dup2(ttyfd, 0) < 0) 732 if (dup2(ttyfd, 1) < 0) 734 if (dup2(ttyfd, [all...] |
H A D | monitor.c | 1424 if (s->ttyfd != -1) { 1447 res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty)); 1456 if (dup2(s->ttyfd, 0) == -1) 1471 mm_send_fd(sock, s->ttyfd) == -1) 1481 close(s->ttyfd); 1482 s->ttyfd = s->ptyfd; 1486 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ttyfd);
|
H A D | monitor_wrap.c | 701 mm_pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) argument 743 (*ttyfd = mm_receive_fd(pmonitor->m_recvfd)) == -1) 755 if (s->ttyfd == -1) 768 s->ttyfd = -1;
|
H A D | configure | 11472 int fd, ptyfd, ttyfd, status; 11486 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
|
/freebsd-10.1-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-10.1-release/usr.bin/patch/ |
H A D | util.c | 258 static int ttyfd = -1; local 264 if (ttyfd < 0) 265 ttyfd = open(_PATH_TTY, O_RDONLY); 266 if (ttyfd >= 0) { 267 if ((nr = read(ttyfd, buf, buf_size)) > 0 && 271 if (ttyfd < 0 || nr <= 0) {
|
/freebsd-10.1-release/bin/sh/ |
H A D | jobs.c | 86 static int ttyfd = -1; variable 129 if (ttyfd != -1) 130 close(ttyfd); 131 if ((ttyfd = open(_PATH_TTY, O_RDWR | O_CLOEXEC)) < 0) { 136 (ttyfd = fcntl(i, F_DUPFD_CLOEXEC, 10)) < 0) 139 if (ttyfd < 10) { 144 if ((i = fcntl(ttyfd, F_DUPFD_CLOEXEC, 10)) < 0) { 145 close(ttyfd); 146 ttyfd = -1; 149 close(ttyfd); [all...] |
/freebsd-10.1-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-10.1-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-10.1-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;
|