Lines Matching refs:real_ttyfd
125 static int real_ttyfd; /* fd for actual serial port (not pty) */ variable
529 real_ttyfd = -1; in connect_tty()
568 real_ttyfd = open(devnam, O_NONBLOCK | O_RDWR, 0); in connect_tty()
572 if (real_ttyfd >= 0) in connect_tty()
582 ttyfd = real_ttyfd; in connect_tty()
674 if (real_ttyfd != -1) { in connect_tty()
677 setdtr(real_ttyfd, 0); /* in case modem is off hook */ in connect_tty()
679 setdtr(real_ttyfd, 1); in connect_tty()
711 if (real_ttyfd != -1) in connect_tty()
712 set_up_tty(real_ttyfd, 0); in connect_tty()
762 if (real_ttyfd >= 0) { in connect_tty()
763 close(real_ttyfd); in connect_tty()
764 real_ttyfd = -1; in connect_tty()
777 if (real_ttyfd >= 0) in disconnect_tty()
778 set_up_tty(real_ttyfd, 1); in disconnect_tty()
790 if (real_ttyfd >= 0) { in tty_close_fds()
791 close(real_ttyfd); in tty_close_fds()
792 real_ttyfd = -1; in tty_close_fds()
799 if (real_ttyfd >= 0) in cleanup_tty()
830 setdtr(real_ttyfd, 0); in finish_tty()
838 restore_tty(real_ttyfd); in finish_tty()
842 if (fchmod(real_ttyfd, tty_mode) != 0) in finish_tty()
847 close(real_ttyfd); in finish_tty()
848 real_ttyfd = -1; in finish_tty()