This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
RE: Bug in stdio using dynamic_reent
- From: "Likely, Grant" <Grant dot Likely at gdcanada dot com>
- To:
- Cc: "Newlib mailing list (E-mail)" <newlib at sources dot redhat dot com>
- Date: Wed, 2 Apr 2003 15:52:15 -0700
- Subject: 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: