🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #24

Re: Dupping FileHandles && Run

#24
From: Jan Hendrikx
Date: Tue, 13 Jun 1989 14:21
26 lines
1700 bytes
In article <8906122232.AA02030@hermes.Berkeley.EDU> dillon@HERMES.BERKELEY.EDU (Matt Dillon) writes:
>	Yes, RUN and NEWCLI attempt to Open("*", 1005) by sending a DOS
>open packet with the filename '*' to the ConsoleHandler (or whatever
>the field is called) of the Process structure.  You cannot duplicate this
>feat by Open("*",1005) as that is directed to the filesystem... you need
>to send the packet manually.

Would this special casing of the * name not be done by Open(). You see,
if you use the (Commodore-supplied, BCPL, non-Arp) Type command to
type the file *, it really reads from the console window.

So I'd think that the * is seen by Open(), and then directed to the
default console handler for that Process.

>	The console device understands '*'.  It knows which console to
>duplicate because each instance of the console device is a separate
>task (and this a different address for pr_Console[Task/Handler??]).  
>
>	I agree that we need a *real* Dup() call.

Me too. We need to get rid of the entire concept of pr_ConsoleTask,
since that is why you need to RUNBACK things from CLIs.

>					-Matt

-Olaf Seibert (using Jan's account)
Technical Details
Message-ID: <354@kunivv1.sci.kun.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!hp4nl!kunivv1!janhen
References: <8906122232.AA02030@hermes.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!hp4nl!kunivv1!janhen
From: janhen@kunivv1.sci.kun.nl (Jan Hendrikx)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Dupping FileHandles && Run
Summary: Isn't this a special case in Open()?
Message-ID: <354@kunivv1.sci.kun.nl>
Date: 13 Jun 89 14:21:28 GMT
References: <8906122232.AA02030@hermes.Berkeley.EDU>
Reply-To: janhen@wn2.UUCP (Jan Hendrikx)
Organization: University of Nijmegen, The Netherlands
Lines: 26