Mail Archives: djgpp/1996/04/14/03:09:32
On Fri, 12 Apr 1996, Malcolm Taylor wrote:
> >where DJGPP can run. (You could think that DOS calls are also a solution,
> >but some DPMI servers will GP fault if you try to access an empty drive
> >with a DOS call, so you should hook Int 24h if you want to prevent this.)
>
> Really? Which DPMI providers do this? I use a findfirst on the drive
> looking for a volume label, which of course fails with no disk in the
> drive. Would this cause a GP fault on some DPMI providers?
Some versions of QDPMI used to do that. That is the reason for the code
in `getmntent' that uses a BIOS call to see whether there is a disk in a
drive before issuing any DOS calls. I was also told that empty CD-ROM
drives sometimes make such trouble (but I don't remember under which DPMI
host), so the latest version of `getmntent' checks this out too.
- Raw text -