Date: Sun, 14 Apr 1996 09:56:15 +0200 (IST) From: Eli Zaretskii To: Malcolm Taylor Cc: djgpp AT delorie DOT com Subject: Re: Detecting drives In-Reply-To: <4kkbrm$1rk@news.manawatu.gen.nz> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.