* [PATCH] Clarify struct _reent comment
@ 2022-06-08 8:42 Sebastian Huber
2022-06-08 18:20 ` Jeff Johnston
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Huber @ 2022-06-08 8:42 UTC (permalink / raw)
To: newlib
---
newlib/libc/include/sys/reent.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h
index 64d76c27c..5d889b4a2 100644
--- a/newlib/libc/include/sys/reent.h
+++ b/newlib/libc/include/sys/reent.h
@@ -350,9 +350,10 @@ struct _rand48 {
/*
* struct _reent
*
- * This structure contains *all* globals needed by the library.
+ * This structure contains the thread-local objects needed by the library.
* It's raison d'etre is to facilitate threads by making all library routines
- * reentrant. IE: All state information is contained here.
+ * reentrant. The exit handler support and FILE maintenance use dedicated
+ * global objects which are not included in this structure.
*/
#ifdef _REENT_SMALL
--
2.35.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Clarify struct _reent comment
2022-06-08 8:42 [PATCH] Clarify struct _reent comment Sebastian Huber
@ 2022-06-08 18:20 ` Jeff Johnston
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Johnston @ 2022-06-08 18:20 UTC (permalink / raw)
To: Sebastian Huber; +Cc: Newlib
LGTM.
-- Jeff J.
On Wed, Jun 8, 2022 at 4:43 AM Sebastian Huber <
sebastian.huber@embedded-brains.de> wrote:
> ---
> newlib/libc/include/sys/reent.h | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/newlib/libc/include/sys/reent.h
> b/newlib/libc/include/sys/reent.h
> index 64d76c27c..5d889b4a2 100644
> --- a/newlib/libc/include/sys/reent.h
> +++ b/newlib/libc/include/sys/reent.h
> @@ -350,9 +350,10 @@ struct _rand48 {
> /*
> * struct _reent
> *
> - * This structure contains *all* globals needed by the library.
> + * This structure contains the thread-local objects needed by the library.
> * It's raison d'etre is to facilitate threads by making all library
> routines
> - * reentrant. IE: All state information is contained here.
> + * reentrant. The exit handler support and FILE maintenance use dedicated
> + * global objects which are not included in this structure.
> */
>
> #ifdef _REENT_SMALL
> --
> 2.35.3
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-08 18:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 8:42 [PATCH] Clarify struct _reent comment Sebastian Huber
2022-06-08 18:20 ` Jeff Johnston
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).