Lines Matching refs:tios
30 struct termios tios;
32 if (tcgetattr(fd, &tios) < 0) {
38 tios.c_cflag = CS8 | CREAD | HUPCL | CLOCAL;
39 tios.c_iflag = IGNBRK | IGNPAR;
40 tios.c_oflag = 0;
41 tios.c_lflag = 0;
43 tios.c_cc[i] = 0;
44 tios.c_cc[VMIN] = 1;
45 tios.c_cc[VTIME] = 0;
47 cfsetospeed(&tios, B38400);
48 cfsetispeed(&tios, B38400);
50 if (tcsetattr(fd, TCSAFLUSH, &tios) < 0) {