Lines Matching refs:tios
935 struct termios tios; in set_up_tty() local
938 if (tcgetattr(tty_fd, &tios) < 0) { in set_up_tty()
945 inittermios = tios; in set_up_tty()
947 tios.c_cflag &= ~(CSIZE | CSTOPB | PARENB | CLOCAL); in set_up_tty()
948 tios.c_cflag |= CS8 | CREAD | HUPCL; in set_up_tty()
950 tios.c_iflag = IGNBRK | IGNPAR; in set_up_tty()
951 tios.c_oflag = 0; in set_up_tty()
952 tios.c_lflag = 0; in set_up_tty()
953 tios.c_cc[VMIN] = 1; in set_up_tty()
954 tios.c_cc[VTIME] = 0; in set_up_tty()
957 tios.c_cflag ^= (CLOCAL | HUPCL); in set_up_tty()
961 tios.c_cflag |= CRTSCTS; in set_up_tty()
965 tios.c_iflag |= IXON | IXOFF; in set_up_tty()
966 tios.c_cc[VSTOP] = 0x13; /* DC3 = XOFF = ^S */ in set_up_tty()
967 tios.c_cc[VSTART] = 0x11; /* DC1 = XON = ^Q */ in set_up_tty()
971 tios.c_cflag &= ~CRTSCTS; in set_up_tty()
979 tios.c_cflag |= CSTOPB; in set_up_tty()
983 cfsetospeed (&tios, speed); in set_up_tty()
984 cfsetispeed (&tios, speed); in set_up_tty()
991 speed = cfgetospeed(&tios); in set_up_tty()
996 while (tcsetattr(tty_fd, TCSAFLUSH, &tios) < 0 && !ok_error(errno)) in set_up_tty()
2620 struct termios tios; local
2668 if (tcgetattr(sfd, &tios) == 0) {
2669 tios.c_cflag &= ~(CSIZE | CSTOPB | PARENB);
2670 tios.c_cflag |= CS8 | CREAD | CLOCAL;
2671 tios.c_iflag = IGNPAR;
2672 tios.c_oflag = 0;
2673 tios.c_lflag = 0;
2674 if (tcsetattr(sfd, TCSAFLUSH, &tios) < 0)