Lines Matching refs:real_ttyfd
126 static int real_ttyfd; /* fd for actual serial port (not pty) */ variable
534 real_ttyfd = -1; in connect_tty()
576 real_ttyfd = open(devnam, O_NONBLOCK | O_RDWR, 0); in connect_tty()
580 if (real_ttyfd >= 0) in connect_tty()
590 ttyfd = real_ttyfd; in connect_tty()
682 if (real_ttyfd != -1) { in connect_tty()
685 setdtr(real_ttyfd, 0); /* in case modem is off hook */ in connect_tty()
687 setdtr(real_ttyfd, 1); in connect_tty()
719 if (real_ttyfd != -1) in connect_tty()
720 set_up_tty(real_ttyfd, 0); in connect_tty()
762 if (real_ttyfd >= 0) in connect_tty()
763 tcflush(real_ttyfd, TCIOFLUSH); in connect_tty()
780 if (real_ttyfd >= 0) in disconnect_tty()
781 set_up_tty(real_ttyfd, 1); in disconnect_tty()
794 if (real_ttyfd >= 0) { in tty_close_fds()
795 close(real_ttyfd); in tty_close_fds()
796 real_ttyfd = -1; in tty_close_fds()
803 if (real_ttyfd >= 0) in cleanup_tty()
834 setdtr(real_ttyfd, 0); in finish_tty()
842 restore_tty(real_ttyfd); in finish_tty()
846 if (fchmod(real_ttyfd, tty_mode) != 0) in finish_tty()
851 close(real_ttyfd); in finish_tty()
852 real_ttyfd = -1; in finish_tty()