The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: sms@2BSD.COM (Steven M. Schultz)
Subject: [pups] BSD 2.11 on an 11/73 + RD54
Date: Mon, 9 Sep 2002 17:03:49 -0700 (PDT)	[thread overview]
Message-ID: <200209100003.g8A03nA13896@moe.2bsd.com> (raw)

Hi -

	A few days ago the "getty plays parity games" topic came up
	again.

	I've been thinking about it and looked at the kernel a bit more.
	7e1 is rather firmly in place and I'm not sure turning the 'console'
	(kl/dl) driver into a "LITOUT only" one is a 100% correct way to
	go (the other drivers such as dz, dh, etc remain 7e1 output by
	default).

	Here's a patch for getty/main.c which I think will do what's 
	wanted without having to modify the kernel:

------------snip-------------
*** main.c.dist	Mon Sep  9 16:52:24 2002
--- main.c	Mon Sep  9 16:56:55 2002
***************
*** 384,391 ****
  
  	c = cc;
  	c |= partab[c&0177] & 0200;
! 	if (OP)
! 		c ^= 0200;
  	if (!UB) {
  		outbuf[obufcnt++] = c;
  		if (obufcnt >= OBUFSIZ)
--- 384,401 ----
  
  	c = cc;
  	c |= partab[c&0177] & 0200;
! /*
!  * If "any" parity do nothing otherwise set even parity unless OP is
!  * set.  Since 'ap' is set in the "default" entry of /etc/gettytab this
!  * has the effect of disabling parity on output without having to change
!  * the kernel.
! */
! 	if (!AP) {
! 	   c |= partab[c & 0177] & 0200;
! 	   if (OP)
! 	      c ^= 0200;
! 	}
! 
  	if (!UB) {
  		outbuf[obufcnt++] = c;
  		if (obufcnt >= OBUFSIZ)
--------------snip---------------

	What this does is check the "AP" (AnyParity) flag from /etc/gettytab
	and if NOT set then do the 'even' (or 'odd' if OP is set) parity.

	Since 'ap' is present in the default line of /etc/gettytab the above
	block effectively becomes a no-op unless /etc/gettytab is explicitly
	set for 'ep' or 'op'.

	If someone could test this and report back I'd appreciate it.

	Thanks.

	Steven Schultz
	sms at 2bsd.com



             reply	other threads:[~2002-09-10  0:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-10  0:03 Steven M. Schultz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-09-08 15:06 Fred N. van Kempen
2002-09-09  6:57 ` Tobias Russell
2002-09-08 14:24 Tobias Russell
2002-09-08 17:35 ` Tom Ivar Helbekkmo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200209100003.g8A03nA13896@moe.2bsd.com \
    --to=sms@2bsd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).