Home | History | Annotate | Download | only in pppd

Lines Matching refs:tty_fd

397 int tty_establish_ppp (int tty_fd)
404 if (ioctl(tty_fd, TIOCEXCL, 0) < 0) {
424 if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) {
431 ret_fd = generic_establish_ppp(tty_fd);
441 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0 && !ok_error(errno))
549 void tty_disestablish_ppp(int tty_fd)
555 if (tcflush(tty_fd, TCIOFLUSH) < 0)
563 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0) {
568 if (ioctl(tty_fd, TIOCNXCL, 0) < 0) {
574 if (initfdflags != -1 && fcntl(tty_fd, F_SETFL, initfdflags) < 0) {
582 generic_disestablish_ppp(tty_fd);
902 void set_up_tty(int tty_fd, int local)
907 setdtr(tty_fd, 1);
908 if (tcgetattr(tty_fd, &tios) < 0) {
963 while (tcsetattr(tty_fd, TCSAFLUSH, &tios) < 0 && !ok_error(errno))
977 void setdtr (int tty_fd, int on)
981 ioctl(tty_fd, (on ? TIOCMBIS : TIOCMBIC), &modembits);
989 void restore_tty (int tty_fd)
1002 if (tcsetattr(tty_fd, TCSAFLUSH, &inittermios) < 0) {