Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 1996 11:30:01 -0700 (PDT)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs
Subject:   Re: bin/1598: tip leaves OPOST set on controlling terminal
Message-ID:  <199609111830.LAA20183@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/1598; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: cedar!jeremy@beaver.cs.washington.edu, FreeBSD-gnats-submit@freebsd.org
Cc:  Subject: Re: bin/1598: tip leaves OPOST set on controlling terminal
Date: Thu, 12 Sep 1996 04:18:40 +1000

 >*** tip.c-orig	Tue Sep 10 23:37:04 1996
 >--- tip.c	Tue Sep 10 23:37:24 1996
 >***************
 >*** 223,228 ****
 >--- 223,229 ----
 >  	ctermios.c_iflag = (ISTRIP|IXON|BRKINT);
 >  	ctermios.c_lflag = (PENDIN|IEXTEN|ISIG|ECHOE);
 >  #endif
 >+ 	ctermios.c_oflag = 0;
 >  	ctermios.c_cflag = (CLOCAL|HUPCL|CREAD|CS8);
 >  	ctermios.c_cc[VINTR] = 	ctermios.c_cc[VQUIT] = -1;
 >  	ctermios.c_cc[VSUSP] = ctermios.c_cc[VDSUSP] = ctermios.c_cc[VDISCARD] =
 
 Every line in this is buggy.  Setting flags other than the POSIX
 ones gives undefined behaviour.  In practice, it may clear CRTSCTS.
 -1 should be _POSIX_VDISABLE.  It works because (cc_t)-1 happens to
 equal _POSIX_VDISABLE under FreeBSD.
 
 Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609111830.LAA20183>