A little more help ;)
Paolo Carlini
pcarlini@unitus.it
Wed Mar 5 00:25:00 GMT 2003
Hi again Nathan and everyone,
I have got a prototype which already seems to work! (testsuite ok,
all the new tests ok, 81920 chars read in Pétur QoI test ;)
However, 7744 seems not automatically fixed :(
void f2()
{
cout
<< "\n:: f2() ::\n"
<< "Type in the characters 'abc' and press <ENTER>: ";
cin.peek();
cout
<< "The number of unread characters should be 4 (a, b, c, \\n): "
<< cin.rdbuf()->in_avail()
<< '\n';
}
what happens is that upon ::fstat(this->fd(), &__buffer),
__buffer.st_size is zero.
Anything coming quickly to your mind?
Thanks,
Paolo.
More information about the Libstdc++
mailing list