summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1993-12-13 13:20:50 +0000
committerdg <dg@FreeBSD.org>1993-12-13 13:20:50 +0000
commite6b36ffc84f0f0dde3151c5b29e59f20ef8621cf (patch)
tree0fba097d852cb9f2f3e87adf0a1e16b312808806
parent66c9a4176ae8eb40a1fde0f3fc732cb4978d80cb (diff)
downloadFreeBSD-src-e6b36ffc84f0f0dde3151c5b29e59f20ef8621cf.zip
FreeBSD-src-e6b36ffc84f0f0dde3151c5b29e59f20ef8621cf.tar.gz
set output flags to ttydefault if COMCONSOLE is defined.
-rw-r--r--sys/dev/sio/sio.c6
-rw-r--r--sys/i386/isa/sio.c6
-rw-r--r--sys/isa/sio.c6
3 files changed, 15 insertions, 3 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 194ce00..fd3efc8 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.17 1993/12/09 17:24:19 ache Exp $
+ * $Id: sio.c,v 1.18 1993/12/11 00:36:14 ache Exp $
*/
#include "sio.h"
@@ -662,7 +662,11 @@ bidir_open_top:
* Ache.
*/
tp->t_iflag = 0;
+#ifdef COMCONSOLE
+ tp->t_oflag = TTYDEF_OFLAG;
+#else
tp->t_oflag = 0;
+#endif
tp->t_cflag = CREAD | CS8 | CLOCAL;
tp->t_lflag = 0;
tp->t_ispeed = tp->t_ospeed = comdefaultrate;
diff --git a/sys/i386/isa/sio.c b/sys/i386/isa/sio.c
index 194ce00..fd3efc8 100644
--- a/sys/i386/isa/sio.c
+++ b/sys/i386/isa/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.17 1993/12/09 17:24:19 ache Exp $
+ * $Id: sio.c,v 1.18 1993/12/11 00:36:14 ache Exp $
*/
#include "sio.h"
@@ -662,7 +662,11 @@ bidir_open_top:
* Ache.
*/
tp->t_iflag = 0;
+#ifdef COMCONSOLE
+ tp->t_oflag = TTYDEF_OFLAG;
+#else
tp->t_oflag = 0;
+#endif
tp->t_cflag = CREAD | CS8 | CLOCAL;
tp->t_lflag = 0;
tp->t_ispeed = tp->t_ospeed = comdefaultrate;
diff --git a/sys/isa/sio.c b/sys/isa/sio.c
index 194ce00..fd3efc8 100644
--- a/sys/isa/sio.c
+++ b/sys/isa/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.17 1993/12/09 17:24:19 ache Exp $
+ * $Id: sio.c,v 1.18 1993/12/11 00:36:14 ache Exp $
*/
#include "sio.h"
@@ -662,7 +662,11 @@ bidir_open_top:
* Ache.
*/
tp->t_iflag = 0;
+#ifdef COMCONSOLE
+ tp->t_oflag = TTYDEF_OFLAG;
+#else
tp->t_oflag = 0;
+#endif
tp->t_cflag = CREAD | CS8 | CLOCAL;
tp->t_lflag = 0;
tp->t_ispeed = tp->t_ospeed = comdefaultrate;
OpenPOWER on IntegriCloud