delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/25/03:40:08

Date: Thu, 25 Jan 2001 10:39:18 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Mark E." <snowball3 AT bigfoot DOT com>
Message-Id: <1659-Thu25Jan2001103917+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: djgpp-workers AT delorie DOT com
In-reply-to: <3A6F2E91.17471.6D5BA@localhost> (snowball3@bigfoot.com)
Subject: Re: filelength and errno patch
References: <3A6EF1B9 DOT 6453 DOT 3E8C83 AT localhost> (snowball3 AT bigfoot DOT com) <3A6F2E91 DOT 17471 DOT 6D5BA AT localhost>
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: "Mark E." <snowball3 AT bigfoot DOT com>
> Date: Wed, 24 Jan 2001 19:35:45 -0500
> 
> > > +   if (_osmajor >= 7 && _osmajor < 10)
> > > +   {
> > > +     regs.x.ax = 0x71A6;
> > > +     regs.x.bx = fhandle;
> > Does this work on plain DOS 7 or only on Windows 9X?  If the latter,
> > you will need to test _USE_LFN, I think.
> 
> I tried it under DOS 7.{whatever} and it doesn't work. So I added
> the _USE_LFN test.
[snip]
> +   /* Use the LFN API when available to get the file length.  */
> +   if (_osmajor >= 7 && _osmajor < 10 && _USE_LFN)

This would preclude us from using 71A6h on Windows 2000, or on any
other system with an LFN TSR installed.  Is that justified?

I'd simply use _USE_LFN and drop the DOS version check.

Everything else looks okay to me, including changes to errno.h and the
library reference (except that there's one place where there's one
space after a dot ;-).

Btw, since even on FAT32 the largest file size fits into 32 bits, when
do we expect to get EOVRFLOW?  For networked drives?

- Raw text -


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