Lines Matching defs:tty_fd
471 int tty_establish_ppp (int tty_fd)
477 if (ioctl(tty_fd, TIOCEXCL, 0) < 0) {
489 if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) {
496 ret_fd = generic_establish_ppp(tty_fd);
537 void tty_disestablish_ppp(int tty_fd)
539 generic_disestablish_ppp(tty_fd);
545 if (tcflush(tty_fd, TCIOFLUSH) < 0)
550 if (ioctl(tty_fd, TIOCSETD, &tty_disc) < 0) {
555 if (ioctl(tty_fd, TIOCNXCL, 0) < 0) {
561 if (initfdflags != -1 && fcntl(tty_fd, F_SETFL, initfdflags) < 0) {
829 void set_up_tty(int tty_fd, int local)
834 setdtr(tty_fd, 1);
835 if (tcgetattr(tty_fd, &tios) < 0) {
890 if (tcsetattr(tty_fd, TCSAFLUSH, &tios) < 0)
904 void setdtr (int tty_fd, int on)
908 ioctl(tty_fd, (on ? TIOCMBIS : TIOCMBIC), &modembits);
916 void restore_tty (int tty_fd)
929 if (tcsetattr(tty_fd, TCSAFLUSH, &inittermios) < 0) {