public inbox for
 help / color / mirror / Atom feed
From: "Pekka Seppänen" <>
Subject: [PATCH 2/3] Reentrancy, conditionally provide default __getreent() implementation
Date: Wed, 30 Aug 2023 12:16:32 +0300	[thread overview]
Message-ID: <> (raw)

Conditionally provide default __getreent() implementation only if
_REENT_THREAD_LOCAL is not defined.  If struct _reent is replaced by
dedicated thread-local objects neither the structure nor _impure_ptr is
  newlib/libc/reent/getreent.c | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/newlib/libc/reent/getreent.c b/newlib/libc/reent/getreent.c
index 5fa98e96b..86bb04fb9 100644
--- a/newlib/libc/reent/getreent.c
+++ b/newlib/libc/reent/getreent.c
@@ -9,6 +9,8 @@ int _dummy_getreent;
  #include <_ansi.h>
  #include <reent.h>

  #ifdef __getreent
  #undef __getreent
@@ -19,4 +21,6 @@ __getreent (void)
    return _impure_ptr;

+#endif /* !_REENT_THREAD_LOCAL */

                 reply	other threads:[~2023-08-30  9:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:

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

  git send-email \ \ \ \

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