A couple problems with c_io_stdio.cc

Loren James Rittle rittle@latour.rsch.comm.mot.com
Tue Nov 21 21:18:00 GMT 2000

Hi Scott,

Regarding the patches you posted yesterday at:


I would like to recommend that your first patch be installed ASAP.
Given the apparent usage of streamoff, it appears obviously correct to
me (at least on BSD, and according to the ANSI C89 standard, fseek is
supposed to return 0 unless the seek can't be satisfied).

It fixes the following test cases on i386-unknown-freebsd3.4:

-r 18   0.000   31333   2752    435531  21_strings/inserters_extractors.cc
-r 13   0.000   25045   2592    378982  27_io/filebuf.cc
-r 13   0.000   28413   2432    411453  27_io/istream_seeks.cc

Regarding your second patch, it appears (but unconfirmed) that it
would fix one area of this failing test case, but break the other side
of it:

-r 10   0.000   14229   1984    342491  27_io/filebuf_members.cc


More information about the Libstdc++ mailing list