iostream buffer flushing and unitbuf

Ian S. Worthington ianworthington@usa.net
Mon Jan 31 23:47:00 GMT 2011


Hi --

We're using the gnu iostream library under z/tpf. 

Multiline output messages to cout are being prefixed with a z/tpf header in
such a way as to make us suspect that each \n is generating a flush.

I have tried setting nounitbuf without effect.

When I look through the iostream code I find a number of places which set the
unitbuf flag but very few places which actually interrogate it.

Could someone point me to where this flag is being used to control buffer
flushing?

Thanks,


ian
...

Ian S. Worthington, MBCS.

me:     http://isw.me.uk/
photos: http://gallery.isw.me.uk/


Free 2GB online backups:
https://mozy.com/?code=HJW4C8 (code gets you 256MB extra)

Web hosting and support from $2.99/month:
www.cirtexhosting.com/affiliates/idevaffiliate.php?id=463


Dulce et decorum est pro patria mori, sed dulcius pro patria vivere, et
dulcissimus pro patria biber. Ergo, bibiamo pro salute patriae.





More information about the Libstdc++ mailing list