public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Grant Edwards <grant.b.edwards@gmail.com>
To: newlib@sourceware.org
Subject: Re: When/how is global "errno" variable from reent.c to be used?
Date: Fri, 16 Oct 2020 18:10:34 -0000 (UTC)	[thread overview]
Message-ID: <rmcnmq$lsa$1@ciao.gmane.io> (raw)
In-Reply-To: <f8787caf-d3a0-c648-b805-e949b59129da@Damon-Family.org>

On 2020-10-16, Richard Damon <Richard@Damon-Family.org> wrote:

> Software the explicitly declares errno as
> extern int errno;
> is broken, and violates the C standard, and creates explicitly stated
> Undefined Behavior.

So the LWIP source is just plain wrong.

What is the global 'int errno' exported by reent.c for?

--
Grant



  reply	other threads:[~2020-10-16 18:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-16 15:50 Grant Edwards
2020-10-16 16:38 ` Richard Damon
2020-10-16 18:10   ` Grant Edwards [this message]
2020-10-16 19:06     ` Richard Damon
2020-10-16 21:49       ` Grant Edwards

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='rmcnmq$lsa$1@ciao.gmane.io' \
    --to=grant.b.edwards@gmail.com \
    --cc=newlib@sourceware.org \
    /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).