Mail Archives: djgpp/2001/08/09/16:00:22
Wojciech Galazka wrote:
>
> Charles Sandmann wrote in <3b71da94 DOT sandmann AT clio DOT rice DOT edu>...
> [...]
> >2) Many bugs in the long file name support. A quick workaround is to
> > set lfn=n if something doesn't work right. Example: rename to the
> > same name library call fails (strip/ar fail). Touch fails. You can
> > always set it back via lfn=
>
> Could you provide more details on this ?
There are too many details ;-)
In a nutshell, the LFN-aware functions are not to be trusted on W2K. In
particular, handles created by an LFN variant of _open fail some important
functions of Int 21h that take a file handle, such as functions 5700h and
5701h, and all subfunctions of function 44h (IOCTL) seem to return zero
instead of valid info. The latter problem is the reason why ">/dev/null"
doesn't work on W2K.
In other words, the LFN API implementation introduced with W2K is a can of
worms, and it will take time to work around that. Wherever you take a good
look, you find subtle misfeatures and bugs.
- Raw text -