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