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

Re: Standard IO



Stuart Anderson <anderson@metrolink.com> writes:

> As part of the verification of the Specification, I'm trying to build a
> real application against the lsbdev package (I'm using the X Windows System).
> 
> 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 mention that it's been a while because I don't remember the details, and
> wish to just ask instead, is this correct? Are std* simple FILE * data
> variables, or are they implemented differently?
> 
> Can someone familiar with glibc shed soem light on this?

glibc sets:
libio/stdio.c:_IO_FILE *stdout = (FILE *) &_IO_2_1_stdout_;

We do need stdin/stdout/stderr in LSB - add them and leave the mangles
in - those are needed by <libio.h>.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



Reply to: