Lines Matching defs:termio
37 #include <termio.h>
75 * auto_termio - set termio to allow autobaud
82 struct termio termio;
86 if (ioctl(fd, TCGETA, &termio) == -1) {
91 termio.c_iflag = 0;
92 termio.c_cflag &= ~(CBAUD|CSIZE|PARENB);
93 termio.c_cflag |= CREAD|HUPCL|(CS8&CSIZE)|(B2400&CBAUD);
94 termio.c_lflag &= ~(ISIG|ICANON|ECHO|ECHOE|ECHOK);
95 termio.c_oflag = 0;
97 termio.c_cc[VMIN] = 5;
98 termio.c_cc[VTIME] = 1;
100 if (ioctl(fd, TCSETAF, &termio) == -1) {