Date: Sun, 6 Jul 1997 17:32:55 +0300 (IDT) From: Eli Zaretskii To: Fred Smith cc: djgpp AT delorie DOT com Subject: Re: stubify/stubedit In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 4 Jul 1997, Fred Smith wrote: > I would like to create a "link" using stubify/stubedit which passes > certain parameters to the linked-to program in addition to the argv[0] > which it now supports. There does not at this time appear to be any way > to do that. > > Would/could the gurus who understand those programs give me a hint > as to whether it is even feasible, were I to undertake to do it myself? You are talking about alias, not a symlink. A symlink is just a pointer to another file, it doesn't change anything about the parameters passed to the program that gets invoked. DJGPP only lets you specify the value of argv[0] that will be passed to the program. I don't think you can easily change this, since it requres numerous patches in the stub, the stubinfo structure and the library functions that invoke child programs. It's better to use an alias facility, or create a batch file. Alternatively, write a small helper program that will add the additional parameters and invoke the other program.