www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2016/04/25/23:44:28

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
RazorGate-KAS: Status: not_detected
RazorGate-KAS: Rate: 0
RazorGate-KAS: Envelope from:
RazorGate-KAS: Version: 5.5.3
RazorGate-KAS: LuaCore: 215 2015-05-29_17-31-22
60ae4a1b4d01d14f868b20a55aced8d7df7b2e28
RazorGate-KAS: Lua profiles 78662 [Jun 02 2015]
RazorGate-KAS: Method: none
Subject: Re: Fwd: A few DJGPP libc.a bugs
To: djgpp-workers AT delorie DOT com
References: <56F8295E DOT 2090401 AT posteo DOT de> <571E403D DOT 8080709 AT iki DOT fi>
<571E4A50 DOT 3010806 AT iki DOT fi> <571E8166 DOT 1000103 AT gmx DOT de>
From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp-workers AT delorie DOT com]" <djgpp-workers AT delorie DOT com>
Message-ID: <571EE412.6000005@iki.fi>
Date: Tue, 26 Apr 2016 06:44:18 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
Thunderbird/38.7.1
MIME-Version: 1.0
In-Reply-To: <571E8166.1000103@gmx.de>
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

On 04/25/2016 11:43 PM, Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp-workers AT delorie DOT com] 
wrote:
> Am 25.04.2016 18:48, schrieb Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp-workers AT delorie DOT com]:
>> On 04/25/2016 07:05 PM, Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp-workers AT delorie DOT com] 
>> wrote:
>>>
>>> Sent to me privately. I suggested author to send it to list. I have not seen however any 
>>> activity since that.
>>> So I'm forwarding message to list.
>>>
>>> I'm also committing the proposed patch for ttyscrn.c.
>>>
>>
>> Problem with fseeko64() confirmed. Test example in attachment.
>> fseek() works OK in this example, fseeko64() do not
>>
>> Andris
>>
>
> Have we a fix for this?
>
No. I only wrote a test example to confirm the existence of the problem.

The simplest way would perhaps to move actual implementation from fseek() to fseeko64() and call 
later elsewhere so avoiding unnecessary code duplication. Most likely some changes to 
implementation may be required including return value range check to enure not returning nonsense 
when the position is too large to fit into return value. Testing could be a problem.

Andris

PS: Is DJGPP able to work with exFAT filesystem and if so would be DJGPP able to handle files 
larger than 4GB on it under Windows? I myself only recently found about exFAT when found that I 
have to install additional package in Fedora 23 to mount microSD card.

- Raw text -


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