This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: [PATCH] Fix stdin,-out and -err for multithreaded apps
- From: Thomas Pfaff <tpfaff at gmx dot net>
- To: newlib at sources dot redhat dot com
- Date: Tue, 23 Sep 2003 09:09:00 +0200
- Subject: Re: [PATCH] Fix stdin,-out and -err for multithreaded apps
- References: <3F6A01F6.30003@gmx.net>
Thomas Pfaff wrote:
Attached is a patch that should fix the bug reported at
http://sources.redhat.com/ml/newlib/2003/msg00544.html.
which is another __DYNAMIC_REENT related problem.
It will change stdin, -out and -err locations to use _GLOBAL_REENT
instead of _REENT where appropriate, and it includes a change for the
stdin, stdout and stderr defines that i suggested some time ago (see
http://sources.redhat.com/ml/newlib/2003/msg00363.html).
This will allow to change stdin, stdout and stderr without recompiling
all user apps in the future.
If speed is an issue the former defines can be used by defining
_INLINE_STDFP.
After applying this patch Makefile.in must be regenerated.
This patch has become obsolete due to latest cygwin changes, please ignore.
Thomas