[PATCH v2] C11 support for <stdlib.h>

Sebastian Huber sebastian.huber@embedded-brains.de
Wed Oct 7 05:26:00 GMT 2015


Ping.

On 29/09/15 08:31, Sebastian Huber wrote:
> Import some <stdlib.h> function declarations from latest FreeBSD and
> implement them.  aligned_alloc() is implemented in terms of
> posix_memalign() which is not defined in Newlib.  I am not sure if we
> should call the global reent cleanup in quick_exit() similar to exit().
>
> newlib/ChangeLog
> 2015-09-29  Sebastian Huber  <sebastian.huber@embedded-brains.de>
>
> 	* libc/include/stdlib.h (alloc_aligned): Declare.
> 	(at_quick_exit): Likewise.
> 	(quick_exit): Likewise.
> 	* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add
> 	alloc_aligned.c and quick_exit.c.
> 	* libc/stdlib/Makefile.in: Regenerate.
> 	* libc/stdlib/aligned_alloc.c: New.
> 	* libc/stdlib/quick_exit.c: Likewise.

-- 
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.



More information about the Newlib mailing list