[Patch/RFC] libstdc++/9024

Paolo Carlini pcarlini@unitus.it
Fri Dec 20 15:26:00 GMT 2002


Hi everyone, hi Benjamin.

This PR is about the effect of pubsetbuf(0, 0): in the
current code, being M_buf_size_opt set to zero, a next open
doesn't allocate at all an internal buffer.

This seems not correct when the 'in' openmode flag is true.

Is the fix below the right approach? I have positively
tested it on x86-linux, as usual.

Paolo.

////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_9024
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20021220/14520587/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_9024
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20021220/14520587/attachment-0001.ksh>


More information about the Libstdc++ mailing list