This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

A little more help ;)


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.


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