Date: Tue, 12 Jan 1999 10:51:51 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Martin Str|mberg cc: DJGPP-WORKERS Subject: Re: FAT32 In-Reply-To: <199901111754.SAA02061@father.ludd.luth.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.