[PATCH] Fix stdin,-out and -err for multithreaded apps

Thomas Pfaff tpfaff@gmx.net
Thu Sep 25 15:31:00 GMT 2003


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



More information about the Newlib mailing list