]> Savannah Git Hosting - gnulib.git/commitdiff
stdlib: ISO C 23: Document issue with once_flag and call_once.
authorBruno Haible <bruno@clisp.org>
Sat, 25 Mar 2023 20:48:31 +0000 (21:48 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 25 Mar 2023 20:48:31 +0000 (21:48 +0100)
* doc/posix-headers/stdlib.texi: Document issue and workaround.

ChangeLog
doc/posix-headers/stdlib.texi

index 07b96d58602b49d539abb7e491197b4183dcdc2d..a0de338759b92162bf926f86992bb0f4198a5751 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-03-25  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        call_once: New module, separate from mtx.
index e7145b7dccd1365e46da6b62429742747104dc5c..612e794068b6dd8ed0367c49347f972be61059c7 100644 (file)
@@ -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{<threads.h>} rather than @code{<stdlib.h>}.
+@item
 System status macros such as @code{WEXITSTATUS} require an lvalue
 argument on some platforms.
 macOS 11.1.