public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Joel Sherrill <joel@rtems.org>
To: Sebastian Huber <sebastian.huber@embedded-brains.de>
Cc: Szabolcs Nagy <szabolcs.nagy@arm.com>, Newlib <newlib@sourceware.org>
Subject: Re: [PATCH] Reimplement aligned_alloc
Date: Tue, 19 May 2020 16:02:11 -0500	[thread overview]
Message-ID: <CAF9ehCUzWEZqTb-zqwaqjh=AgfiXpV4ngC_CnReSg_v03Atx3Q@mail.gmail.com> (raw)
In-Reply-To: <54ce748b-051a-ac74-dd3e-c5e461289eae@embedded-brains.de>

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

  reply	other threads:[~2020-05-19 21:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19  9:52 Szabolcs Nagy
2020-05-19 13:24 ` Corinna Vinschen
2020-05-19 17:41 ` Sebastian Huber
2020-05-19 21:02   ` Joel Sherrill [this message]
2020-05-20  8:54   ` Szabolcs Nagy
2020-05-20 14:32     ` Brian Inglis
2020-05-22 15:22       ` Szabolcs Nagy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAF9ehCUzWEZqTb-zqwaqjh=AgfiXpV4ngC_CnReSg_v03Atx3Q@mail.gmail.com' \
    --to=joel@rtems.org \
    --cc=newlib@sourceware.org \
    --cc=sebastian.huber@embedded-brains.de \
    --cc=szabolcs.nagy@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).