This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Linux vs. libio
- To: mark at codesourcery dot com (Mark Mitchell)
- Subject: Re: Linux vs. libio
- From: hjl at lucon dot org (H.J. Lu)
- Date: Sun, 19 Dec 1999 19:30:11 -0800 (PST)
- Cc: drepper at gnu dot org (Ulrich Drepper), gcc at gcc dot gnu dot org,libc-alpha at sourceware dot cygnus dot com
>
>
> Folks --
>
> Does anyone know how, on Linux, to build the libio (in CVS with GCC)
> in such a way as to be entirely disentangled from the C library?
> (Except in the ways that libio would normally be entangled with the C
> library on any non-glibc system.)
>
> In particular, we're working on the new C++ ABI. That requires some
> changes to libio to deal with different class layouts, etc. That's
> mostly working, but the stdio functions in glibc have a bad tendency
> to call functions in the modified libio as callbacks, and those
> functions now behave differently than glibc expects.
>
> In other words, what I'm looking to do is to have two distinct,
> disentangled, copies of libio: one in libc, to handle stdio, and one
> in libstdc++ to handle iostreams. How can this be done?
>
Take a look at how libc5 is handled in libio in gcc. libio in gcc
2.95.2 is quite different from libio in libc5.
--
H.J. Lu (hjl@gnu.org)