Lines Matching refs:tios
1217 struct termios tios; local
1236 if (tcgetattr(fd, &tios) < 0) {
1240 inittermios = tios;
1254 tios.c_cflag &= ~(CSIZE | CSTOPB | PARENB | CLOCAL);
1256 tios.c_cflag |= CRTSCTS | CRTSXOFF;
1258 tios.c_cflag &= ~CRTSCTS & ~CRTSXOFF;
1260 tios.c_cflag |= CS8 | CREAD | HUPCL;
1262 tios.c_cflag |= CLOCAL;
1264 tios.c_iflag = IGNBRK | IGNPAR;
1265 tios.c_oflag = 0;
1266 tios.c_lflag = 0;
1267 tios.c_cc[VMIN] = 1;
1268 tios.c_cc[VTIME] = 0;
1271 tios.c_iflag |= IXON | IXOFF;
1272 tios.c_cc[VSTOP] = 0x13; /* DC3 = XOFF = ^S */
1273 tios.c_cc[VSTART] = 0x11; /* DC1 = XON = ^Q */
1277 (void) cfsetospeed(&tios, speed);
1278 (void) cfsetispeed(&tios, speed);
1280 speed = cfgetospeed(&tios);
1290 if (tcsetattr(fd, TCSAFLUSH, &tios) < 0) {