Mail Archives: djgpp-workers/2001/08/13/15:26:02
> > How much code actually opens devices (nul,con,aux,prn) instead of using
> > pre-opened handles? When they do, what calls need to be supported?
>
> Some programs reopen CON (Less is one, IIRC). In the case of Less,
> that handle is fed to `select', and `select' uses every trick in our
> bag to do its thing ;-).
>
> There's also the FSEXT feature which opens NUL and then dup's its
> handle whenever it needs one more handle.
>
> But it's true that there are not many programs which reopen devices.
The reason I'm asking is that this may be relatively hard to fix. If
we fixed all the rest of the known issues other than devices, how much
would break? Should we fix everything else first and defer this? Or
work on devices and slow down getting the other items fixed?
For example, I have a protoype _open() which uses the SFN from 7160c1
and this allows us to get the disk number correctly, but breaks devices
without more special code.
- Raw text -