🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #40516

Re: TOS io redirection bugs

#40516
From: Julian Reschke
Date: Tue, 06 Feb 1990 08:02
18 lines
1422 bytes
In article <1990Jan22.173721.12285@stag.UUCP> Dale Schumacher writes:

> On a related point, there has been some movement to correct a long-standing
> inconvenience in TOS regarding stderr.  Handle 2 is connected to the AUX
> port by default, but I support it's use as a redirectable stderr.  To
> force this to work properly, C start-up code should check to see if handle
> 2 is a tty.  If is IS, then Fforce() it to -1 to attach it to the console.
> This is harmless if it already IS attached to the console, and makes sure
> you don't confuse your serial i/o device if it's still attached to AUX.
> If handle 2 IS NOT a tty, leave it alone, since that should indicated that
> someone has redirected it.

But this will fail if you try to redirect handle 2 to PRN:! Correct me if
I'm wrong...

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Julian F. Reschke, Hensenstr. 142, D-4400 Muenster, Tel.: 0251/861241
eMail: ONM07@DMSWWU1A.BITNET
Technical Details
Message-ID: <9001301152.AA03348@freya.dmswwu-ether>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!DMSWWU1A.BITNET!ONM07

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!DMSWWU1A.BITNET!ONM07
From: ONM07@DMSWWU1A.BITNET (Julian Reschke)
Newsgroups: comp.sys.atari.st
Subject: Re:  TOS io redirection bugs
Message-ID: <9001301152.AA03348@freya.dmswwu-ether>
Date: 6 Feb 90 08:02:50 GMT
Sender: usenet@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 18
X-Unparsable-Date: Tue, 30 Jan 90 12:52:46 MEZ