www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/22/22:53:48

From: dnelson AT quake DOT xnet DOT com (Dan Nelson)
Subject: Re: djgpp 1.12 libc.a fseek
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Mon, 22 Aug 1994 19:45:20 -0500 (CDT)

in the last episode, Bob Babcock said:
> 
> Fseek does seem to be broken in 1.12.  I've seen it, and someone else also
> reported it.  I'm using the source from 1.11 for now.  DJ has posted a
> preliminary 1.12maint1 at omnigate, but I don't _think_ it includes an fseek
> fix (I seem to have deleted the email announcement).
> 

Let me confirm this.  I haven't looked at the source, but the error seems to
be in the SEEK_CUR portion; if I replace occurances of fseek(fp, off,
SEEK_CUR) with fseek(fp, off+ftell(fp), SEEK_SET) my programs work.  I just
pulled out the fseek.o from the 1.11m5 libc.a and stuck it in the 1.12 one,
and the problem disappears.  The patch hasn't made it to Simtel yet, so I
haven't tried it.

	-Dan

- Raw text -


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