[PATCH] Add _REENT_INIT_PTR_ZEROED()

Corinna Vinschen vinschen@redhat.com
Mon Dec 14 21:23:00 GMT 2015


On Dec 14 15:35, Sebastian Huber wrote:
> 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.

Thanks.  Patch applied.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20151214/bf384a34/attachment.sig>


More information about the Newlib mailing list