Lines Matching defs:tty
50 * This program initializes its own tty port to be an async TCP/IP interface.
215 struct sgttyb tty, otty;
251 if ((fd = open("/dev/tty", O_RDONLY, 0)) >= 0) {
256 /* open slip tty again to acquire as controlling tty? */
285 syslog(LOG_ERR, "stdin not a tty");
286 errx(1, "stdin not a tty");
306 if (ioctl(STDIN_FILENO, TIOCGETP, (caddr_t)&tty) < 0) {
310 otty = tty;
311 speed = tty.sg_ispeed;
312 tty.sg_flags = RAW | ANYP;
313 if (ioctl(STDIN_FILENO, TIOCSETP, (caddr_t)&tty) < 0) {
341 * babble into the slip tty line.