delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/01/12/03:53:09

Date: Tue, 12 Jan 1999 10:51:51 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Str|mberg <ams AT ludd DOT luth DOT se>
cc: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Subject: Re: FAT32
In-Reply-To: <199901111754.SAA02061@father.ludd.luth.se>
Message-ID: <Pine.SUN.3.91.990112105129.15876F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

On Mon, 11 Jan 1999, Martin Str|mberg wrote:

> Here's a hand typed patch for src/libc/dos/io/_open.c:
>  if(use_lfn) {
>    r.x.ax = 0x716c;
> -  r.x.bx = oflag & 0xff;
> +  r.x.bx = (oflag & 0xff) | 0x1000;
>    r.x.dx = 1;                        /* Open existing file */

This is too simplistic.  FAT32 is supported even if LFN is disabled,
but this patch disables FAT32 support in DJGPP in those cases.

The real test should look at the DOS version number (the first one
which supported FAT32 was 7.10, I think).

> It's hopefully evident so you can apply by hand if I misstyped
> somehow. This makes _open to always use the extended bit in the LFN
> case. Please try it out.

It should be tested on as many weird filesystems as possible, like
CD-ROMs, networked drives, etc.

> If so, no more trying to detect FAT32 is necessary.

The detcetion function is still a useful addition, IMHO.

- Raw text -


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