Mail Archives: djgpp/1996/10/15/10:01:52
On Tue, 15 Oct 1996, A.Appleyard wrote:
> > ... Do you maybe want to know if there is drive A: even if it is empty (i.e.
> > without a floppy inside)?
>
> That seems sensible. A program complaining "There is no drive A:" when it
> should complain "Drive A: is empty or out of order" is wrong and confusing;
That's not what `getmntent' is for; it is for reporting the _filesystems_
mounted on different devices. An empty drive by definition doesn't have
any filesystem on it, so it is not reported.
And btw, drive A: is always there on PCs, so you don't need to test
anything to know whether it is available.
> and leaving it to DOS's usual moan about "Abort? Ignore? [etc]" often messes
> up a carefully worked-out screen layout.
`getmntent' never causes such a message. In fact, most DPMI hosts out
there (including CWSDPMI) won't ever let DOS pop such a message, so you
will rarely see it at all in DJGPP v2.
- Raw text -