Re: [PATCH] Reimplement aligned_alloc

Joel Sherrill <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <CAF9ehCUzWEZqTb-zqwaqjh=AgfiXpV4ngC_CnReSg_v03Atx3Q@mail.gmail.com>
On Tue, May 19, 2020 at 12:41 PM Sebastian Huber <
[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.