delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2005/04/01/00:02:38

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10504010502.AA15452@clio.rice.edu>
Subject: RE: DJGPP v2.04 Bugs - suggested patch
To: djgpp-workers AT delorie DOT com
Date: Thu, 31 Mar 2005 23:02:47 -0600 (CST)
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
X-Virus-Scanned: by amavis-20030616-p6 at mail.rice.edu
X-DCC--Metrics: handler2.mail.rice.edu 1066; Body=1 Fuz1=1 Fuz2=1
Reply-To: djgpp-workers AT delorie DOT com

*** \v204\djgpp\src\libc\dos\io\_open.c	Mon Oct 21 00:28:28 2002
--- d:\_open.c	Thu Mar 31 00:15:32 2005
***************
*** 86,102 ****
      r.x.si = __tb_offset;
    } else {
-     if (7 <= _osmajor && _osmajor < 10) {
-       r.x.ax = 0x6c00;
-       r.x.bx = (oflag & 0xff) | 0x1000; /* 0x1000 is FAT32 extended size. */
-       /* FAT32 extended size flag doesn't help on WINDOZE 4.1 (98). It
- 	 seems it has a bug which only lets you create these big files
- 	 if LFN is enabled. */
-       r.x.dx = 1;                        /* Open existing file */
-       r.x.si = __tb_offset;
-     } else {
        r.h.ah = 0x3d;
        r.h.al = oflag;
        r.x.dx = __tb_offset;
-     }
    }
    r.x.ds = __tb_segment;
--- 86,92 ----


The comment above indicates the FAT32 extended size doesn't work anyway
without LFN.  The code breaks microsoft networking.  See test results
from user below.  Comments?  Any reason not to commit?

Forwarded message:
> From: "Brian Palmer" <BPalmer AT altiris DOT com>
> 
> That appears to have worked. It returns 5 instead of -1.
> 
> -Brian
> 
> -----Original Message-----
> From: Charles Sandmann [mailto:sandmann AT clio DOT rice DOT edu]=20
> Sent: Wednesday, March 30, 2005 11:21 PM
> To: Brian Palmer
> Subject: Re: DJGPP v2.04 Bugs
> 
> > A call to _open(filename, O_RDONLY) returns -1. errno is 10, and
> > _doserrno is 80.
> 
> I may have a fix; try to compile and link this file into your test
> program.  This is just by inspection vs. v2.03 code.
> 
> http://clio.rice.edu/djgpp/_open.c

- Raw text -


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