summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-03-25 21:48:31 +0100
committerBruno Haible <bruno@clisp.org>2023-03-25 21:48:31 +0100
commit55a1207abc196655b9ef7c34b3cb7d736e6e7fe7 (patch)
tree480a44ef6866285944d623574a00af4728274161 /doc
parent53370c23642eb6256dafd7b6abca8cc93581b7c2 (diff)
downloadgnulib-55a1207abc196655b9ef7c34b3cb7d736e6e7fe7.tar.gz
stdlib: ISO C 23: Document issue with once_flag and call_once.
* doc/posix-headers/stdlib.texi: Document issue and workaround.
Diffstat (limited to 'doc')
-rw-r--r--doc/posix-headers/stdlib.texi6
1 files changed, 6 insertions, 0 deletions
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{<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.