This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Linux vs. libio
- To: Per Bothner <per at bothner dot com>
- Subject: Re: Linux vs. libio
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 20 Dec 1999 10:08:21 -0700
- cc: gcc at gcc dot gnu dot org, libc-alpha at sourceware dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <m21z8h1rmy.fsf@magnus.bothner.com>you write:
> 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.)
I don't really see the need to debate this -- it's a fact of life that we
have to deal with this braindamage. So, let's find a way to deal with it
rather than debating the decision to integrate libio with glibc here.
jeff