Mail Archives: djgpp-workers/1999/09/13/07:51:07
On Sat, 11 Sep 1999, Laurynas Biveinis wrote:
> If we decide to symlink executables like regular files
> I have a question for those who know DJGPP better -
> where in the library I should intercept symlinks to
> exes and replace argv[0] of called programs to symlink
> names ?
The function direct_exec_tail in src/libc/dos/process/dosexec.c seems
to be the right place. But there are others: whenever dosexec.c
invokes a non-DJGPP program, like COMMAND.COM, you need to resolve
links in program names as well.
> About symlink status - almost done, only exes, debugging
> and recompiling lots and lots of packages left.
It would be interesting to know how much does it slow down programs
like GNU Find and GNU Ls that stat files a lot.
- Raw text -