Re: EMX runtime and command line arguments

<[email protected]> Tue, 13 Jan 2004 18:44:51 +0100
Newsgroups gmane.comp.ide.emx.devel
Organization http://freemail.web.de/
Message-ID <[email protected]>
Ily wrote:

> There is no "original argv".  The OS/2 model of IPC between the parent
> and the child is not argc/argv, as on Unix, but a pair of strings:
> "program name" and "the rest of the command line" (actually, there may
> be more strings than 2 - this is a very weak spot in the OS/2 design).

I have to correct the two of us: if an emx program calls an emx program,
the argv elements are passed separately and no parsing will be done.

> The original pair of strings *might* be available through the PIB - but it may
> be that it is written over by EMX (I doubt this, but I'm not completely sure -
> and do not rememeber).

No, emx doesn't overwrite the original command line.

Eberhard