Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: net.micro.amiga Subject: Re: An Idea for an ambitious programmer. You gotta be kidding. Message-ID: <8610090633.AA05968@cory.Berkeley.EDU> Date: Thu, 9-Oct-86 02:33:31 EDT Article-I.D.: cory.8610090633.AA05968 Posted: Thu Oct 9 02:33:31 1986 Date-Received: Thu, 9-Oct-86 06:33:15 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: University of California at Berkeley Lines: 31 >From: higgin@cbmvax.cbm.UUCP (Paul Higginbottom) >The exec() and fexec() family of functions are supplied as part of Manx's >Aztec C library. They are "trivial" compared to a fork() function. > >The big problem would be trying to get the new "clone" of the program to >start executing in the same "state" as the original. This would mean >(as far as I can tell) copying stacks (and adjusting addresses, ugh), >initializing all the task stuff appropriately to the original... doesn't >sound easy. To get the same program running from the BEGINING isn't hard >by using fexecv(). If the code were re-entrant, you could simply copy stacks and global data areas... which leaves one problem: There is no way on the amiga to duplicate generic file handles. So much for fork. Besides, we are having enough trouble with a simple fexec. *really* is there anybody at all over at amiga who knows how to get BCPL programs to work? ---------- One thing I would like to do is startup a CLI window WITH a command (but still interactive). (E.G. I want to startup a CLI window with my SHELL in it) -Matt Update On Shell: Sorry folks, no go with getting it to run from the workbench.