This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Recent 4.1 breakage...
In article <446D00A9.7080304@suse.de>, Paolo Carlini<pcarlini@suse.de> writes:
>> Well, I'm confused on the expected behavior of 26777 (even after
>> reading the PR) and exactly what I see on FreeBSD 5. Here is the read
>> on the fifo and the lseek from a truss log:
>> 82979: read(0x3,0x804d000,0x3ff) = 8 (0x8)
>> 82979: lseek(3,0xfffffffffffffff8,SEEK_CUR) = 0 (0x0)
> Humm, lseek on a pipe unexpectedly succeeds instead of failing?
Yes, I should have explicitly pointed that out. Interestingly enough,
the call to lseek() does fail if one changes:
fbin.pubseekoff(0, ios::cur, ios::in);
to (e.g.)
fbin.pubseekoff(1, ios::cur, ios::in);
The other thing of note (in case not obvious from the system call
trace): off_t is 64 bits on this platform.
Regards,
Loren