This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Add _REENT_INIT_PTR_ZEROED()
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Date: Mon, 14 Dec 2015 15:35:48 +0100
- Subject: Re: [PATCH] Add _REENT_INIT_PTR_ZEROED()
- Authentication-results: sourceware.org; auth=none
- References: <1450083474-5615-1-git-send-email-sebastian dot huber at embedded-brains dot de> <20151214134311 dot GC28594 at calimero dot vinschen dot de>
On 14/12/15 14:43, Corinna Vinschen wrote:
On Dec 14 09:57, Sebastian Huber wrote:
>Provide a _REENT_INIT_PTR_ZEROED() macro to initialize an already
>zero-initialized struct _reent.
Why? This might be nice to have, but since this patch is missing
a use-case, we just don't know...
I changed the initialization of the thread control blocks in RTEMS to
initialized them to zero and only explicitly set the non-zero values.
Now I do a double memset() of the struct _reent which is a part of the
thread control block.
--
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.