summaryrefslogtreecommitdiffstats
path: root/sys/dev/cy
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-07-29 08:33:13 +0000
committerbde <bde@FreeBSD.org>1995-07-29 08:33:13 +0000
commit76510cf9d286e2b89a8cdc6664328fd420bcd4c4 (patch)
tree3f2510e6e1376b5f48c1fbe57f418186245fe80b /sys/dev/cy
parent598027ae378783940e338107ba8df608875baf32 (diff)
downloadFreeBSD-src-76510cf9d286e2b89a8cdc6664328fd420bcd4c4.zip
FreeBSD-src-76510cf9d286e2b89a8cdc6664328fd420bcd4c4.tar.gz
Don't let IXOFF or ECHONL stop the setting of TS_CAN_BYPASS_L_RINT. IXOFF
is handled at a low level, and ECHONL only applies if ICANON is set, although tty.c sometimes bogusly applies it when ICANON isn't set.
Diffstat (limited to 'sys/dev/cy')
-rw-r--r--sys/dev/cy/cy.c14
-rw-r--r--sys/dev/cy/cy_isa.c14
2 files changed, 12 insertions, 16 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c
index 1bca887..bd8d7a49 100644
--- a/sys/dev/cy/cy.c
+++ b/sys/dev/cy/cy.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.11 1995/07/22 16:44:46 bde Exp $
+ * $Id: cy.c,v 1.12 1995/07/29 04:05:53 bde Exp $
*/
#include "cy.h"
@@ -2367,16 +2367,14 @@ disc_optim(tp, t, com)
/*
* XXX can skip a lot more cases if Smarts. Maybe
- * (IGNCR | ISTRIP | IXOFF | IXON) in c_iflag. But perhaps we
+ * (IGNCR | ISTRIP | IXON) in c_iflag. But perhaps we
* shouldn't skip if (TS_CNTTB | TS_LNCH) is set in t_state.
*/
- if (!(t->c_iflag & (ICRNL | IGNCR | IMAXBEL | INLCR | ISTRIP
- | IXOFF | IXON))
+ if (!(t->c_iflag & (ICRNL | IGNCR | IMAXBEL | INLCR | ISTRIP | IXON))
&& (!(t->c_iflag & BRKINT) || (t->c_iflag & IGNBRK))
- && (!(t->c_iflag & PARMRK) ||
- (t->c_iflag & (IGNPAR|IGNBRK)) == (IGNPAR|IGNBRK))
- && !(t->c_lflag & (ECHO | ECHONL | ICANON | IEXTEN | ISIG
- | PENDIN))
+ && (!(t->c_iflag & PARMRK)
+ || (t->c_iflag & (IGNPAR | IGNBRK)) == (IGNPAR | IGNBRK))
+ && !(t->c_lflag & (ECHO | ICANON | IEXTEN | ISIG | PENDIN))
&& linesw[tp->t_line].l_rint == ttyinput)
tp->t_state |= TS_CAN_BYPASS_L_RINT;
else
diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c
index 1bca887..bd8d7a49 100644
--- a/sys/dev/cy/cy_isa.c
+++ b/sys/dev/cy/cy_isa.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.11 1995/07/22 16:44:46 bde Exp $
+ * $Id: cy.c,v 1.12 1995/07/29 04:05:53 bde Exp $
*/
#include "cy.h"
@@ -2367,16 +2367,14 @@ disc_optim(tp, t, com)
/*
* XXX can skip a lot more cases if Smarts. Maybe
- * (IGNCR | ISTRIP | IXOFF | IXON) in c_iflag. But perhaps we
+ * (IGNCR | ISTRIP | IXON) in c_iflag. But perhaps we
* shouldn't skip if (TS_CNTTB | TS_LNCH) is set in t_state.
*/
- if (!(t->c_iflag & (ICRNL | IGNCR | IMAXBEL | INLCR | ISTRIP
- | IXOFF | IXON))
+ if (!(t->c_iflag & (ICRNL | IGNCR | IMAXBEL | INLCR | ISTRIP | IXON))
&& (!(t->c_iflag & BRKINT) || (t->c_iflag & IGNBRK))
- && (!(t->c_iflag & PARMRK) ||
- (t->c_iflag & (IGNPAR|IGNBRK)) == (IGNPAR|IGNBRK))
- && !(t->c_lflag & (ECHO | ECHONL | ICANON | IEXTEN | ISIG
- | PENDIN))
+ && (!(t->c_iflag & PARMRK)
+ || (t->c_iflag & (IGNPAR | IGNBRK)) == (IGNPAR | IGNBRK))
+ && !(t->c_lflag & (ECHO | ICANON | IEXTEN | ISIG | PENDIN))
&& linesw[tp->t_line].l_rint == ttyinput)
tp->t_state |= TS_CAN_BYPASS_L_RINT;
else
OpenPOWER on IntegriCloud