From 41051c44b5f8cd2912590dc64a0a63e51651124c Mon Sep 17 00:00:00 2001 From: bde Date: Mon, 31 Jul 1995 22:48:46 +0000 Subject: Obtained from: partly from ancient patches of mine via 1.1.5 Handle MDMBUF a little better. Prepare to handle 4 different kinds of output flow control. --- sys/kern/tty.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/kern/tty.c') diff --git a/sys/kern/tty.c b/sys/kern/tty.c index f271101..7db76e1 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)tty.c 8.8 (Berkeley) 1/21/94 - * $Id: tty.c,v 1.63 1995/07/31 21:01:23 bde Exp $ + * $Id: tty.c,v 1.64 1995/07/31 21:43:37 bde Exp $ */ /*- @@ -1297,11 +1297,15 @@ ttymodem(tp, flag) if (ISSET(tp->t_state, TS_CARR_ON) && ISSET(tp->t_cflag, MDMBUF)) { /* * MDMBUF: do flow control according to carrier flag + * XXX TS_CAR_OFLOW doesn't do anything yet. TS_TTSTOP + * works if IXON and IXANY are clear. */ if (flag) { + CLR(tp->t_state, TS_CAR_OFLOW); CLR(tp->t_state, TS_TTSTOP); ttstart(tp); - } else if (!ISSET(tp->t_state, TS_TTSTOP)) { + } else if (!ISSET(tp->t_state, TS_CAR_OFLOW)) { + SET(tp->t_state, TS_CAR_OFLOW); SET(tp->t_state, TS_TTSTOP); #ifdef sun4c /* XXX */ (*tp->t_stop)(tp, 0); -- cgit v1.1