Hi Arseny,
> * Arseny Slobodjuck <nzcl@...> [2004-03-05 01:39:43 +1000]:
>
>> There is no CreateHardLink() on woe32 before w2k. Is it possible to
>> build a binary that would use CreateHardLink when run on w2k or XP
>> and fall back to, say, CopyFile, when run on an earlier OS?
>
> Isn't better to fail to create hardlink on old system ? The patch is
> almost ready. I've put there code for NT4 also (NT4 has no
> CreateHardLink, but able to create it actually).
yes, it's better to signal an error than to do the unintended.
or maybe not. :-)
> The most hard thing for me is cygwin. I have 3 computers with cygwin
> all behaving differently.
yuk. just call unix link() and rely on cygwin to DTRT.
--
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org&gt; <http://www.iris.org.il&gt; <http://www.memri.org/&gt;
<http://www.mideasttruth.com/&gt; <http://www.honestreporting.com&gt;
A PC without Windows is like ice cream without ketchup.

Hello Sam,
> There is no CreateHardLink() on woe32 before w2k.
> Is it possible to build a binary that would use CreateHardLink when run
> on w2k or XP and fall back to, say, CopyFile, when run on an earlier OS?
Isn't better to fail to create hardlink on old system ?
The patch is almost ready. I've put there code for NT4 also (NT4 has
no CreateHardLink, but able to create it actually).
The most hard thing for me is cygwin. I have 3 computers with cygwin all
behaving differently.
--
Best regards,
Arseny