Lines Matching refs:tios
1429 struct termios tios;
1435 if (tcgetattr(fd, &tios) < 0) {
1441 inittermios = tios;
1445 tios.c_cflag &= ~(CSIZE | CSTOPB | PARENB | CLOCAL);
1449 tios.c_cflag |= CDTRCTS;
1452 tios.c_cflag |= CRTSCTS;
1454 tios.c_cflag &= ~CRTSCTS;
1456 tios.c_cflag &= ~CDTRCTS;
1460 tios.c_cflag |= CS8 | CREAD | HUPCL;
1462 tios.c_cflag |= CLOCAL;
1463 tios.c_iflag = IGNBRK | IGNPAR;
1464 tios.c_oflag = 0;
1465 tios.c_lflag = 0;
1466 tios.c_cc[VMIN] = 1;
1467 tios.c_cc[VTIME] = 0;
1470 tios.c_iflag |= IXON | IXOFF;
1471 tios.c_cc[VSTOP] = 0x13; /* DC3 = XOFF = ^S */
1472 tios.c_cc[VSTART] = 0x11; /* DC1 = XON = ^Q */
1476 cfsetospeed(&tios, inspeed);
1477 cfsetispeed(&tios, inspeed);
1479 inspeed = cfgetospeed(&tios);
1489 if (tcsetattr(fd, TCSAFLUSH, &tios) < 0)
1504 struct termios tios;
1506 if (tcgetattr(fd, &tios) < 0) {
1511 tios.c_cc[VMIN] = 1;
1512 tios.c_cc[VTIME] = 0;
1514 tios.c_cflag &= ~CLOCAL;
1516 tios.c_cflag |= CLOCAL;
1518 if (tcsetattr(fd, TCSANOW, &tios) < 0)
1564 struct termios tios;
1571 if (tcgetattr(*slave_fdp, &tios) == 0) {
1572 tios.c_cflag &= ~(CSIZE | CSTOPB | PARENB);
1573 tios.c_cflag |= CS8 | CREAD;
1574 tios.c_iflag = IGNPAR | CLOCAL;
1575 tios.c_oflag = 0;
1576 tios.c_lflag = 0;
1577 if (tcsetattr(*slave_fdp, TCSAFLUSH, &tios) < 0)