🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.usg
Article #13

Another sxt bug: VAX console

#13
From: Joseph S. D. Yao
Date: Wed, 25 Dec 1985 06:49
52 lines
2231 bytes
The sxt driver does not recognise the VAX console as a tty device,
and consequently does not allow it to be associated with an sxt.
This is because it isn't really a tty device -- it is a separate
processor with the console terminal and boot load device as its
peripherals.  Setting up the console to resemble a tty device is
not a good solution, as that means that the console boot device
then also gets treated as a tty device.  The following is a diff
of the change made here, annotated since there are different
versions of the SXT driver.  Basically, the change is to modify
the tty check on an sxtioctl SXTIOCLINK so that before returning
an error it checks whether the offending device is in fact the
console.

==========
6a7,9
3: /*
4:  * SXT --  Driver for shell layers
5:  */
6: 
> #ifndef	lint
>   static char SCCS_id[] = "%W%";
> #endif	lint
7: 
30a34,36
29: #include "sys/sxt.h"
30: 
> #define CONSOLE	0	/* Device number of console. */
> 
> extern struct tty con_tty;
31: 
249,250c255,259
214: sxtioctl(dev, cmd, arg, mode)
215: {
	...
243:	case SXTIOCLINK:
244:		if (arg > MAXPCHAN || arg < 1) {
245:			u.u_error = EINVAL;
246:			break;
247:		}
248:		if(  (tp = cdevsw[major(u.u_ttyd)].d_ttys) == NULL) {
< 			u.u_error = ENOTTY;
< 			break;
---
> 			if (u.u_ttyd != CONSOLE) {
> 				u.u_error = ENOTTY;
> 				break;
> 			}
> 			tp = &con_tty;
251: 		}
-- 

	Joe Yao		hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP}
Technical Details
Message-ID: <141@hadron.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!ucbvax!ucdavis!lll-crg!seismo!rlgvax!hadron!jsdy
References: <133@metro.oz>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hadron.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!ucbvax!ucdavis!lll-crg!seismo!rlgvax!hadron!jsdy
From: jsdy@hadron.UUCP (Joseph S. D. Yao)
Newsgroups: net.bugs.usg
Subject: Another sxt bug: VAX console
Message-ID: <141@hadron.UUCP>
Date: Wed, 25-Dec-85 01:49:22 EST
Article-I.D.: hadron.141
Posted: Wed Dec 25 01:49:22 1985
Date-Received: Thu, 26-Dec-85 04:01:16 EST
References: <133@metro.oz>
Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao)
Organization: Hadron, Inc., Fairfax, VA
Lines: 52
Keywords: sxt, VAX, console, shl
Summary: Vanilla sxt can't be used from VAX console