This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/5003] [Sparc] read in istream(new filebuf(popen())) read only first N bytes


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5003


bkoz@gcc.gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From bkoz@gcc.gnu.org  2003-05-23 03:22 -------
Changing this to use <ext/stdio_filebuf.h> instead of filebuf, and using
mainline on linux shows this is no longer an issue.

  fb = new __gnu_cxx::stdio_filebuf<char>(f, ios::in, BUF_SIZE);

%a.out
 gcount()=20 length()=19 eof=0 bad=0 good=1
 gcount()=19 length()=18 eof=0 bad=0 good=1
 gcount()=31 length()=30 eof=0 bad=0 good=1
 gcount()=1 length()=0 eof=0 bad=0 good=1
 gcount()=21 length()=20 eof=0 bad=0 good=1
 gcount()=1 length()=0 eof=0 bad=0 good=1
 gcount()=21 length()=20 eof=0 bad=0 good=1
 gcount()=1 length()=0 eof=0 bad=0 good=1
 gcount()=16 length()=15 eof=0 bad=0 good=1
 gcount()=2 length()=1 eof=0 bad=0 good=1
 gcount()=12 length()=11 eof=0 bad=0 good=1
 gcount()=15 length()=14 eof=0 bad=0 good=1
 gcount()=15 length()=14 eof=0 bad=0 good=1
 gcount()=18 length()=17 eof=0 bad=0 good=1
 gcount()=12 length()=11 eof=0 bad=0 good=1
 gcount()=27 length()=26 eof=0 bad=0 good=1
 gcount()=1 length()=0 eof=0 bad=0 good=1
 gcount()=17 length()=16 eof=0 bad=0 good=1
 gcount()=39 length()=38 eof=0 bad=0 good=1
 gcount()=41 length()=40 eof=0 bad=0 good=1
 gcount()=6 length()=5 eof=0 bad=0 good=1
 gcount()=44 length()=43 eof=0 bad=0 good=1
 gcount()=15 length()=14 eof=0 bad=0 good=1
 gcount()=6 length()=5 eof=0 bad=0 good=1
 gcount()=65 length()=64 eof=0 bad=0 good=1
 gcount()=24 length()=23 eof=0 bad=0 good=1
 gcount()=21 length()=20 eof=0 bad=0 good=1
 gcount()=6 length()=5 eof=0 bad=0 good=1
 gcount()=34 length()=33 eof=0 bad=0 good=1
 gcount()=15 length()=14 eof=0 bad=0 good=1
 gcount()=11 length()=10 eof=0 bad=0 good=1
 gcount()=29 length()=28 eof=0 bad=0 good=1
 gcount()=43 length()=42 eof=0 bad=0 good=1
 gcount()=39 length()=38 eof=0 bad=0 good=1
 gcount()=57 length()=56 eof=0 bad=0 good=1
 gcount()=35 length()=34 eof=0 bad=0 good=1
 gcount()=18 length()=17 eof=0 bad=0 good=1
 gcount()=6 length()=5 eof=0 bad=0 good=1
 gcount()=35 length()=34 eof=0 bad=0 good=1
 gcount()=37 length()=36 eof=0 bad=0 good=1
 gcount()=12 length()=11 eof=0 bad=0 good=1
 gcount()=2 length()=1 eof=0 bad=0 good=1
 gcount()=0 length()=0 eof=1 bad=0 good=0
nb lines=43
total=890




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]