Subject: Recent changes in com handling?
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Robert L. Shady <rls@zeus.id.net>
List: current-users
Date: 04/20/1994 20:29:12
I sent a message on this already, but it has gone unanswered... 

I normally apply the following patches to get my system to work using N-8-1
for the com ports.  After recently upgrading to the new -current, this does
not seem to work anymore and I can't trace down why.  Using local terminals
directly connected to the com port, and the following lines in my /etc/ttys
file, the local terminals work fine, but the modems lines don't.  After
tracing the action on the modem lines, it looks like the defaults are set
until there is a carrier detected, then it switches to 7-E-1.


Extracted from /etc/ttys:

tty00	"/usr/libexec/getty std.38400"	vt100 on rtscts
tty01	"/usr/libexec/getty std.38400"	vt100 on rtscts
tty02	"/usr/libexec/getty std.9600"	vt100 on local softcar
tty03	"/usr/libexec/getty std.38400"	vt100 off


I've noticed the following change in the recent kernels, quoted from "CHANGES"

	add information about "np" to gettytab(5). (cgd)

Not sure if somehow this is causing problems, since I have been using the "np"
flag in /etc/gettytab for quite some time, and it SEEMED to work fine before.

--- Start of Patch #1 ---

In the directory: /usr/src/libexec/getty

*** main.c.orig	Tue Apr  5 18:43:47 1994
--- main.c	Tue Apr  5 18:49:26 1994
***************
*** 264,270 ****
--- 264,272 ----
  				tmode.sg_flags &= ~LCASE;
  			ioctl(0, TIOCSETP, &tmode);
  			ioctl(0, TIOCSLTC, &ltc);
+ /*
  			ioctl(0, TIOCLSET, &allflags);
+  */
  			signal(SIGINT, SIG_DFL);
  			for (i = 0; environ[i] != (char *)0; i++)
  				env[i] = environ[i];

--- End of Patch #1 ---

--- Start of Path #2 ---

In the directory: /usr/src/sys/sys

*** ttydefaults.h.orig	Tue Apr  5 18:41:55 1994
--- ttydefaults.h	Tue Apr  5 18:42:49 1994
***************
*** 49,54 ****
  #define TTYDEF_LFLAG	(ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
! #define TTYDEF_CFLAG	(CREAD | CS7 | PARENB | HUPCL)
! #define TTYDEF_SPEED	(B9600)
  
--- 49,54 ----
  #define TTYDEF_LFLAG	(ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
! #define TTYDEF_CFLAG	(CREAD | CS8 | HUPCL | CRTSCTS)
! #define TTYDEF_SPEED	(B38400)
  

--- End of Patch #2 ---


------------------------------------------------------------------------------