| delorie.com/archives/browse.cgi | search |
| Date: | Sat, 27 Jan 2001 09:18:04 +0200 |
| From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | djgpp-workers AT delorie DOT com |
| Message-Id: | <3405-Sat27Jan2001091803+0200-eliz@is.elta.co.il> |
| X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 |
| In-reply-to: | <200101261823.NAA28562@delorie.com> (cvs@delorie.com) |
| Subject: | Re: djgpp: djgpp/src/libc/posix/sys/stat/filelen.c |
| References: | <200101261823 DOT NAA28562 AT delorie DOT com> |
| 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 |
> Date: Fri, 26 Jan 2001 13:23:55 -0500
> From: "cvs-snowball AT delorie DOT com" <cvs AT delorie DOT com>
>
> Modified Files:
> filelen.c
> Log Message:
> Use libc/stubs.h. Set EOVERFLOW for 0x71a6 code when signed file size is -1L.
[snip]
> *************** __filelength(int fhandle)
> *** 43,47 ****
> retval = _farpeekl(_dos_ds, __tb + 0x24);
>
> ! if (_farpeekl(_dos_ds, __tb + 0x20) != 0)
> {
> errno = EOVERFLOW;
> --- 44,48 ----
> retval = _farpeekl(_dos_ds, __tb + 0x24);
>
> ! if ((_farpeekl(_dos_ds, __tb + 0x20) != 0) || (retval == -1))
> {
> errno = EOVERFLOW;
>
Do we have any evidence that -1 in the transfer buffer means overflow?
The LFN API docs I have doesn't say anything about that.
Also, I think we should call __doserr_to_errno if the carry flag is
non-zero.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |