Fixed handling of BREAK in input. BREAK was not being converted into an

escape sequence in the `-ignbrk -brkint parmrk' case.

Found by:	NIST-PCTS
This commit is contained in:
Bruce Evans 1998-12-17 18:43:08 +00:00
parent 7cfc9b133e
commit f9828cced4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41905
3 changed files with 21 additions and 9 deletions

View File

@ -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.77 1998/12/17 17:40:13 bde Exp $
* $Id: cy.c,v 1.78 1998/12/17 18:18:06 bde Exp $
*/
#include "opt_compat.h"
@ -2068,8 +2068,12 @@ comparam(tp, t)
opt |= CD1400_COR4_INLCR;
#endif
if (iflag & IGNBRK)
opt |= CD1400_COR4_IGNBRK;
if (!(iflag & BRKINT))
opt |= CD1400_COR4_IGNBRK | CD1400_COR4_NOBRKINT;
/*
* The `-ignbrk -brkint parmrk' case is not handled by the hardware,
* so only tell the hardware about -brkint if -parmrk.
*/
if (!(iflag & (BRKINT | PARMRK)))
opt |= CD1400_COR4_NOBRKINT;
#if 0
/* XXX using this "intelligence" breaks reporting of overruns. */

View File

@ -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.77 1998/12/17 17:40:13 bde Exp $
* $Id: cy.c,v 1.78 1998/12/17 18:18:06 bde Exp $
*/
#include "opt_compat.h"
@ -2068,8 +2068,12 @@ comparam(tp, t)
opt |= CD1400_COR4_INLCR;
#endif
if (iflag & IGNBRK)
opt |= CD1400_COR4_IGNBRK;
if (!(iflag & BRKINT))
opt |= CD1400_COR4_IGNBRK | CD1400_COR4_NOBRKINT;
/*
* The `-ignbrk -brkint parmrk' case is not handled by the hardware,
* so only tell the hardware about -brkint if -parmrk.
*/
if (!(iflag & (BRKINT | PARMRK)))
opt |= CD1400_COR4_NOBRKINT;
#if 0
/* XXX using this "intelligence" breaks reporting of overruns. */

View File

@ -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.77 1998/12/17 17:40:13 bde Exp $
* $Id: cy.c,v 1.78 1998/12/17 18:18:06 bde Exp $
*/
#include "opt_compat.h"
@ -2068,8 +2068,12 @@ comparam(tp, t)
opt |= CD1400_COR4_INLCR;
#endif
if (iflag & IGNBRK)
opt |= CD1400_COR4_IGNBRK;
if (!(iflag & BRKINT))
opt |= CD1400_COR4_IGNBRK | CD1400_COR4_NOBRKINT;
/*
* The `-ignbrk -brkint parmrk' case is not handled by the hardware,
* so only tell the hardware about -brkint if -parmrk.
*/
if (!(iflag & (BRKINT | PARMRK)))
opt |= CD1400_COR4_NOBRKINT;
#if 0
/* XXX using this "intelligence" breaks reporting of overruns. */