Lines Matching refs:ttbuf
122 struct termio ttbuf;
130 if ((*Ioctl)(tty, TCGETA, &ttbuf) != 0) {
133 ttbufs.c_lflag = ttbuf.c_lflag;
134 ttbufs.c_oflag = ttbuf.c_oflag;
135 ttbufs.c_iflag = ttbuf.c_iflag;
136 ttbufs.c_cflag = ttbuf.c_cflag;
138 ttbufs.c_cc[i] = ttbuf.c_cc[i];
217 ttbuf.c_lflag = ttbufs.c_lflag;
218 ttbuf.c_oflag = ttbufs.c_oflag;
219 ttbuf.c_iflag = ttbufs.c_iflag;
220 ttbuf.c_cflag = ttbufs.c_cflag;
222 ttbuf.c_cc[i] = ttbufs.c_cc[i];
223 ASSERT((*Ioctl)(tty, TCSETAW, &ttbuf) >= 0,
235 struct termio ttbuf;
237 if ((*Ioctl)(dcf, TCGETA, &ttbuf) != 0)
239 if (!(ttbuf.c_cflag & HUPCL)) {
240 ttbuf.c_cflag |= HUPCL;
241 (void) (*Ioctl)(dcf, TCSETAW, &ttbuf);
397 struct termio ttbuf;
404 if ((*Ioctl)(tty, TCGETA, &ttbuf) != 0) {
407 ttbufs.c_lflag = ttbuf.c_lflag;
408 ttbufs.c_oflag = ttbuf.c_oflag;
409 ttbufs.c_iflag = ttbuf.c_iflag;
410 ttbufs.c_cflag = ttbuf.c_cflag;
412 ttbufs.c_cc[i] = ttbuf.c_cc[i];
429 ttbuf.c_lflag = ttbufs.c_lflag;
430 ttbuf.c_oflag = ttbufs.c_oflag;
431 ttbuf.c_iflag = ttbufs.c_iflag;
432 ttbuf.c_cflag = ttbufs.c_cflag;
434 ttbuf.c_cc[i] = ttbufs.c_cc[i];
435 ret = (*Ioctl)(tty, TCSETAW, &ttbuf);
445 struct termio ttbuf;
448 if ((*Ioctl)(tty, TCGETA, &ttbuf) != 0)
450 ttbuf.c_cflag &= ~CLOCAL;
451 ttbuf.c_cflag |= CREAD|HUPCL;
452 ret = (*Ioctl)(tty, TCSETAW, &ttbuf);
489 struct sgttyb ttbuf;
496 if ((*Ioctl)(tty, TIOCGETP, &ttbuf) != 0)
505 ttbuf.sg_ispeed = ttbuf.sg_ospeed = speed;
508 if (ps->sp_name == ttbuf.sg_ispeed) {
512 ASSERT(spwant >= 0, "BAD SPEED", "", ttbuf.sg_ispeed);
514 ttbuf.sg_flags = (ANYP | RAW);
518 (void) (*Ioctl)(tty, TIOCSETP, &ttbuf);