delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/06/10:33:21

Date: Sun, 6 Jul 1997 17:32:55 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Fred Smith <fredex AT fcshome DOT stoneham DOT ma DOT us>
cc: djgpp AT delorie DOT com
Subject: Re: stubify/stubedit
In-Reply-To: <ECrsAA.9oJ@fcshome.stoneham.ma.us>
Message-ID: <Pine.SUN.3.91.970706173234.8624H-100000@is>
MIME-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019