Path: 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 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)