Lines Matching refs:t_modes
691 tp->t_modes = *termiosp; in ldtermopen()
1198 if ((tp->t_modes.c_iflag & IXOFF) && in ldtermrput()
1216 if ((tp->t_modes.c_iflag & IXOFF) && (tp->t_state & TS_TBLOCK) && in ldtermrput()
1236 if (tp->t_modes.c_iflag & (INLCR|IGNCR|ICRNL|IUCLC|IXON) || in ldtermrput()
1237 tp->t_modes.c_lflag & (ISIG|ICANON)) { in ldtermrput()
1246 if (tp->t_modes.c_iflag & ISTRIP) in ldtermrput()
1256 tp->t_modes.c_lflag &= ~FLUSHO; in ldtermrput()
1269 if (tp->t_modes.c_iflag & IXON && in ldtermrput()
1271 tp->t_modes.c_lflag & IEXTEN && in ldtermrput()
1272 tp->t_modes.c_iflag & IXANY) { in ldtermrput()
1277 tp->t_modes.c_lflag &= ~FLUSHO; in ldtermrput()
1285 if (tp->t_modes.c_iflag & IXON) { in ldtermrput()
1288 tp->t_modes.c_cc[VSTART] || in ldtermrput()
1289 (tp->t_modes.c_lflag & in ldtermrput()
1291 tp->t_modes.c_iflag & in ldtermrput()
1301 tp->t_modes.c_cc[VSTOP]) { in ldtermrput()
1308 if (c == tp->t_modes.c_cc[VSTOP] || in ldtermrput()
1309 c == tp->t_modes.c_cc[VSTART]) in ldtermrput()
1319 if (tp->t_modes.c_lflag & IEXTEN) { in ldtermrput()
1320 if (c == tp->t_modes.c_cc[VLNEXT]) { in ldtermrput()
1330 tp->t_modes.c_lflag &= ~FLUSHO; in ldtermrput()
1334 if (c == tp->t_modes.c_cc[VDISCARD]) { in ldtermrput()
1339 tp->t_modes.c_lflag &= ~FLUSHO; in ldtermrput()
1345 if (tp->t_modes.c_lflag & ISIG) { in ldtermrput()
1346 if (c == tp->t_modes.c_cc[VINTR]) { in ldtermrput()
1351 if (c == tp->t_modes.c_cc[VQUIT]) { in ldtermrput()
1356 if (c == tp->t_modes.c_cc[VSWTCH]) { in ldtermrput()
1363 if (c == tp->t_modes.c_cc[VSUSP]) { in ldtermrput()
1368 if ((tp->t_modes.c_lflag & IEXTEN) && in ldtermrput()
1369 (c == tp->t_modes.c_cc[VDSUSP])) { in ldtermrput()
1380 if (c == tp->t_modes.c_cc[VSTATUS]) { in ldtermrput()
1391 if (tp->t_modes.c_iflag & IGNCR) in ldtermrput()
1393 if (tp->t_modes.c_iflag & ICRNL) in ldtermrput()
1401 tp->t_modes.c_iflag & INLCR) in ldtermrput()
1409 if (tp->t_modes.c_iflag & IUCLC && in ldtermrput()
1434 if (tp->t_modes.c_iflag & ISTRIP) { in ldtermrput()
1438 tp->t_modes.c_lflag &= ~FLUSHO; in ldtermrput()
1465 if ((tp->t_modes.c_iflag & IXOFF) && !(tp->t_state & TS_TBLOCK) && in ldtermrput()
1525 if ((tp->t_modes.c_iflag & IXOFF) && (tp->t_state & TS_TBLOCK) && in ldtermrsrv()
1568 if (tp->t_modes.c_lflag & ECHO) { in ldtermrmsg()
1569 if ((tp->t_modes.c_iflag & IMAXBEL) && in ldtermrmsg()
1570 (tp->t_modes.c_lflag & ICANON)) { in ldtermrmsg()
1774 if ((tp->t_modes.c_lflag & IEXTEN) && c == tp->t_modes.c_cc[VLNEXT]) { in ldterm_docanon()
1775 if (tp->t_modes.c_lflag & ECHO) in ldterm_docanon()
1788 if (c == tp->t_modes.c_cc[VERASE] || c == tp->t_modes.c_cc[VERASE2]) { in ldterm_docanon()
1808 if ((tp->t_modes.c_lflag & IEXTEN) && c == tp->t_modes.c_cc[VWERASE]) { in ldterm_docanon()
1819 if (c == tp->t_modes.c_cc[VKILL]) { in ldterm_docanon()
1834 if ((tp->t_modes.c_lflag & IEXTEN) && c == tp->t_modes.c_cc[VREPRINT]) { in ldterm_docanon()
1848 if (c == tp->t_modes.c_cc[VEOF]) { in ldterm_docanon()
1864 if ((tp->t_modes.c_lflag & XCASE) && in ldterm_docanon()
1876 if (c == tp->t_modes.c_cc[VEOF]) { in ldterm_docanon()
1883 if ((tp->t_modes.c_lflag & ECHOCTL) && in ldterm_docanon()
1884 (tp->t_modes.c_lflag & IEXTEN) && in ldterm_docanon()
1885 (tp->t_modes.c_lflag & ECHO)) { in ldterm_docanon()
1923 if (tp->t_modes.c_iflag & IMAXBEL) { in ldterm_docanon()
1991 (void *)tp, tp->t_modes.c_lflag & ECHOCTL); in ldterm_docanon()
1996 (void *)tp, tp->t_modes.c_lflag & ECHOCTL); in ldterm_docanon()
2015 (c == '\n' || (c != '\0' && (c == tp->t_modes.c_cc[VEOL] || in ldterm_docanon()
2016 (c == tp->t_modes.c_cc[VEOL2]))))) { in ldterm_docanon()
2045 if ((c == '\\') && (tp->t_modes.c_lflag & IEXTEN) && in ldterm_docanon()
2056 if (tp->t_modes.c_lflag & ECHO) in ldterm_docanon()
2059 if (tp->t_modes.c_lflag & ECHO) in ldterm_docanon()
2066 if (c == '\n' && (tp->t_modes.c_lflag & ECHONL)) in ldterm_docanon()
2133 if (!(tp->t_modes.c_lflag & ECHO)) in ldterm_rubout()
2135 if (tp->t_modes.c_lflag & ECHOE) { in ldterm_rubout()
2156 if ((tp->t_modes.c_lflag & XCASE) && in ldterm_rubout()
2168 if ((tp->t_modes.c_lflag & ECHOCTL) && in ldterm_rubout()
2169 (tp->t_modes.c_lflag & IEXTEN)) in ldterm_rubout()
2193 } else if ((tp->t_modes.c_lflag & ECHOPRT) && in ldterm_rubout()
2194 (tp->t_modes.c_lflag & IEXTEN)) { in ldterm_rubout()
2204 (void) ldterm_echo(tp->t_modes.c_cc[VERASE], q, ebsize, tp); in ldterm_rubout()
2250 if (tp->t_modes.c_oflag & ONLRET) in ldterm_tabcols()
2324 if ((tp->t_modes.c_lflag & ECHOCTL) && in ldterm_tabcols()
2325 (tp->t_modes.c_lflag & IEXTEN)) { in ldterm_tabcols()
2360 if (tp->t_modes.c_oflag & ONLRET) in ldterm_tabcols()
2569 if ((tp->t_modes.c_lflag & ECHOKE) && in ldterm_kill()
2570 (tp->t_modes.c_lflag & IEXTEN) && in ldterm_kill()
2617 (void) ldterm_echo(tp->t_modes.c_cc[VKILL], q, ebsize, tp); in ldterm_kill()
2618 if (tp->t_modes.c_lflag & ECHOK) in ldterm_kill()
2644 if (tp->t_modes.c_cc[VREPRINT] != (unsigned char) 0) in ldterm_reprint()
2645 (void) ldterm_echo(tp->t_modes.c_cc[VREPRINT], q, ebsize, tp); in ldterm_reprint()
2676 if (tp->t_modes.c_lflag & (ECHO|ECHONL|IEXTEN)) { in ldterm_dononcanon()
2701 if ((tp->t_modes.c_lflag & IEXTEN) && in ldterm_dononcanon()
2704 c == tp->t_modes.c_cc[VLNEXT]) { in ldterm_dononcanon()
2705 if (tp->t_modes.c_lflag & ECHO) in ldterm_dononcanon()
2720 if (tp->t_modes.c_lflag & ECHO) { in ldterm_dononcanon()
2725 } else if (tp->t_modes.c_lflag & ECHONL) { in ldterm_dononcanon()
2872 if (!(tp->t_modes.c_lflag & ECHO)) in ldterm_echo()
2881 if ((tp->t_modes.c_lflag & ECHOCTL) && in ldterm_echo()
2882 (tp->t_modes.c_lflag & IEXTEN)) { in ldterm_echo()
2886 if (tp->t_modes.c_oflag & OLCUC) in ldterm_echo()
2900 c == tp->t_modes.c_cc[VKILL]) { in ldterm_echo()
2920 if ((tp->t_modes.c_oflag & OPOST) || in ldterm_outchar()
2921 ((tp->t_modes.c_lflag & XCASE) && in ldterm_outchar()
2922 (tp->t_modes.c_lflag & ICANON))) { in ldterm_outchar()
3330 if ((tp->t_modes.c_lflag & FLUSHO) && in ldtermwmsg()
3331 (tp->t_modes.c_lflag & IEXTEN)) { in ldtermwmsg()
3340 if (((tp->t_modes.c_oflag & OPOST) || in ldtermwmsg()
3341 ((tp->t_modes.c_lflag & XCASE) && in ldtermwmsg()
3342 (tp->t_modes.c_lflag & ICANON))) && in ldtermwmsg()
3478 if ((tp->t_modes.c_lflag & XCASE) && in ldterm_output_msg()
3479 (tp->t_modes.c_lflag & ICANON)) { in ldterm_output_msg()
3506 tp->t_modes.c_lflag & in ldterm_output_msg()
3544 if (!(tp->t_modes.c_oflag & OPOST)) { in ldterm_output_msg()
3561 (tp->t_modes.c_oflag & OLCUC) && in ldterm_output_msg()
3597 (tp->t_modes.c_oflag & OLCUC ? in ldterm_output_msg()
3602 (tp->t_modes.c_oflag & OLCUC ? in ldterm_output_msg()
3650 tp->t_modes.c_lflag & ECHOCTL); in ldterm_output_msg()
3684 if (c == '\r' && (tp->t_modes.c_oflag & OCRNL)) { in ldterm_output_msg()
3709 if (c == '\n' && (tp->t_modes.c_oflag & ONLCR)) { in ldterm_output_msg()
3763 if (tp->t_modes.c_oflag & OLCUC) in ldterm_output_msg()
3774 if (tp->t_modes.c_oflag & OLCUC) in ldterm_output_msg()
3807 if (tp->t_modes.c_oflag & BSDLY) { in ldterm_output_msg()
3808 if (tp->t_modes.c_oflag & OFILL) in ldterm_output_msg()
3816 if (tp->t_modes.c_oflag & ONLRET) in ldterm_output_msg()
3818 if ((tp->t_modes.c_oflag & NLDLY) == NL1) in ldterm_output_msg()
3833 if ((tp->t_modes.c_oflag & TABDLY) == XTABS) { in ldterm_output_msg()
3858 if (tp->t_modes.c_oflag & OFILL) { in ldterm_output_msg()
3859 if (tp->t_modes.c_oflag & in ldterm_output_msg()
3863 switch (tp->t_modes.c_oflag & in ldterm_output_msg()
3883 if ((tp->t_modes.c_oflag & VTDLY) && in ldterm_output_msg()
3884 !(tp->t_modes.c_oflag & OFILL)) in ldterm_output_msg()
3896 (tp->t_modes.c_oflag & ONOCR)) in ldterm_output_msg()
3900 switch (tp->t_modes.c_oflag & CRDLY) { in ldterm_output_msg()
3903 if (tp->t_modes.c_oflag & OFILL) in ldterm_output_msg()
3910 if (tp->t_modes.c_oflag & OFILL) in ldterm_output_msg()
3917 if (tp->t_modes.c_oflag & OFILL) in ldterm_output_msg()
3930 if (tp->t_modes.c_oflag & OFILL) { in ldterm_output_msg()
3936 if (tp->t_modes.c_oflag & OFDEL) in ldterm_output_msg()
3943 if ((tp->t_modes.c_lflag & FLUSHO) && in ldterm_output_msg()
3944 (tp->t_modes.c_lflag & IEXTEN)) { in ldterm_output_msg()
4011 if (tp->t_modes.c_lflag & FLUSHO) in ldterm_flush_output()
4012 tp->t_modes.c_lflag &= ~FLUSHO; in ldterm_flush_output()
4026 tp->t_modes.c_lflag |= FLUSHO; in ldterm_flush_output()
4044 if ((!(tp->t_modes.c_lflag & NOFLSH)) || (c == '\0')) { in ldterm_dosig()
4146 (tp->t_modes.c_lflag & IEXTEN)) { in ldterm_do_ioctl()
4158 bcopy(tp->t_amodes.c_cc, tp->t_modes.c_cc, NCCS); in ldterm_do_ioctl()
4164 tp->t_modes.c_cflag = tp->t_amodes.c_cflag; in ldterm_do_ioctl()
4210 bcopy(cb->c_cc, tp->t_modes.c_cc, NCC); in ldterm_do_ioctl()
4216 tp->t_modes.c_cflag = tp->t_amodes.c_cflag; in ldterm_do_ioctl()
4807 if ((oldmodep->c_lflag ^ tp->t_modes.c_lflag) & ICANON) { in chgstropts()
4815 if (tp->t_modes.c_lflag & ICANON) { in chgstropts()
4835 if ((oldmodep->c_lflag ^ tp->t_modes.c_lflag) & TOSTOP) { in chgstropts()
4839 if (tp->t_modes.c_lflag & TOSTOP) in chgstropts()
5026 DEBUG6(("original iflag = %o\n", tp->t_modes.c_iflag)); in ldterm_adjust_modes()
5027 tp->t_modes.c_iflag = tp->t_amodes.c_iflag & ~(tp->t_dmodes.c_iflag); in ldterm_adjust_modes()
5028 tp->t_modes.c_oflag = tp->t_amodes.c_oflag & ~(tp->t_dmodes.c_oflag); in ldterm_adjust_modes()
5029 tp->t_modes.c_lflag = tp->t_amodes.c_lflag & ~(tp->t_dmodes.c_lflag); in ldterm_adjust_modes()
5032 DEBUG6(("effective iflag = %o\n", tp->t_modes.c_iflag)); in ldterm_adjust_modes()