Date: Wed, 24 Jan 2001 22:27:42 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Mark E." Message-Id: <3405-Wed24Jan2001222741+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: <3A6EF1B9.6453.3E8C83@localhost> (snowball3@bigfoot.com) Subject: Re: filelength and errno patch References: <3A6EF1B9 DOT 6453 DOT 3E8C83 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 Precedence: bulk > From: "Mark E." > Date: Wed, 24 Jan 2001 15:16:09 -0500 > + /* DOS 7 provides a way to get the file size directly. > + Prefer it when available. */ > + 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.