This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Bug in stdio using dynamic_reent


IO_Init simply sets up my serial IO channel so that calls to _read_r and
_write_r will work.  It does not affect the library calls.  My _write_r
function simply dumps the entire contents of *buf to the serial channel when
called.

I've tested this on two different targets, both with no operating system.
One is a powerpc (8260) and the other is a 5307 coldfire.  I have not
attempted it on my x86 linux box because I have not been able to build
newlib natively.  (The configure script seems to work, but the Makefile
generated doesn't do anything).

I've done a little bit of debug, but the problem seems to be burried deep
enough that I haven't found it yet.

Am I initializing the impure data structures correctly?

Thanks,
g.

-----Original Message-----
From: J. Johnston [mailto:jjohnstn at redhat dot com]
Sent: Wednesday, April 02, 2003 3:41 PM
To: Likely, Grant
Cc: Newlib mailing list (E-mail)
Subject: Re: Bug in stdio using dynamic_reent


Grant,

Sorry, haven't seen this.  If I run this (minus the IO_Init()) with my
x86-linux
newlib build which uses __DYNAMIC_REENT__, it outputs what glibc does:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]