[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Standard IO



On Wed, Mar 14, 2001 at 04:39:02PM -0500, Stuart Anderson wrote:
> 
> Something I hit right off is that stdout & stderr aren't found. This would
> be becasue they have been excluded, but I guess we need to question this.
> stdin/stdout/stderr were excluded because they appeared to have been mangled
> by glibc in someway. It's been a while since we covered those, but I think
> there was some issue of the definitions having changed between version as well.
> 

I'm not a glibc expert (and I don't play one on TV), but it looks like
that on a Debian/testing system using glibc 2.2.2, stdout gets mangled
using symbol versioning to become stdout@@GLIBC_2.0.  It also looks
like a static constructors is being called as well to initialize the
FILE * structures, and I believe that's is being done in
__libc_start_main@@GLIBC_2.0.

Would someone with more glibc-foo confirm this, and perhaps tell us if
it differs for other glibc versions?

						- Ted



Reply to: