| delorie.com/archives/browse.cgi | search |
| Date: | Sat, 06 Jan 2001 12:41:56 +0200 |
| From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | "Norberto Alfredo Bensa" <ceo AT nbensacomputers DOT com> |
| Message-Id: | <1438-Sat06Jan2001124155+0200-eliz@is.elta.co.il> |
| X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 |
| CC: | ams AT ludd DOT luth DOT se, djgpp-workers AT delorie DOT com |
| In-reply-to: | <OE57H69IsfV89a3KHtF00003709@hotmail.com> |
| (ceo AT nbensacomputers DOT com) | |
| Subject: | Re: Fw: Patch for statfs.c |
| References: | <200101051844 DOT TAA15180 AT father DOT ludd DOT luth DOT se> <OE57H69IsfV89a3KHtF00003709 AT hotmail DOT com> |
| Reply-To: | djgpp-workers AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp-workers AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: "Norberto Alfredo Bensa" <ceo AT nbensacomputers DOT com>
> Date: Fri, 5 Jan 2001 21:48:08 -0300
>
> I've moved the CD-ROM calls down to the "one_more_try" part of the code,
> just before 213600.
[snip]
> if (0x07 <= dos_version /* Is FAT32 supported? */
> && 0x0a != dos_version) /* OS/2 doesn't support FAT32 */
> {
> /* 217303 - Win9x - Get Extended Free Drive Space:
Are we sure that CD-ROMs and DVDs support FAT32 calls? If not, I
think we should not issue FAT32 calls for CDs and DVDs. At least for
a CD, you can know that it's a CD with this snippet:
> regs.x.ax = 0x150b; /* is this drive supported by CD-ROM driver? */
> regs.x.cx = drive_number;
> __dpmi_int(0x2f, ®s);
> if ((regs.x.flags & 1) == 0 && regs.x.bx == 0xadad && regs.x.ax != 0)
> {
But it should be issued _before_ you try FAT32 calls on this drive.
It is IMHO a bad idea to call low-level functions on drives that
aren't supposed to support them.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |