Lines Matching refs:tty_fd
403 int tty_establish_ppp (int tty_fd) in tty_establish_ppp() argument
410 if (ioctl(tty_fd, TIOCEXCL, 0) < 0) { in tty_establish_ppp()
430 if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) { in tty_establish_ppp()
437 ret_fd = generic_establish_ppp(tty_fd); in tty_establish_ppp()
447 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0 && !ok_error(errno)) in tty_establish_ppp()
555 void tty_disestablish_ppp(int tty_fd) in tty_disestablish_ppp() argument
561 if (tcflush(tty_fd, TCIOFLUSH) < 0) in tty_disestablish_ppp()
569 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0) { in tty_disestablish_ppp()
574 if (ioctl(tty_fd, TIOCNXCL, 0) < 0) { in tty_disestablish_ppp()
580 if (initfdflags != -1 && fcntl(tty_fd, F_SETFL, initfdflags) < 0) { in tty_disestablish_ppp()
588 generic_disestablish_ppp(tty_fd); in tty_disestablish_ppp()
932 void set_up_tty(int tty_fd, int local) in set_up_tty() argument
937 setdtr(tty_fd, 1); in set_up_tty()
938 if (tcgetattr(tty_fd, &tios) < 0) { in set_up_tty()
996 while (tcsetattr(tty_fd, TCSAFLUSH, &tios) < 0 && !ok_error(errno)) in set_up_tty()
1010 void setdtr (int tty_fd, int on) in setdtr() argument
1014 ioctl(tty_fd, (on ? TIOCMBIS : TIOCMBIC), &modembits); in setdtr()
1022 void restore_tty (int tty_fd) in restore_tty() argument
1035 if (tcsetattr(tty_fd, TCSAFLUSH, &inittermios) < 0) { in restore_tty()