Lines Matching defs:tios
902 struct termios tios;
905 if (tcgetattr(tty_fd, &tios) < 0) {
912 inittermios = tios;
914 tios.c_cflag &= ~(CSIZE | CSTOPB | PARENB | CLOCAL);
915 tios.c_cflag |= CS8 | CREAD | HUPCL;
917 tios.c_iflag = IGNBRK | IGNPAR;
918 tios.c_oflag = 0;
919 tios.c_lflag = 0;
920 tios.c_cc[VMIN] = 1;
921 tios.c_cc[VTIME] = 0;
924 tios.c_cflag ^= (CLOCAL | HUPCL);
928 tios.c_cflag |= CRTSCTS;
932 tios.c_iflag |= IXON | IXOFF;
933 tios.c_cc[VSTOP] = 0x13; /* DC3 = XOFF = ^S */
934 tios.c_cc[VSTART] = 0x11; /* DC1 = XON = ^Q */
938 tios.c_cflag &= ~CRTSCTS;
947 cfsetospeed (&tios, speed);
948 cfsetispeed (&tios, speed);
955 speed = cfgetospeed(&tios);
960 while (tcsetattr(tty_fd, TCSAFLUSH, &tios) < 0 && !ok_error(errno))
2553 struct termios tios;
2611 if (tcgetattr(sfd, &tios) == 0) {
2612 tios.c_cflag &= ~(CSIZE | CSTOPB | PARENB);
2613 tios.c_cflag |= CS8 | CREAD | CLOCAL;
2614 tios.c_iflag = IGNPAR;
2615 tios.c_oflag = 0;
2616 tios.c_lflag = 0;
2617 if (tcsetattr(sfd, TCSAFLUSH, &tios) < 0)