Lines Matching refs:ttbufs
113 struct termios ttbufs;
119 if ((istermios = (*Ioctl)(tty, TCGETS, &ttbufs)) < 0) {
122 ttbufs.c_lflag = ttbuf.c_lflag;
123 ttbufs.c_oflag = ttbuf.c_oflag;
124 ttbufs.c_iflag = ttbuf.c_iflag;
125 ttbufs.c_cflag = ttbuf.c_cflag;
127 ttbufs.c_cc[i] = ttbuf.c_cc[i];
140 ttbufs.c_cflag &= 0xffff0000;
141 (void) cfsetospeed(&ttbufs, speed);
143 ospeed = cfgetospeed(&ttbufs);
144 ttbufs.c_cflag &= 0xffff0000;
145 (void) cfsetospeed(&ttbufs, ospeed);
152 ttbufs.c_iflag &= 0xffff0000;
153 ttbufs.c_oflag &= 0xffff0000;
154 ttbufs.c_lflag &= 0xffff0000;
156 ttbufs.c_cflag &= ~CLOCAL;
162 ttbufs.c_iflag = (IGNPAR | IGNBRK | IXON | IXOFF);
164 ttbufs.c_cflag |= CS8;
165 ttbufs.c_iflag &= ~ISTRIP;
167 ttbufs.c_cflag |= CS7;
168 ttbufs.c_iflag |= ISTRIP;
171 ttbufs.c_cc[VEOF] = '\1';
172 ttbufs.c_cflag |= (CREAD | (speed ? HUPCL : 0));
175 if (ttbufs.c_cflag & PARENB) {
179 ttbufs.c_cflag |= PARENB;
181 if (ttbufs.c_cflag & PARENB) {
185 ttbufs.c_cflag |= PARODD;
186 ttbufs.c_cflag |= PARENB;
190 ttbufs.c_iflag &= ~(IXON | IXOFF);
192 ttbufs.c_oflag |= (OPOST | ONLCR);
195 ttbufs.c_cflag |= (CS8 | CREAD | (speed ? HUPCL : 0));
196 ttbufs.c_cc[VMIN] = HEADERSIZE;
197 ttbufs.c_cc[VTIME] = 1;
201 ttbuf.c_lflag = ttbufs.c_lflag;
202 ttbuf.c_oflag = ttbufs.c_oflag;
203 ttbuf.c_iflag = ttbufs.c_iflag;
204 ttbuf.c_cflag = ttbufs.c_cflag;
206 ttbuf.c_cc[i] = ttbufs.c_cc[i];
210 ASSERT((*Ioctl)(tty, TCSETSW, &ttbufs) >= 0,