Mail Archives: djgpp-workers/2001/07/14/03:09:24
> From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
> Date: Sat, 14 Jul 2001 11:26:55 +1000
>
> I had a quick test on the Win2K box and performed the following quickn test:
> 1) Setup a symlink "ln -s d:\djgpp\bin\zip.exe d:\djgpp\bin\z.exe"
> 2) Execute zip.exe to ensure that the help was displayed
> 3) Execute z (or z.exe) and it worked the same as executing zip.exe
> 4) Files from the DJGPP bin directory were:
>
> D:\djgpp\bin>ls -la --color z*.*
> -rwxr-xr-x 1 dosuser root 2048 Jul 14 11:20 z.exe
> -rwxr-xr-x 1 dosuser root 86868 Dec 24 1999 zip.exe
>
> The ln.exe file is:
> -rwxr-xr-x 1 dosuser root 133632 May 26 2000 ln.exe
>
> Is the test above correct? Are there any other tests I should do to check
> that symlinks work fully under Win2K? Where do I find these tests?
In addition to using ln.exe built with CVS libc, as Martin said, you
should test this with files that are not programs. Functions such as
open, opendir, remove, rename, etc. should DTRT with symlinks.
Compiling and linking a bunch of files in a directory that is a
symlink might test quite a few of these functions. In fact, you could
try making the DJGPP installation directory be a symlink, and see if
anything breaks, but that requires that you rebuild _everything_ with
CVS libc.
Note that invoking programs that are symlinks (in the v2.04 sense of
that) will only work from a DJGPP program compiled with CVS libc.
DOS, of course, knows nothing about symlinks.
- Raw text -