Linux vs. libio

Per Bothner per@bothner.com
Mon Dec 20 08:52:00 GMT 1999


Jeffrey A Law <law@cygnus.com> writes:

> While I believe it was an unbelievably dumb thing for the glibc folks to
> tie libio into the C library,

In other words, you don't think it is a reasonable goal to allow C
stdio FILEs to be shared with C++ iostream streambufs?  The best way
to synchronize (say) stdout with cout seems to be for them both to use
the same buffer.  The requires (at least if you want efficiency) for
them to use compatible data structures, and thus libio has to be tied
to the C library.  (Note: This is not new to glibc; it has been that
way in Linux for many years.)
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/


More information about the Gcc mailing list