This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH v3 3/5] Introduce _REENT_GLOBAL_STDIO_STREAMS
On 08/08/18 17:20, Freddie Chopin wrote:
On Wed, 2018-08-08 at 16:15 +0200, Sebastian Huber wrote:
The thread-local IO streams are a Newlib feature that is used by our
applications.
Don't get me wrong, but I would expect an option with "global" in the
name to make the streams really global, not "sort-of-global" (;
Otherwise it looks like a half-baked-hack to fix just some particular
problem instead of looking at the whole picture.
There are two things involved here. The FILE objects and pointers to
FILE objects. The stdio, etc. are pointers. These pointers are
thread-local. The FILE objects are global and are used for the initial
values of these thread-local pointers. If you want to get rid of the
thread-local pointers, then you probably need a new configuration option.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.