Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!mcvax!kth!draken!tut!santra!tukki!sarnila From: sarnila@tukki.jyu.fi (Pekka Sarnila) Newsgroups: comp.sys.atari.st Subject: Re: GEMDOS Extended Argument Standard Keywords: dlibs, xargs, argv, gemdos, argument passing Message-ID: <558@tukki.jyu.fi> Date: 30 Mar 89 09:25:47 GMT References: <1405@atari.UUCP> Reply-To: sarnila@tukki.jyu.fi (Pekka Sarnila) Organization: University of Jyvaskyla, Finland Lines: 21 Would it be totaly unthinkable to make GEMDOS Pexec to support some more intelligent parameter passing. What I would propose: if lenght is say FF the last long (after null) would contain the pointer to unix like parameter structure. In that case Pexec would count the lenght of that structure and allocate that much more space and copy (and reloc pointers) it to the new processes memory area. Or programms that expect unix like parameter would have different magic number from which Pexec would know to treat it differently. Startup would just pass the pointer then to main(). (This is what I do in my GEMDOS enhancer) -- ------------------------------------------------------------------- Pekka Sarnila, University of Jyvaskyla Finland sarnila@tukki.jyu.fi -------------------------------------------------------------------