Lines Matching defs:tty_fd
394 int tty_establish_ppp (int tty_fd)
401 if (ioctl(tty_fd, TIOCEXCL, 0) < 0) {
421 if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) {
428 ret_fd = generic_establish_ppp(tty_fd);
438 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0 && !ok_error(errno))
546 void tty_disestablish_ppp(int tty_fd)
552 if (tcflush(tty_fd, TCIOFLUSH) < 0)
560 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0) {
565 if (ioctl(tty_fd, TIOCNXCL, 0) < 0) {
571 if (initfdflags != -1 && fcntl(tty_fd, F_SETFL, initfdflags) < 0) {
579 generic_disestablish_ppp(tty_fd);
899 void set_up_tty(int tty_fd, int local)
904 setdtr(tty_fd, 1);
905 if (tcgetattr(tty_fd, &tios) < 0) {
960 while (tcsetattr(tty_fd, TCSAFLUSH, &tios) < 0 && !ok_error(errno))
974 void setdtr (int tty_fd, int on)
978 ioctl(tty_fd, (on ? TIOCMBIS : TIOCMBIC), &modembits);
986 void restore_tty (int tty_fd)
999 if (tcsetattr(tty_fd, TCSAFLUSH, &inittermios) < 0) {