Subject: lib/2703: I think cfmakeraw should reset IMAXBEL.
To: None <gnats-bugs@NetBSD.ORG>
From: None <msaitoh@spa.is.uec.ac.jp>
List: netbsd-bugs
Date: 08/18/1996 03:32:35
>Number:         2703
>Category:       lib
>Synopsis:       I think cfmakeraw should reset IMAXBEL.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 17 15:05:01 1996
>Last-Modified:
>Originator:     SAITOH Masanobu and SHIMIZU Ryo
>Organization:
The University of Electro-Communications
>Release:        1.2_BETA
>Environment:
System: NetBSD ifree.spa.is.uec.ac.jp 1.2_BETA NetBSD 1.2_BETA (IFREE) #12: Mon Jul 1 01:41:30 JST 1996 msaitoh@ifree.spa.is.uec.ac.jp:/var/sources/src/sys/arch/i386/compile/IFREE i386


>Description:
	cfmakeraw(3) keeps IMAXBEL bit.
	I believe cfmakeraw should reset IMAXBEL.
>How-To-Repeat:
>Fix:
	Apply following patch:

--- cfmakeraw.c.orig	Sun Aug 18 03:20:48 1996
+++ cfmakeraw.c	Sun Aug 18 03:21:16 1996
@@ -51,7 +51,7 @@
 cfmakeraw(t)
 	struct termios *t;
 {
-	t->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
+	t->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON|IMAXBEL);
 	t->c_oflag &= ~OPOST;
 	t->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
 	t->c_cflag &= ~(CSIZE|PARENB);

>Audit-Trail:
>Unformatted: