[PATCH] Reimplement aligned_alloc

Joel Sherrill joel@rtems.org
Tue May 19 21:02:11 GMT 2020


On Tue, May 19, 2020 at 12:41 PM Sebastian Huber <
sebastian.huber@embedded-brains.de> wrote:

> Hello,
>
> On 19/05/2020 11:52, Szabolcs Nagy wrote:
> > - Failed to set errno on error.
> why should aligned_alloc() set errno on error?
>

Just to provide references.

https://en.cppreference.com/w/c/memory/aligned_alloc  does not mention
setting errno

https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html
for posix_memalign does include errno.

--joel


More information about the Newlib mailing list