Mail Archives: djgpp-workers/1999/01/12/03:53:09
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 -