X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com From: "Pierre Muller" To: References: <000c01c9f0e4$b0697200$113c5600$@u-strasbg.fr> In-Reply-To: <000c01c9f0e4$b0697200$113c5600$@u-strasbg.fr> Subject: [PING] [RFA] Fix error in src/libc/compat/stdio/fseeko64.c Date: Tue, 20 Oct 2009 13:54:27 +0200 Message-ID: <000c01ca517c$13be17a0$3b3a46e0$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acnw5K7rnT1IJernRU22oLNqMfgfMRgl1rFw Content-Language: en-us X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (mailhost.u-strasbg.fr [IPv6:2001:660:2402::156]); Tue, 20 Oct 2009 13:54:21 +0200 (CEST) X-Virus-Scanned: ClamAV 0.94.2/9913/Tue Oct 20 05:42:36 2009 on mr6.u-strasbg.fr X-Virus-Status: Clean X-Spam-Status: No, score=-100.0 required=5.0 tests=USER_IN_WHITELIST autolearn=disabled version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mr6.u-strasbg.fr Reply-To: djgpp-workers AT delorie DOT com > -----Message d'origine----- > De=A0: Pierre Muller [mailto:muller AT ics DOT u-strasbg DOT fr] > Envoy=E9=A0: Friday, June 19, 2009 3:49 PM > =C0=A0: djgpp-workers AT delorie DOT com > Objet=A0: [RFA] Fix error in src/libc/compat/stdio/fseeko64.c >=20 > I sent a previous message where I told that I found > the reason of my problems when trying to compile binutils > with DJGPP v2.04 from CVS. >=20 > Eli stated that fflush shouldn't handle _IOREAD, and > I finally tried with only one change in fseeko64. > This solves my problem without change fflush >=20 > The code in ansi/sdtio/fseek.c seems more elaborate > that compat/fseeko64.c, while fseeko.c simply calls > fseek function. > A cleaner solution might be to copy/translate the whole code > from ansi/stdio/fseek.c >=20 > Anyhow, in the mean time it would be good to commit this; > as it allows to compile DJGPP GDB with libc from CVS. >=20 > Pierre Muller > Pascal language support maintainer for GDB >=20 >=20 > cvs diff: Diffing . > Index: fseeko64.c > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvs/djgpp/djgpp/src/libc/compat/stdio/fseeko64.c,v > retrieving revision 1.1 > diff -u -p -r1.1 fseeko64.c > --- fseeko64.c 11 Dec 2007 07:48:42 -0000 1.1 > +++ fseeko64.c 19 Jun 2009 13:39:02 -0000 > @@ -17,6 +17,10 @@ fseeko64(FILE *_stream, off64_t _offset, > o =3D llseek(fileno(_stream), _offset, _mode); > if (o =3D=3D -1) > return -1; > + if (_stream) > + { > + _stream->_cnt =3D 0; > + } > return 0; > } >=20