www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/14/03:09:32

Date: Sun, 14 Apr 1996 09:56:15 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Malcolm Taylor <malcolm AT manawatu DOT gen DOT nz>
Cc: djgpp AT delorie DOT com
Subject: Re: Detecting drives
In-Reply-To: <4kkbrm$1rk@news.manawatu.gen.nz>
Message-Id: <Pine.SUN.3.91.960414095322.1640Y-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019