[PATCH] (Re: Query concerning use of flockfile/funlockfile in stdio FILE related functions)
Antony KING
antony.king@st.com
Mon Sep 13 21:30:00 GMT 2004
Please find attached a patch to newlib (CVS snapshot 10-Sep-2004) which
solves the problem I was having with being able to use sprintf/sscanf et
al from RTOS contexts where using locking was not permissible and where
no REENT structure exists.
Please note that I have re-enabled the definition of _GLOBAL_REENT to be
_global_impure_ptr when not CYGWIN; I hope this compromise is OK.
I have also made a number of other minor changes which I also hope are
OK (missing documentation, missing initialisations, default tz_lock
implementation a la env_lock, walking GLOBAL_REENT multiple times).
Cheers,
Antony.
--
-----------------------------------------------------------------
Antony King |
STMicroelectronics (R&D) Ltd. |
Bristol, BS32 4SQ. United Kingdom. |
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib.patch.txt
URL: <http://sourceware.org/pipermail/newlib/attachments/20040913/d6d1db16/attachment.txt>
More information about the Newlib
mailing list