From 55a1207abc196655b9ef7c34b3cb7d736e6e7fe7 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 25 Mar 2023 21:48:31 +0100 Subject: [PATCH] stdlib: ISO C 23: Document issue with once_flag and call_once. * doc/posix-headers/stdlib.texi: Document issue and workaround. --- ChangeLog | 5 +++++ doc/posix-headers/stdlib.texi | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 07b96d5860..a0de338759 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-03-25 Bruno Haible + + stdlib: ISO C 23: Document issue with once_flag and call_once. + * doc/posix-headers/stdlib.texi: Document issue and workaround. + 2023-03-25 Bruno Haible call_once: New module, separate from mtx. diff --git a/doc/posix-headers/stdlib.texi b/doc/posix-headers/stdlib.texi index e7145b7dcc..612e794068 100644 --- a/doc/posix-headers/stdlib.texi +++ b/doc/posix-headers/stdlib.texi @@ -29,6 +29,12 @@ MirBSD 10. Portability problems not fixed by Gnulib: @itemize @item +The definition of the type @code{once_flag}, of the macro +@code{ONCE_FLAG_INIT}, and the declaration of the function +@code{call_once}, that are required by ISO C 23, are not provided. +To get them, import Gnulib module @code{call_once} and include +@code{} rather than @code{}. +@item System status macros such as @code{WEXITSTATUS} require an lvalue argument on some platforms. macOS 11.1. -- 2.39.5