Mail Archives: djgpp/2001/08/09/19:30:05
> > Could you provide more details on this ?
I could, but I'd rather be fixing them :-)
> 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.
Eli's mostly correct here, but the actual reason why >/dev/null fails is
because a write of zero bytes to NUL or CON fails under Windows 2000 if
the handle was opened with an LFN function but works just fine if opened
with a standard DOS function. It's little obscure bugs like this that are
the problem. To try and work around the problem I tried to find out if
the handle was a character device and then found the IOCTL routines
broken too.
When we make changes we must make sure it doesn't break things that work
under current LFN environments.
- Raw text -