[libc-commits] [libc] [libc][docgen] regen docgen via cmake (PR #119628)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Thu Dec 19 14:28:33 PST 2024
https://github.com/nickdesaulniers updated https://github.com/llvm/llvm-project/pull/119628
>From 11c052b949753d93d3e771346e2d976d5d3e24ba Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <ndesaulniers at google.com>
Date: Wed, 11 Dec 2024 15:02:54 -0800
Subject: [PATCH 1/5] [libc][docgen] regen docgen via cmake
---
libc/docs/CMakeLists.txt | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index be09423d38e8e3..c8e9bcd29f612c 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -4,6 +4,15 @@ include(AddSphinxTarget)
if (SPHINX_FOUND)
if (${SPHINX_OUTPUT_HTML})
add_sphinx_target(html libc)
+
+ list(APPEND docgen_list string strings)
+
+ foreach(stem IN LISTS docgen_list)
+ add_custom_target(${stem}_rst
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../utils/docgen/docgen.py ${stem}.h >
+ ${CMAKE_CURRENT_SOURCE_DIR}/headers/${stem}.rst)
+ add_dependencies(docs-libc-html ${stem}_rst)
+ endforeach()
endif()
endif()
endif()
>From aa0bd7cd93098870c4919806140a684337e06170 Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <ndesaulniers at google.com>
Date: Thu, 12 Dec 2024 09:17:04 -0800
Subject: [PATCH 2/5] expand docgen_list
---
libc/docs/CMakeLists.txt | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index c8e9bcd29f612c..5bc2d3a67d566b 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -5,7 +5,25 @@ if (SPHINX_FOUND)
if (${SPHINX_OUTPUT_HTML})
add_sphinx_target(html libc)
- list(APPEND docgen_list string strings)
+ list(APPEND docgen_list
+ assert
+ ctype
+ errno
+ fenv
+ float
+ inttypes
+ locale
+ setjmp
+ signal
+ stdbit
+ stdlib
+ string
+ strings
+ threads
+ uchar
+ wchar
+ wctype
+ )
foreach(stem IN LISTS docgen_list)
add_custom_target(${stem}_rst
>From 70f09ec7efefa1594e81962a810726e329559403 Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <ndesaulniers at google.com>
Date: Thu, 19 Dec 2024 13:11:41 -0800
Subject: [PATCH 3/5] dynamically generate rst files
---
libc/docs/CMakeLists.txt | 23 +-
libc/docs/headers/assert.rst | 27 ---
libc/docs/headers/ctype.rst | 130 -----------
libc/docs/headers/errno.rst | 35 ---
libc/docs/headers/fenv.rst | 175 ---------------
libc/docs/headers/float.rst | 227 -------------------
libc/docs/headers/inttypes.rst | 42 ----
libc/docs/headers/locale.rst | 83 -------
libc/docs/headers/setjmp.rst | 43 ----
libc/docs/headers/signal.rst | 207 ------------------
libc/docs/headers/stdbit.rst | 383 ---------------------------------
libc/docs/headers/stdio.rst | 359 ------------------------------
libc/docs/headers/stdlib.rst | 255 ----------------------
libc/docs/headers/string.rst | 163 --------------
libc/docs/headers/strings.rst | 66 ------
libc/docs/headers/threads.rst | 147 -------------
libc/docs/headers/uchar.rst | 59 -----
libc/docs/headers/wchar.rst | 287 ------------------------
libc/docs/headers/wctype.rst | 86 --------
19 files changed, 20 insertions(+), 2777 deletions(-)
delete mode 100644 libc/docs/headers/assert.rst
delete mode 100644 libc/docs/headers/ctype.rst
delete mode 100644 libc/docs/headers/errno.rst
delete mode 100644 libc/docs/headers/fenv.rst
delete mode 100644 libc/docs/headers/float.rst
delete mode 100644 libc/docs/headers/inttypes.rst
delete mode 100644 libc/docs/headers/locale.rst
delete mode 100644 libc/docs/headers/setjmp.rst
delete mode 100644 libc/docs/headers/signal.rst
delete mode 100644 libc/docs/headers/stdbit.rst
delete mode 100644 libc/docs/headers/stdio.rst
delete mode 100644 libc/docs/headers/stdlib.rst
delete mode 100644 libc/docs/headers/string.rst
delete mode 100644 libc/docs/headers/strings.rst
delete mode 100644 libc/docs/headers/threads.rst
delete mode 100644 libc/docs/headers/uchar.rst
delete mode 100644 libc/docs/headers/wchar.rst
delete mode 100644 libc/docs/headers/wctype.rst
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index 5bc2d3a67d566b..60c4ea72deebce 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -1,10 +1,25 @@
-
if (LLVM_ENABLE_SPHINX)
include(AddSphinxTarget)
if (SPHINX_FOUND)
if (${SPHINX_OUTPUT_HTML})
- add_sphinx_target(html libc)
+ # Similar to clang, we copy our static .rst files from libc/docs/ to the
+ # $build_dir/libc/docs/. That way, we can have a mix of both static
+ # (committed) .rst files, and dynamically generated .rst files. We don't
+ # want the dynamically generated .rst files to pollute the source tree.
+ add_custom_target(copy-libc-rst-docs
+ COMMAND "${CMAKE_COMMAND}" -E copy_directory
+ "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}")
+
+ # Change sphinx to build from $build_dir/libc/docs/ rather than
+ # llvm-project/libc/docs/.
+ add_sphinx_target(html libc SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}")
+ # Depend on the copy target.
+ add_dependencies(docs-libc-html copy-libc-rst-docs)
+ # Maintain a list of headers for which we dynamically generate html docs
+ # for via docgen. For more complex docs (such as per arch support, a la
+ # math.h), those should be omitted and exist statically in
+ # libc/docs/headers/.
list(APPEND docgen_list
assert
ctype
@@ -26,9 +41,11 @@ if (SPHINX_FOUND)
)
foreach(stem IN LISTS docgen_list)
+ # docgen invocation.
add_custom_target(${stem}_rst
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../utils/docgen/docgen.py ${stem}.h >
- ${CMAKE_CURRENT_SOURCE_DIR}/headers/${stem}.rst)
+ ${CMAKE_CURRENT_BINARY_DIR}/headers/${stem}.rst)
+ # depend on the docgen invocation.
add_dependencies(docs-libc-html ${stem}_rst)
endforeach()
endif()
diff --git a/libc/docs/headers/assert.rst b/libc/docs/headers/assert.rst
deleted file mode 100644
index 682170755ba43f..00000000000000
--- a/libc/docs/headers/assert.rst
+++ /dev/null
@@ -1,27 +0,0 @@
-.. include:: ../check.rst
-
-========
-assert.h
-========
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - __STDC_VERSION_ASSERT_H__
- - |check|
- - 7.2.1
- -
- * - assert
- -
- - 7.2.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/assert.h.html>`__
-
diff --git a/libc/docs/headers/ctype.rst b/libc/docs/headers/ctype.rst
deleted file mode 100644
index 9b5b1574fd274d..00000000000000
--- a/libc/docs/headers/ctype.rst
+++ /dev/null
@@ -1,130 +0,0 @@
-.. include:: ../check.rst
-
-=======
-ctype.h
-=======
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - isalnum
- - |check|
- - 7.4.1.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isalnum.html>`__
- * - isalnum_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isalnum_l.html>`__
- * - isalpha
- - |check|
- - 7.4.1.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isalpha.html>`__
- * - isalpha_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isalpha_l.html>`__
- * - isblank
- - |check|
- - 7.4.1.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isblank.html>`__
- * - isblank_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isblank_l.html>`__
- * - iscntrl
- - |check|
- - 7.4.1.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/iscntrl.html>`__
- * - iscntrl_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/iscntrl_l.html>`__
- * - isdigit
- - |check|
- - 7.4.1.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isdigit.html>`__
- * - isdigit_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isdigit_l.html>`__
- * - isgraph
- - |check|
- - 7.4.1.6
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isgraph.html>`__
- * - isgraph_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isgraph_l.html>`__
- * - islower
- - |check|
- - 7.4.1.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/islower.html>`__
- * - islower_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/islower_l.html>`__
- * - isprint
- - |check|
- - 7.4.1.8
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isprint.html>`__
- * - isprint_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isprint_l.html>`__
- * - ispunct
- - |check|
- - 7.4.1.9
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/ispunct.html>`__
- * - ispunct_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/ispunct_l.html>`__
- * - isspace
- - |check|
- - 7.4.1.10
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isspace.html>`__
- * - isspace_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isspace_l.html>`__
- * - isupper
- - |check|
- - 7.4.1.11
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isupper.html>`__
- * - isupper_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isupper_l.html>`__
- * - isxdigit
- - |check|
- - 7.4.1.12
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isxdigit.html>`__
- * - isxdigit_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/isxdigit_l.html>`__
- * - tolower
- - |check|
- - 7.4.2.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/tolower.html>`__
- * - tolower_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/tolower_l.html>`__
- * - toupper
- - |check|
- - 7.4.2.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/toupper.html>`__
- * - toupper_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/toupper_l.html>`__
diff --git a/libc/docs/headers/errno.rst b/libc/docs/headers/errno.rst
deleted file mode 100644
index b2b2e62728e1a4..00000000000000
--- a/libc/docs/headers/errno.rst
+++ /dev/null
@@ -1,35 +0,0 @@
-.. include:: ../check.rst
-
-=======
-errno.h
-=======
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - EDOM
- -
- - 7.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/errno.h.html>`__
- * - EILSEQ
- -
- - 7.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/errno.h.html>`__
- * - ERANGE
- -
- - 7.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/errno.h.html>`__
- * - errno
- -
- - 7.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/errno.h.html>`__
-
diff --git a/libc/docs/headers/fenv.rst b/libc/docs/headers/fenv.rst
deleted file mode 100644
index d0e3c5dda6d006..00000000000000
--- a/libc/docs/headers/fenv.rst
+++ /dev/null
@@ -1,175 +0,0 @@
-.. include:: ../check.rst
-
-======
-fenv.h
-======
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - FE_ALL_EXCEPT
- - |check|
- - 7.6.12
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>`__
- * - FE_DEC_DOWNWARD
- -
- - 7.6.14
- -
- * - FE_DEC_TONEAREST
- -
- - 7.6.14
- -
- * - FE_DEC_TONEARESTFROMZERO
- -
- - 7.6.14
- -
- * - FE_DEC_TOWARDZERO
- -
- - 7.6.14
- -
- * - FE_DEC_UPWARD
- -
- - 7.6.14
- -
- * - FE_DFL_ENV
- - |check|
- - 7.6.17
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>`__
- * - FE_DFL_MODE
- -
- - 7.6.11
- -
- * - FE_DIVBYZERO
- - |check|
- - 7.6.9
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>`__
- * - FE_DOWNWARD
- - |check|
- - 7.6.13
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>`__
- * - FE_INEXACT
- - |check|
- - 7.6.9
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>`__
- * - FE_INVALID
- - |check|
- - 7.6.9
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>`__
- * - FE_OVERFLOW
- - |check|
- - 7.6.9
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>`__
- * - FE_TONEAREST
- - |check|
- - 7.6.13
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>`__
- * - FE_TONEARESTFROMZERO
- -
- - 7.6.13
- -
- * - FE_TOWARDZERO
- - |check|
- - 7.6.13
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>`__
- * - FE_UNDERFLOW
- - |check|
- - 7.6.9
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>`__
- * - FE_UPWARD
- - |check|
- - 7.6.13
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fenv.h.html>`__
- * - __STDC_VERSION_FENV_H__
- -
- - 7.6.5
- -
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - fe_dec_getround
- -
- - 7.6.5.3
- -
- * - fe_dec_setround
- -
- - 7.6.5.6
- -
- * - feclearexcept
- - |check|
- - 7.6.4.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/feclearexcept.html>`__
- * - fegetenv
- - |check|
- - 7.6.6.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fegetenv.html>`__
- * - fegetexceptflag
- - |check|
- - 7.6.4.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fegetexceptflag.html>`__
- * - fegetmode
- -
- - 7.6.5.1
- -
- * - fegetround
- - |check|
- - 7.6.5.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fegetround.html>`__
- * - feholdexcept
- - |check|
- - 7.6.6.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/feholdexcept.html>`__
- * - feraiseexcept
- - |check|
- - 7.6.4.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/feraiseexcept.html>`__
- * - fesetenv
- - |check|
- - 7.6.6.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fesetenv.html>`__
- * - fesetexcept
- - |check|
- - 7.6.4.4
- -
- * - fesetexceptflag
- - |check|
- - 7.6.4.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fesetexceptflag.html>`__
- * - fesetmode
- -
- - 7.6.5.4
- -
- * - fesetround
- - |check|
- - 7.6.5.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fesetround.html>`__
- * - fetestexcept
- - |check|
- - 7.6.4.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fetestexcept.html>`__
- * - fetestexceptflag
- - |check|
- - 7.6.4.6
- -
- * - feupdateenv
- - |check|
- - 7.6.6.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/feupdateenv.html>`__
diff --git a/libc/docs/headers/float.rst b/libc/docs/headers/float.rst
deleted file mode 100644
index 8ef0f3a05020ce..00000000000000
--- a/libc/docs/headers/float.rst
+++ /dev/null
@@ -1,227 +0,0 @@
-.. include:: ../check.rst
-
-=======
-float.h
-=======
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - DBL_DECIMAL_DIG
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - DBL_DIG
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - DBL_EPSILON
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - DBL_HAS_SUBNORM
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - DBL_IS_IEC_60559
- -
- - 5.3.5.3.3
- -
- * - DBL_MANT_DIG
- - |check|
- - 5.3.5.3.3
- -
- * - DBL_MAX
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - DBL_MAX_10_EXP
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - DBL_MAX_EXP
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - DBL_MIN
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - DBL_MIN_10_EXP
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - DBL_MIN_EXP
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - DBL_NORM_MAX
- -
- - 5.3.5.3.3
- -
- * - DBL_SNAN
- -
- - 5.3.5.3.3
- -
- * - DBL_TRUE_MIN
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - DECIMAL_DIG
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_DECIMAL_DIG
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_DIG
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_EPSILON
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_EVAL_METHOD
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_HAS_SUBNORM
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_IS_IEC_60559
- -
- - 5.3.5.3.3
- -
- * - FLT_MANT_DIG
- - |check|
- - 5.3.5.3.3
- -
- * - FLT_MAX
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_MAX_10_EXP
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_MAX_EXP
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_MIN
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_MIN_10_EXP
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_MIN_EXP
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_NORM_MAX
- -
- - 5.3.5.3.3
- -
- * - FLT_RADIX
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_ROUNDS
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - FLT_SNAN
- -
- - 5.3.5.3.3
- -
- * - FLT_TRUE_MIN
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - INFINITY
- -
- - 5.3.5.3.3
- -
- * - LDBL_DECIMAL_DIG
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - LDBL_DIG
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - LDBL_EPSILON
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - LDBL_HAS_SUBNORM
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - LDBL_IS_IEC_60559
- -
- - 5.3.5.3.3
- -
- * - LDBL_MANT_DIG
- - |check|
- - 5.3.5.3.3
- -
- * - LDBL_MAX
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - LDBL_MAX_10_EXP
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - LDBL_MAX_EXP
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - LDBL_MIN
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - LDBL_MIN_10_EXP
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - LDBL_MIN_EXP
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - LDBL_NORM_MAX
- -
- - 5.3.5.3.3
- -
- * - LDBL_SNAN
- -
- - 5.3.5.3.3
- -
- * - LDBL_TRUE_MIN
- - |check|
- - 5.3.5.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/float.h.html>`__
- * - NAN
- -
- - 5.3.5.3.3
- -
- * - __STDC_VERSION_FLOAT_H__
- -
- - 7.7
- -
-
diff --git a/libc/docs/headers/inttypes.rst b/libc/docs/headers/inttypes.rst
deleted file mode 100644
index 9269b40f242a6c..00000000000000
--- a/libc/docs/headers/inttypes.rst
+++ /dev/null
@@ -1,42 +0,0 @@
-.. include:: ../check.rst
-
-==========
-inttypes.h
-==========
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - imaxabs
- - |check|
- - 7.8.2.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/imaxabs.html>`__
- * - imaxdiv
- - |check|
- - 7.8.2.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/imaxdiv.html>`__
- * - strtoimax
- - |check|
- - 7.8.2.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtoimax.html>`__
- * - strtoumax
- - |check|
- - 7.8.2.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtoumax.html>`__
- * - wcstoimax
- -
- - 7.8.2.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/wcstoimax.html>`__
- * - wcstoumax
- -
- - 7.8.2.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/wcstoumax.html>`__
diff --git a/libc/docs/headers/locale.rst b/libc/docs/headers/locale.rst
deleted file mode 100644
index c97d1f63b1f0ce..00000000000000
--- a/libc/docs/headers/locale.rst
+++ /dev/null
@@ -1,83 +0,0 @@
-.. include:: ../check.rst
-
-========
-locale.h
-========
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - LC_ALL
- - |check|
- - 7.11
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/locale.h.html>`__
- * - LC_COLLATE
- - |check|
- - 7.11
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/locale.h.html>`__
- * - LC_CTYPE
- - |check|
- - 7.11
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/locale.h.html>`__
- * - LC_MONETARY
- - |check|
- - 7.11
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/locale.h.html>`__
- * - LC_NUMERIC
- - |check|
- - 7.11
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/locale.h.html>`__
- * - LC_TIME
- - |check|
- - 7.11
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/locale.h.html>`__
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - duplocale
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/duplocale.html>`__
- * - freelocale
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/freelocale.html>`__
- * - getlocalename_l
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/getlocalename_l.html>`__
- * - localeconv
- - |check|
- - 7.11.2.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/localeconv.html>`__
- * - newlocale
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/newlocale.html>`__
- * - setlocale
- - |check|
- - 7.11.1.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/setlocale.html>`__
- * - uselocale
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/uselocale.html>`__
diff --git a/libc/docs/headers/setjmp.rst b/libc/docs/headers/setjmp.rst
deleted file mode 100644
index b0091134f1a6b2..00000000000000
--- a/libc/docs/headers/setjmp.rst
+++ /dev/null
@@ -1,43 +0,0 @@
-.. include:: ../check.rst
-
-========
-setjmp.h
-========
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX.1-2024 Standard Section
- * - __STDC_VERSION_SETJMP_H__
- -
- - 7.13.2
- -
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX.1-2024 Standard Section
- * - longjmp
- - |check|
- - 7.13.2.1
- -
- * - setjmp
- - |check|
- - 7.13.1.1
- -
diff --git a/libc/docs/headers/signal.rst b/libc/docs/headers/signal.rst
deleted file mode 100644
index 4f51f611c9fe79..00000000000000
--- a/libc/docs/headers/signal.rst
+++ /dev/null
@@ -1,207 +0,0 @@
-.. include:: ../check.rst
-
-========
-signal.h
-========
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - SIGABRT
- - |check|
- - 7.14.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGALRM
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGBUS
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGCHLD
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGCONT
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGFPE
- - |check|
- - 7.14.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGHUP
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGILL
- - |check|
- - 7.14.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGINT
- - |check|
- - 7.14.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGKILL
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGPIPE
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGPOLL
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGPROF
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGQUIT
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGRTMAX
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGRTMIN
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGSEGV
- - |check|
- - 7.14.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGSTOP
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGSYS
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGTERM
- - |check|
- - 7.14.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGTRAP
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGTSTP
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGTTIN
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGTTOU
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGURG
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGUSR1
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGUSR2
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGVTALRM
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGXCPU
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIGXFSZ
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIG_DFL
- - |check|
- - 7.14.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIG_ERR
- - |check|
- - 7.14.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIG_HOLD
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
- * - SIG_IGN
- - |check|
- - 7.14.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>`__
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - kill
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/kill.html>`__
- * - raise
- - |check|
- - 7.14.2.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/raise.html>`__
- * - sigaction
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/sigaction.html>`__
- * - sigaddset
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/sigaddset.html>`__
- * - sigaltstack
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/sigaltstack.html>`__
- * - sigdelset
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/sigdelset.html>`__
- * - sigemptyset
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/sigemptyset.html>`__
- * - sigfillset
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/sigfillset.html>`__
- * - signal
- - |check|
- - 7.14.1.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/signal.html>`__
- * - sigprocmask
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/sigprocmask.html>`__
diff --git a/libc/docs/headers/stdbit.rst b/libc/docs/headers/stdbit.rst
deleted file mode 100644
index 0484d951e19c6b..00000000000000
--- a/libc/docs/headers/stdbit.rst
+++ /dev/null
@@ -1,383 +0,0 @@
-.. include:: ../check.rst
-
-========
-stdbit.h
-========
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX.1-2024 Standard Section
- * - __STDC_ENDIAN_BIG__
- - |check|
- - 7.18.2.2
- -
- * - __STDC_ENDIAN_LITTLE__
- - |check|
- - 7.18.2.2
- -
- * - __STDC_ENDIAN_NATIVE__
- - |check|
- - 7.18.2.2
- -
- * - __STDC_VERSION_STDBIT_H__
- - |check|
- - 7.18.1.2
- -
- * - stdc_bit_ceil
- - |check|
- - 7.18.16.1
- -
- * - stdc_bit_floor
- - |check|
- - 7.18.15.1
- -
- * - stdc_bit_width
- - |check|
- - 7.18.14.1
- -
- * - stdc_count_ones
- - |check|
- - 7.18.12.1
- -
- * - stdc_count_zeros
- - |check|
- - 7.18.11.1
- -
- * - stdc_first_leading_one
- - |check|
- - 7.18.8.1
- -
- * - stdc_first_leading_zero
- - |check|
- - 7.18.7.1
- -
- * - stdc_first_trailing_one
- - |check|
- - 7.18.10.1
- -
- * - stdc_first_trailing_zero
- - |check|
- - 7.18.9.1
- -
- * - stdc_has_single_bit
- - |check|
- - 7.18.13.1
- -
- * - stdc_leading_ones
- - |check|
- - 7.18.4.1
- -
- * - stdc_leading_zeros
- - |check|
- - 7.18.3.1
- -
- * - stdc_trailing_ones
- - |check|
- - 7.18.6.1
- -
- * - stdc_trailing_zeros
- - |check|
- - 7.18.5.1
- -
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX.1-2024 Standard Section
- * - stdc_bit_ceil_uc
- - |check|
- - 7.18.16
- -
- * - stdc_bit_ceil_ui
- - |check|
- - 7.18.16
- -
- * - stdc_bit_ceil_ul
- - |check|
- - 7.18.16
- -
- * - stdc_bit_ceil_ull
- - |check|
- - 7.18.16
- -
- * - stdc_bit_ceil_us
- - |check|
- - 7.18.16
- -
- * - stdc_bit_floor_uc
- - |check|
- - 7.18.15
- -
- * - stdc_bit_floor_ui
- - |check|
- - 7.18.15
- -
- * - stdc_bit_floor_ul
- - |check|
- - 7.18.15
- -
- * - stdc_bit_floor_ull
- - |check|
- - 7.18.15
- -
- * - stdc_bit_floor_us
- - |check|
- - 7.18.15
- -
- * - stdc_bit_width_uc
- - |check|
- - 7.18.14
- -
- * - stdc_bit_width_ui
- - |check|
- - 7.18.14
- -
- * - stdc_bit_width_ul
- - |check|
- - 7.18.14
- -
- * - stdc_bit_width_ull
- - |check|
- - 7.18.14
- -
- * - stdc_bit_width_us
- - |check|
- - 7.18.14
- -
- * - stdc_count_ones_uc
- - |check|
- - 7.18.12
- -
- * - stdc_count_ones_ui
- - |check|
- - 7.18.12
- -
- * - stdc_count_ones_ul
- - |check|
- - 7.18.12
- -
- * - stdc_count_ones_ull
- - |check|
- - 7.18.12
- -
- * - stdc_count_ones_us
- - |check|
- - 7.18.12
- -
- * - stdc_count_zeros_uc
- - |check|
- - 7.18.11
- -
- * - stdc_count_zeros_ui
- - |check|
- - 7.18.11
- -
- * - stdc_count_zeros_ul
- - |check|
- - 7.18.11
- -
- * - stdc_count_zeros_ull
- - |check|
- - 7.18.11
- -
- * - stdc_count_zeros_us
- - |check|
- - 7.18.11
- -
- * - stdc_first_leading_one_uc
- - |check|
- - 7.18.8
- -
- * - stdc_first_leading_one_ui
- - |check|
- - 7.18.8
- -
- * - stdc_first_leading_one_ul
- - |check|
- - 7.18.8
- -
- * - stdc_first_leading_one_ull
- - |check|
- - 7.18.8
- -
- * - stdc_first_leading_one_us
- - |check|
- - 7.18.8
- -
- * - stdc_first_leading_zero_uc
- - |check|
- - 7.18.7
- -
- * - stdc_first_leading_zero_ui
- - |check|
- - 7.18.7
- -
- * - stdc_first_leading_zero_ul
- - |check|
- - 7.18.7
- -
- * - stdc_first_leading_zero_ull
- - |check|
- - 7.18.7
- -
- * - stdc_first_leading_zero_us
- - |check|
- - 7.18.7
- -
- * - stdc_first_trailing_one_uc
- - |check|
- - 7.18.10
- -
- * - stdc_first_trailing_one_ui
- - |check|
- - 7.18.10
- -
- * - stdc_first_trailing_one_ul
- - |check|
- - 7.18.10
- -
- * - stdc_first_trailing_one_ull
- - |check|
- - 7.18.10
- -
- * - stdc_first_trailing_one_us
- - |check|
- - 7.18.10
- -
- * - stdc_first_trailing_zero_uc
- - |check|
- - 7.18.9
- -
- * - stdc_first_trailing_zero_ui
- - |check|
- - 7.18.9
- -
- * - stdc_first_trailing_zero_ul
- - |check|
- - 7.18.9
- -
- * - stdc_first_trailing_zero_ull
- - |check|
- - 7.18.9
- -
- * - stdc_first_trailing_zero_us
- - |check|
- - 7.18.9
- -
- * - stdc_has_single_bit_uc
- - |check|
- - 7.18.13
- -
- * - stdc_has_single_bit_ui
- - |check|
- - 7.18.13
- -
- * - stdc_has_single_bit_ul
- - |check|
- - 7.18.13
- -
- * - stdc_has_single_bit_ull
- - |check|
- - 7.18.13
- -
- * - stdc_has_single_bit_us
- - |check|
- - 7.18.13
- -
- * - stdc_leading_ones_uc
- - |check|
- - 7.18.4
- -
- * - stdc_leading_ones_ui
- - |check|
- - 7.18.4
- -
- * - stdc_leading_ones_ul
- - |check|
- - 7.18.4
- -
- * - stdc_leading_ones_ull
- - |check|
- - 7.18.4
- -
- * - stdc_leading_ones_us
- - |check|
- - 7.18.4
- -
- * - stdc_leading_zeros_uc
- - |check|
- - 7.18.3
- -
- * - stdc_leading_zeros_ui
- - |check|
- - 7.18.3
- -
- * - stdc_leading_zeros_ul
- - |check|
- - 7.18.3
- -
- * - stdc_leading_zeros_ull
- - |check|
- - 7.18.3
- -
- * - stdc_leading_zeros_us
- - |check|
- - 7.18.3
- -
- * - stdc_trailing_ones_uc
- - |check|
- - 7.18.6
- -
- * - stdc_trailing_ones_ui
- - |check|
- - 7.18.6
- -
- * - stdc_trailing_ones_ul
- - |check|
- - 7.18.6
- -
- * - stdc_trailing_ones_ull
- - |check|
- - 7.18.6
- -
- * - stdc_trailing_ones_us
- - |check|
- - 7.18.6
- -
- * - stdc_trailing_zeros_uc
- - |check|
- - 7.18.5
- -
- * - stdc_trailing_zeros_ui
- - |check|
- - 7.18.5
- -
- * - stdc_trailing_zeros_ul
- - |check|
- - 7.18.5
- -
- * - stdc_trailing_zeros_ull
- - |check|
- - 7.18.5
- -
- * - stdc_trailing_zeros_us
- - |check|
- - 7.18.5
- -
diff --git a/libc/docs/headers/stdio.rst b/libc/docs/headers/stdio.rst
deleted file mode 100644
index 1833eb5acf8ab1..00000000000000
--- a/libc/docs/headers/stdio.rst
+++ /dev/null
@@ -1,359 +0,0 @@
-.. include:: ../check.rst
-
-=======
-stdio.h
-=======
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - BUFSIZ
- - |check|
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - EOF
- - |check|
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - FILENAME_MAX
- -
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - FOPEN_MAX
- -
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - L_ctermid
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - L_tmpnam
- -
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - SEEK_CUR
- - |check|
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - SEEK_END
- - |check|
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - SEEK_SET
- - |check|
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - TMP_MAX
- -
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - _IOFBF
- - |check|
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - _IOLBF
- - |check|
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - _IONBF
- - |check|
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - _PRINTF_NAN_LEN_MAX
- -
- - 7.23.1
- -
- * - __STDC_VERSION_STDIO_H__
- -
- - 7.23.1
- -
- * - stderr
- - |check|
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - stdin
- - |check|
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
- * - stdout
- - |check|
- - 7.23.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdio.h.html>`__
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - clearerr
- - |check|
- - 7.23.10.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/clearerr.html>`__
- * - ctermid
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/ctermid.html>`__
- * - dprintf
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/dprintf.html>`__
- * - fclose
- - |check|
- - 7.23.5.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fclose.html>`__
- * - fdopen
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fdopen.html>`__
- * - feof
- - |check|
- - 7.23.10.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/feof.html>`__
- * - ferror
- - |check|
- - 7.23.10.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/ferror.html>`__
- * - fflush
- - |check|
- - 7.23.5.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fflush.html>`__
- * - fgetc
- - |check|
- - 7.23.7.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fgetc.html>`__
- * - fgetpos
- -
- - 7.23.9.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fgetpos.html>`__
- * - fgets
- - |check|
- - 7.23.7.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fgets.html>`__
- * - fileno
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fileno.html>`__
- * - flockfile
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/flockfile.html>`__
- * - fmemopen
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fmemopen.html>`__
- * - fopen
- - |check|
- - 7.23.5.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fopen.html>`__
- * - fprintf
- - |check|
- - 7.23.6.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fprintf.html>`__
- * - fputc
- - |check|
- - 7.23.7.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fputc.html>`__
- * - fputs
- - |check|
- - 7.23.7.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fputs.html>`__
- * - fread
- - |check|
- - 7.23.8.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fread.html>`__
- * - freopen
- -
- - 7.23.5.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/freopen.html>`__
- * - fscanf
- - |check|
- - 7.23.6.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fscanf.html>`__
- * - fseek
- - |check|
- - 7.23.9.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fseek.html>`__
- * - fseeko
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fseeko.html>`__
- * - fsetpos
- -
- - 7.23.9.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fsetpos.html>`__
- * - ftell
- - |check|
- - 7.23.9.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/ftell.html>`__
- * - ftello
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/ftello.html>`__
- * - ftrylockfile
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/ftrylockfile.html>`__
- * - funlockfile
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/funlockfile.html>`__
- * - fwrite
- - |check|
- - 7.23.8.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fwrite.html>`__
- * - getc
- - |check|
- - 7.23.7.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/getc.html>`__
- * - getchar
- - |check|
- - 7.23.7.6
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/getchar.html>`__
- * - getdelim
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/getdelim.html>`__
- * - getline
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/getline.html>`__
- * - open_memstream
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/open_memstream.html>`__
- * - pclose
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/pclose.html>`__
- * - perror
- -
- - 7.23.10.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/perror.html>`__
- * - popen
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/popen.html>`__
- * - printf
- - |check|
- - 7.23.6.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/printf.html>`__
- * - putc
- - |check|
- - 7.23.7.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/putc.html>`__
- * - putc_unlocked
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/putc_unlocked.html>`__
- * - putchar
- - |check|
- - 7.23.7.8
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/putchar.html>`__
- * - putchar_unlocked
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/putchar_unlocked.html>`__
- * - puts
- - |check|
- - 7.23.7.9
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/puts.html>`__
- * - remove
- - |check|
- - 7.23.4.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/remove.html>`__
- * - rename
- - |check|
- - 7.23.4.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/rename.html>`__
- * - renameat
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/renameat.html>`__
- * - rewind
- -
- - 7.23.9.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/rewind.html>`__
- * - scanf
- - |check|
- - 7.23.6.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/scanf.html>`__
- * - setbuf
- - |check|
- - 7.23.5.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/setbuf.html>`__
- * - setvbuf
- - |check|
- - 7.23.5.6
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/setvbuf.html>`__
- * - snprintf
- - |check|
- - 7.23.6.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/snprintf.html>`__
- * - sprintf
- - |check|
- - 7.23.6.6
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/sprintf.html>`__
- * - sscanf
- - |check|
- - 7.23.6.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/sscanf.html>`__
- * - tmpfile
- -
- - 7.23.4.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/tmpfile.html>`__
- * - tmpnam
- -
- - 7.23.4.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/tmpnam.html>`__
- * - ungetc
- - |check|
- - 7.23.7.10
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/ungetc.html>`__
- * - vdprintf
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/vdprintf.html>`__
- * - vfprintf
- - |check|
- - 7.23.6.8
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/vfprintf.html>`__
- * - vfscanf
- - |check|
- - 7.23.6.9
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/vfscanf.html>`__
- * - vprintf
- - |check|
- - 7.23.6.10
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/vprintf.html>`__
- * - vscanf
- - |check|
- - 7.23.6.11
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/vscanf.html>`__
- * - vsnprintf
- - |check|
- - 7.23.6.12
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/vsnprintf.html>`__
- * - vsprintf
- - |check|
- - 7.23.6.13
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/vsprintf.html>`__
- * - vsscanf
- - |check|
- - 7.23.6.14
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/vsscanf.html>`__
diff --git a/libc/docs/headers/stdlib.rst b/libc/docs/headers/stdlib.rst
deleted file mode 100644
index 4151f2934c9404..00000000000000
--- a/libc/docs/headers/stdlib.rst
+++ /dev/null
@@ -1,255 +0,0 @@
-.. include:: ../check.rst
-
-========
-stdlib.h
-========
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - EXIT_FAILURE
- - |check|
- - 7.24
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdlib.h.html>`__
- * - EXIT_SUCCESS
- - |check|
- - 7.24
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdlib.h.html>`__
- * - MB_CUR_MAX
- - |check|
- - 7.24
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdlib.h.html>`__
- * - RAND_MAX
- - |check|
- - 7.24
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdlib.h.html>`__
- * - __STDC_VERSION_STDLIB_H__
- -
- - 7.24
- -
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - _Exit
- - |check|
- - 7.24.4.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/_Exit.html>`__
- * - abort
- - |check|
- - 7.24.4.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/abort.html>`__
- * - abs
- - |check|
- - 7.24.6.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/abs.html>`__
- * - aligned_alloc
- - |check|
- - 7.24.3.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/aligned_alloc.html>`__
- * - at_quick_exit
- - |check|
- - 7.24.4.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/at_quick_exit.html>`__
- * - atexit
- - |check|
- - 7.24.4.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/atexit.html>`__
- * - atof
- - |check|
- - 7.24.1.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/atof.html>`__
- * - atoi
- - |check|
- - 7.24.1.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/atoi.html>`__
- * - atol
- - |check|
- - 7.24.1.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/atol.html>`__
- * - atoll
- - |check|
- - 7.24.1.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/atoll.html>`__
- * - bsearch
- - |check|
- - 7.24.5.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/bsearch.html>`__
- * - calloc
- - |check|
- - 7.24.3.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/calloc.html>`__
- * - div
- - |check|
- - 7.24.6.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/div.html>`__
- * - exit
- - |check|
- - 7.24.4.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/exit.html>`__
- * - free
- - |check|
- - 7.24.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/free.html>`__
- * - free_aligned_sized
- -
- - 7.24.3.5
- -
- * - free_sized
- -
- - 7.24.3.4
- -
- * - getenv
- - |check|
- - 7.24.4.6
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/getenv.html>`__
- * - labs
- - |check|
- - 7.24.6.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/labs.html>`__
- * - ldiv
- - |check|
- - 7.24.6.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/ldiv.html>`__
- * - llabs
- - |check|
- - 7.24.6.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/llabs.html>`__
- * - lldiv
- - |check|
- - 7.24.6.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/lldiv.html>`__
- * - malloc
- - |check|
- - 7.24.3.6
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/malloc.html>`__
- * - mblen
- -
- - 7.24.7.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/mblen.html>`__
- * - mbstowcs
- -
- - 7.24.8.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/mbstowcs.html>`__
- * - mbtowc
- -
- - 7.24.7.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/mbtowc.html>`__
- * - memalignment
- -
- - 7.24.9.1
- -
- * - qsort
- - |check|
- - 7.24.5.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/qsort.html>`__
- * - quick_exit
- - |check|
- - 7.24.4.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/quick_exit.html>`__
- * - rand
- - |check|
- - 7.24.2.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/rand.html>`__
- * - realloc
- - |check|
- - 7.24.3.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/realloc.html>`__
- * - srand
- - |check|
- - 7.24.2.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/srand.html>`__
- * - strfromd
- - |check|
- - 7.24.1.3
- -
- * - strfromd128
- -
- - 7.24.1.4
- -
- * - strfromd32
- -
- - 7.24.1.4
- -
- * - strfromd64
- -
- - 7.24.1.4
- -
- * - strfromf
- - |check|
- - 7.24.1.3
- -
- * - strfroml
- - |check|
- - 7.24.1.3
- -
- * - strtod
- - |check|
- - 7.24.1.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtod.html>`__
- * - strtod128
- -
- - 7.24.1.6
- -
- * - strtod32
- -
- - 7.24.1.6
- -
- * - strtod64
- -
- - 7.24.1.6
- -
- * - strtof
- - |check|
- - 7.24.1.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtof.html>`__
- * - strtol
- - |check|
- - 7.24.1.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtol.html>`__
- * - strtold
- - |check|
- - 7.24.1.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtold.html>`__
- * - strtoll
- - |check|
- - 7.24.1.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtoll.html>`__
- * - strtoul
- - |check|
- - 7.24.1.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtoul.html>`__
- * - strtoull
- - |check|
- - 7.24.1.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtoull.html>`__
- * - system
- - |check|
- - 7.24.4.8
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/system.html>`__
- * - wcstombs
- -
- - 7.24.8.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/wcstombs.html>`__
- * - wctomb
- -
- - 7.24.7.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/wctomb.html>`__
diff --git a/libc/docs/headers/string.rst b/libc/docs/headers/string.rst
deleted file mode 100644
index 2665ed8ca17e69..00000000000000
--- a/libc/docs/headers/string.rst
+++ /dev/null
@@ -1,163 +0,0 @@
-.. include:: ../check.rst
-
-========
-string.h
-========
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - __STDC_VERSION_STRING_H__
- -
- - 7.26.1
- -
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - memccpy
- - |check|
- - 7.26.2.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/memccpy.html>`__
- * - memchr
- - |check|
- - 7.26.5.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/memchr.html>`__
- * - memcmp
- - |check|
- - 7.26.4.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/memcmp.html>`__
- * - memcpy
- - |check|
- - 7.26.2.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/memcpy.html>`__
- * - memmove
- - |check|
- - 7.26.2.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/memmove.html>`__
- * - mempcpy
- - |check|
- - TODO: glibc extension
- -
- * - memset
- - |check|
- - 7.26.6.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/memset.html>`__
- * - memset_explicit
- - |check|
- - 7.26.6.2
- -
- * - stpcpy
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/stpcpy.html>`__
- * - stpncpy
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/stpncpy.html>`__
- * - strcat
- - |check|
- - 7.26.3.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strcat.html>`__
- * - strchr
- - |check|
- - 7.26.5.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strchr.html>`__
- * - strcmp
- - |check|
- - 7.26.4.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strcmp.html>`__
- * - strcoll
- - |check|
- - 7.26.4.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strcoll.html>`__
- * - strcoll_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strcoll_l.html>`__
- * - strcpy
- - |check|
- - 7.26.2.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strcpy.html>`__
- * - strcspn
- - |check|
- - 7.26.5.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strcspn.html>`__
- * - strdup
- - |check|
- - 7.26.2.6
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strdup.html>`__
- * - strerror
- - |check|
- - 7.26.6.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strerror.html>`__
- * - strlen
- - |check|
- - 7.26.6.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strlen.html>`__
- * - strncat
- - |check|
- - 7.26.3.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strncat.html>`__
- * - strncmp
- - |check|
- - 7.26.4.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strncmp.html>`__
- * - strncpy
- - |check|
- - 7.26.2.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strncpy.html>`__
- * - strndup
- - |check|
- - 7.26.2.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strndup.html>`__
- * - strpbrk
- - |check|
- - 7.26.5.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strpbrk.html>`__
- * - strrchr
- - |check|
- - 7.26.5.6
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strrchr.html>`__
- * - strspn
- - |check|
- - 7.26.5.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strspn.html>`__
- * - strstr
- - |check|
- - 7.26.5.8
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strstr.html>`__
- * - strtok
- - |check|
- - 7.26.5.9
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtok.html>`__
- * - strtok_r
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strtok_r.html>`__
- * - strxfrm
- - |check|
- - 7.26.4.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strxfrm.html>`__
- * - strxfrm_l
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strxfrm_l.html>`__
diff --git a/libc/docs/headers/strings.rst b/libc/docs/headers/strings.rst
deleted file mode 100644
index effd667cd5219f..00000000000000
--- a/libc/docs/headers/strings.rst
+++ /dev/null
@@ -1,66 +0,0 @@
-.. include:: ../check.rst
-
-=========
-strings.h
-=========
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - bcmp
- - |check|
- -
- - `removed in POSIX.1-2008 <https://pubs.opengroup.org/onlinepubs/007904875/functions/bcmp.html>`__
- * - bcopy
- - |check|
- -
- - `removed in POSIX.1-2008 <https://pubs.opengroup.org/onlinepubs/007904875/functions/bcopy.html>`__
- * - bzero
- - |check|
- -
- - `removed in POSIX.1-2008 <https://pubs.opengroup.org/onlinepubs/007904875/functions/bzero.html>`__
- * - ffs
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/ffs.html>`__
- * - ffsl
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/ffsl.html>`__
- * - ffsll
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/ffsll.html>`__
- * - index
- - |check|
- -
- - `removed in POSIX.1-2008 <https://pubs.opengroup.org/onlinepubs/007904875/functions/index.html>`__
- * - rindex
- - |check|
- -
- - `removed in POSIX.1-2008 <https://pubs.opengroup.org/onlinepubs/007904875/functions/rindex.html>`__
- * - strcasecmp
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strcasecmp.html>`__
- * - strcasecmp_l
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strcasecmp_l.html>`__
- * - strncasecmp
- - |check|
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strncasecmp.html>`__
- * - strncasecmp_l
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/strncasecmp_l.html>`__
diff --git a/libc/docs/headers/threads.rst b/libc/docs/headers/threads.rst
deleted file mode 100644
index c2837b8c3591cf..00000000000000
--- a/libc/docs/headers/threads.rst
+++ /dev/null
@@ -1,147 +0,0 @@
-.. include:: ../check.rst
-
-=========
-threads.h
-=========
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - ONCE_FLAG_INIT
- -
- - 7.28.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/threads.h.html>`__
- * - TSS_DTOR_ITERATIONS
- -
- - 7.28.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/threads.h.html>`__
- * - __STDC_NO_THREADS__
- -
- - 7.28.1
- -
- * - thread_local
- -
- -
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/threads.h.html>`__
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - call_once
- - |check|
- - 7.28.2.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/call_once.html>`__
- * - cnd_broadcast
- - |check|
- - 7.28.3.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/cnd_broadcast.html>`__
- * - cnd_destroy
- - |check|
- - 7.28.3.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/cnd_destroy.html>`__
- * - cnd_init
- - |check|
- - 7.28.3.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/cnd_init.html>`__
- * - cnd_signal
- - |check|
- - 7.28.3.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/cnd_signal.html>`__
- * - cnd_timedwait
- -
- - 7.28.3.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/cnd_timedwait.html>`__
- * - cnd_wait
- - |check|
- - 7.28.3.6
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/cnd_wait.html>`__
- * - mtx_destroy
- - |check|
- - 7.28.4.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/mtx_destroy.html>`__
- * - mtx_init
- - |check|
- - 7.28.4.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/mtx_init.html>`__
- * - mtx_lock
- - |check|
- - 7.28.4.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/mtx_lock.html>`__
- * - mtx_timedlock
- -
- - 7.28.4.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/mtx_timedlock.html>`__
- * - mtx_trylock
- -
- - 7.28.4.6
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/mtx_trylock.html>`__
- * - mtx_unlock
- - |check|
- - 7.28.4.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/mtx_unlock.html>`__
- * - thrd_create
- - |check|
- - 7.28.5.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/thrd_create.html>`__
- * - thrd_current
- - |check|
- - 7.28.5.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/thrd_current.html>`__
- * - thrd_detach
- - |check|
- - 7.28.5.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/thrd_detach.html>`__
- * - thrd_equal
- - |check|
- - 7.28.5.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/thrd_equal.html>`__
- * - thrd_exit
- - |check|
- - 7.28.5.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/thrd_exit.html>`__
- * - thrd_join
- - |check|
- - 7.28.5.6
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/thrd_join.html>`__
- * - thrd_sleep
- -
- - 7.28.5.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/thrd_sleep.html>`__
- * - thrd_yield
- -
- - 7.28.5.8
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/thrd_yield.html>`__
- * - tss_create
- - |check|
- - 7.28.6.1
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/tss_create.html>`__
- * - tss_delete
- - |check|
- - 7.28.6.2
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/tss_delete.html>`__
- * - tss_get
- - |check|
- - 7.28.6.3
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/tss_get.html>`__
- * - tss_set
- - |check|
- - 7.28.6.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/tss_set.html>`__
diff --git a/libc/docs/headers/uchar.rst b/libc/docs/headers/uchar.rst
deleted file mode 100644
index abb684bf9ae0e2..00000000000000
--- a/libc/docs/headers/uchar.rst
+++ /dev/null
@@ -1,59 +0,0 @@
-.. include:: ../check.rst
-
-=======
-uchar.h
-=======
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - __STDC_VERSION_UCHAR_H__
- -
- - 7.30.1
- -
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - c16rtomb
- -
- - 7.30.2.5
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/c16rtomb.html>`__
- * - c32rtomb
- -
- - 7.30.2.7
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/c32rtomb.html>`__
- * - c8rtomb
- -
- - 7.30.2.3
- -
- * - mbrtoc16
- -
- - 7.30.2.4
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/mbrtoc16.html>`__
- * - mbrtoc32
- -
- - 7.30.2.6
- - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/mbrtoc32.html>`__
- * - mbrtoc8
- -
- - 7.30.2.2
- -
diff --git a/libc/docs/headers/wchar.rst b/libc/docs/headers/wchar.rst
deleted file mode 100644
index 89a1e7b3fe660a..00000000000000
--- a/libc/docs/headers/wchar.rst
+++ /dev/null
@@ -1,287 +0,0 @@
-.. include:: ../check.rst
-
-=======
-wchar.h
-=======
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - WEOF
- - |check|
- - 7.31.1
- -
- * - __STDC_VERSION_WCHAR_H__
- -
- - 7.31.1
- -
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - btowc
- - |check|
- - 7.31.6.2.1
- -
- * - fgetwc
- -
- - 7.31.3.1
- -
- * - fgetws
- -
- - 7.31.3.2
- -
- * - fputwc
- -
- - 7.31.3.3
- -
- * - fputws
- -
- - 7.31.3.4
- -
- * - fwide
- -
- - 7.31.3.5
- -
- * - fwprintf
- -
- - 7.31.2.2
- -
- * - fwscanf
- -
- - 7.31.2.3
- -
- * - getwc
- -
- - 7.31.3.6
- -
- * - getwchar
- -
- - 7.31.3.7
- -
- * - mbrlen
- -
- - 7.31.6.4.2
- -
- * - mbrtowc
- -
- - 7.31.6.4.3
- -
- * - mbsinit
- -
- - 7.31.6.3.1
- -
- * - mbsrtowcs
- -
- - 7.31.6.5.2
- -
- * - putwc
- -
- - 7.31.3.8
- -
- * - putwchar
- -
- - 7.31.3.9
- -
- * - swprintf
- -
- - 7.31.2.4
- -
- * - swscanf
- -
- - 7.31.2.5
- -
- * - ungetwc
- -
- - 7.31.3.10
- -
- * - vfwprintf
- -
- - 7.31.2.6
- -
- * - vfwscanf
- -
- - 7.31.2.7
- -
- * - vswprintf
- -
- - 7.31.2.8
- -
- * - vswscanf
- -
- - 7.31.2.9
- -
- * - vwprintf
- -
- - 7.31.2.10
- -
- * - vwscanf
- -
- - 7.31.2.11
- -
- * - wcrtomb
- -
- - 7.31.6.4.4
- -
- * - wcscat
- -
- - 7.31.4.4.1
- -
- * - wcschr
- -
- - 7.31.4.6.2
- -
- * - wcscmp
- -
- - 7.31.4.5.2
- -
- * - wcscoll
- -
- - 7.31.4.5.3
- -
- * - wcscpy
- -
- - 7.31.4.3.1
- -
- * - wcscspn
- -
- - 7.31.4.6.3
- -
- * - wcsftime
- -
- - 7.31.5.1
- -
- * - wcslen
- -
- - 7.31.4.7.1
- -
- * - wcsncat
- -
- - 7.31.4.4.2
- -
- * - wcsncmp
- -
- - 7.31.4.5.4
- -
- * - wcsncpy
- -
- - 7.31.4.3.2
- -
- * - wcspbrk
- -
- - 7.31.4.6.4
- -
- * - wcsrchr
- -
- - 7.31.4.6.5
- -
- * - wcsrtombs
- -
- - 7.31.6.5.3
- -
- * - wcsspn
- -
- - 7.31.4.6.6
- -
- * - wcsstr
- -
- - 7.31.4.6.7
- -
- * - wcstod
- -
- - 7.31.4.2.2
- -
- * - wcstod128
- -
- - 7.31.4.2.3
- -
- * - wcstod32
- -
- - 7.31.4.2.3
- -
- * - wcstod64
- -
- - 7.31.4.2.3
- -
- * - wcstof
- -
- - 7.31.4.2.2
- -
- * - wcstok
- -
- - 7.31.4.6.8
- -
- * - wcstol
- -
- - 7.31.4.2.4
- -
- * - wcstold
- -
- - 7.31.4.2.2
- -
- * - wcstoll
- -
- - 7.31.4.2.4
- -
- * - wcstoul
- -
- - 7.31.4.2.4
- -
- * - wcstoull
- -
- - 7.31.4.2.4
- -
- * - wcsxfrm
- -
- - 7.31.4.5.5
- -
- * - wctob
- - |check|
- - 7.31.6.2.2
- -
- * - wmemchr
- -
- - 7.31.4.6.9
- -
- * - wmemcmp
- -
- - 7.31.4.5.6
- -
- * - wmemcpy
- -
- - 7.31.4.3.3
- -
- * - wmemmove
- -
- - 7.31.4.3.4
- -
- * - wmemset
- -
- - 7.31.4.7.2
- -
- * - wprintf
- -
- - 7.31.2.12
- -
- * - wscanf
- -
- - 7.31.2.13
- -
diff --git a/libc/docs/headers/wctype.rst b/libc/docs/headers/wctype.rst
deleted file mode 100644
index 076db04f183e9e..00000000000000
--- a/libc/docs/headers/wctype.rst
+++ /dev/null
@@ -1,86 +0,0 @@
-.. include:: ../check.rst
-
-========
-wctype.h
-========
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX Docs
- * - iswalnum
- -
- - 7.32.2.1.1
- -
- * - iswalpha
- -
- - 7.32.2.1.2
- -
- * - iswblank
- -
- - 7.32.2.1.4
- -
- * - iswctype
- -
- - 7.32.2.2.1
- -
- * - iswdigit
- -
- - 7.32.2.1.5
- -
- * - iswgraph
- -
- - 7.32.2.1.6
- -
- * - iswlower
- -
- - 7.32.2.1.7
- -
- * - iswprint
- -
- - 7.32.2.1.8
- -
- * - iswpunct
- -
- - 7.32.2.1.9
- -
- * - iswspace
- -
- - 7.32.2.1.10
- -
- * - iswupper
- -
- - 7.32.2.1.11
- -
- * - iswxdigit
- -
- - 7.32.2.1.12
- -
- * - towctrans
- -
- - 7.32.3.2.1
- -
- * - towlower
- -
- - 7.32.3.1.1
- -
- * - towupper
- -
- - 7.32.3.1.2
- -
- * - wctrans
- -
- - 7.32.3.2.2
- -
- * - wctype
- -
- - 7.32.2.2.2
- -
>From ce6b5c517eb09d7b4bb1861aa0ce9683cbaa740a Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <ndesaulniers at google.com>
Date: Thu, 19 Dec 2024 14:18:32 -0800
Subject: [PATCH 4/5] add arpa/inet and sys/mman
---
libc/docs/CMakeLists.txt | 22 +++-
libc/docs/headers/arpa/inet.rst | 50 ---------
libc/docs/headers/sys/mman.rst | 179 -------------------------------
libc/utils/docgen/arpa/inet.yaml | 16 +--
libc/utils/docgen/sys/mman.yaml | 74 ++++++-------
5 files changed, 65 insertions(+), 276 deletions(-)
delete mode 100644 libc/docs/headers/arpa/inet.rst
delete mode 100644 libc/docs/headers/sys/mman.rst
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index 60c4ea72deebce..c8ba8b3b05204c 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -10,6 +10,17 @@ if (SPHINX_FOUND)
COMMAND "${CMAKE_COMMAND}" -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}")
+ # For headers that are nested in directories, we need to
+ # `mkdir $build_dir/libc/docs/headers/$dir` since the above copy_directory
+ # command does not create such copies. Otherwise, the invocation of docgen
+ # below will fail since the output file would be placed in a directory that
+ # does not exist, leading to a `No such file or directory` error from the
+ # shell.
+ file(MAKE_DIRECTORY
+ "${CMAKE_CURRENT_BINARY_DIR}/headers/arpa/"
+ "${CMAKE_CURRENT_BINARY_DIR}/headers/sys/"
+ )
+
# Change sphinx to build from $build_dir/libc/docs/ rather than
# llvm-project/libc/docs/.
add_sphinx_target(html libc SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}")
@@ -21,6 +32,7 @@ if (SPHINX_FOUND)
# math.h), those should be omitted and exist statically in
# libc/docs/headers/.
list(APPEND docgen_list
+ arpa/inet
assert
ctype
errno
@@ -34,6 +46,7 @@ if (SPHINX_FOUND)
stdlib
string
strings
+ sys/mman
threads
uchar
wchar
@@ -41,12 +54,17 @@ if (SPHINX_FOUND)
)
foreach(stem IN LISTS docgen_list)
+ # It is an error in cmake to have a target name that contains a "/", but
+ # docgen relies on the "/" to find headers nested under directories.
+ # Replace with underscore.
+ string(REPLACE "/" "_" stem_rst ${stem})
+
# docgen invocation.
- add_custom_target(${stem}_rst
+ add_custom_target(${stem_rst}
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../utils/docgen/docgen.py ${stem}.h >
${CMAKE_CURRENT_BINARY_DIR}/headers/${stem}.rst)
# depend on the docgen invocation.
- add_dependencies(docs-libc-html ${stem}_rst)
+ add_dependencies(docs-libc-html ${stem_rst})
endforeach()
endif()
endif()
diff --git a/libc/docs/headers/arpa/inet.rst b/libc/docs/headers/arpa/inet.rst
deleted file mode 100644
index c82ca5427fbbb7..00000000000000
--- a/libc/docs/headers/arpa/inet.rst
+++ /dev/null
@@ -1,50 +0,0 @@
-.. include:: ../../check.rst
-
-===========
-arpa/inet.h
-===========
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX.1-2024 Standard Section
- * - htonl
- - |check|
- -
- -
- * - htons
- - |check|
- -
- -
- * - inet_addr
- -
- -
- -
- * - inet_ntoa
- -
- -
- -
- * - inet_ntop
- -
- -
- -
- * - inet_pton
- -
- -
- -
- * - ntohl
- - |check|
- -
- -
- * - ntohs
- - |check|
- -
- -
diff --git a/libc/docs/headers/sys/mman.rst b/libc/docs/headers/sys/mman.rst
deleted file mode 100644
index e3404205c07aca..00000000000000
--- a/libc/docs/headers/sys/mman.rst
+++ /dev/null
@@ -1,179 +0,0 @@
-.. include:: ../../check.rst
-
-==========
-sys/mman.h
-==========
-
-Macros
-======
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Macro
- - Implemented
- - C23 Standard Section
- - POSIX.1-2024 Standard Section
- * - MAP_ANON
- -
- -
- -
- * - MAP_ANONYMOUS
- -
- -
- -
- * - MAP_FAILED
- - |check|
- -
- -
- * - MAP_FIXED
- -
- -
- -
- * - MAP_PRIVATE
- -
- -
- -
- * - MAP_SHARED
- -
- -
- -
- * - MCL_CURRENT
- -
- -
- -
- * - MCL_FUTURE
- -
- -
- -
- * - MS_ASYNC
- -
- -
- -
- * - MS_INVALIDATE
- -
- -
- -
- * - MS_SYNC
- -
- -
- -
- * - POSIX_MADV_DONTNEED
- - |check|
- -
- -
- * - POSIX_MADV_NORMAL
- - |check|
- -
- -
- * - POSIX_MADV_RANDOM
- - |check|
- -
- -
- * - POSIX_MADV_SEQUENTIAL
- - |check|
- -
- -
- * - POSIX_MADV_WILLNEED
- - |check|
- -
- -
- * - POSIX_TYPED_MEM_ALLOCATE
- -
- -
- -
- * - POSIX_TYPED_MEM_ALLOCATE_CONTIG
- -
- -
- -
- * - POSIX_TYPED_MEM_MAP_ALLOCATABLE
- -
- -
- -
- * - PROT_EXEC
- -
- -
- -
- * - PROT_NONE
- -
- -
- -
- * - PROT_READ
- -
- -
- -
- * - PROT_WRITE
- -
- -
- -
-
-Functions
-=========
-
-.. list-table::
- :widths: auto
- :align: center
- :header-rows: 1
-
- * - Function
- - Implemented
- - C23 Standard Section
- - POSIX.1-2024 Standard Section
- * - mlock
- - |check|
- -
- -
- * - mlockall
- - |check|
- -
- -
- * - mmap
- - |check|
- -
- -
- * - mprotect
- - |check|
- -
- -
- * - msync
- - |check|
- -
- -
- * - munlock
- - |check|
- -
- -
- * - munlockall
- - |check|
- -
- -
- * - munmap
- - |check|
- -
- -
- * - posix_madvise
- - |check|
- -
- -
- * - posix_mem_offset
- -
- -
- -
- * - posix_typed_mem_get_info
- -
- -
- -
- * - posix_typed_mem_open
- -
- -
- -
- * - shm_open
- - |check|
- -
- -
- * - shm_unlink
- - |check|
- -
- -
diff --git a/libc/utils/docgen/arpa/inet.yaml b/libc/utils/docgen/arpa/inet.yaml
index 7f388cbbd0204b..d72575981f7993 100644
--- a/libc/utils/docgen/arpa/inet.yaml
+++ b/libc/utils/docgen/arpa/inet.yaml
@@ -1,18 +1,18 @@
functions:
htonl:
- posix-definition: ''
+ in-latest-posix: ''
htons:
- posix-definition: ''
+ in-latest-posix: ''
inet_addr:
- posix-definition: ''
+ in-latest-posix: ''
inet_ntoa:
- posix-definition: ''
+ in-latest-posix: ''
inet_ntop:
- posix-definition: ''
+ in-latest-posix: ''
inet_pton:
- posix-definition: ''
+ in-latest-posix: ''
ntohl:
- posix-definition: ''
+ in-latest-posix: ''
ntohs:
- posix-definition: ''
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/sys/mman.yaml b/libc/utils/docgen/sys/mman.yaml
index dba26cabc66214..94c6b9b6c77b5f 100644
--- a/libc/utils/docgen/sys/mman.yaml
+++ b/libc/utils/docgen/sys/mman.yaml
@@ -1,77 +1,77 @@
functions:
mlock:
- posix-definition: ''
+ in-latest-posix: ''
mlockall:
- posix-definition: ''
+ in-latest-posix: ''
mmap:
- posix-definition: ''
+ in-latest-posix: ''
mprotect:
- posix-definition: ''
+ in-latest-posix: ''
msync:
- posix-definition: ''
+ in-latest-posix: ''
munlock:
- posix-definition: ''
+ in-latest-posix: ''
munlockall:
- posix-definition: ''
+ in-latest-posix: ''
munmap:
- posix-definition: ''
+ in-latest-posix: ''
posix_madvise:
- posix-definition: ''
+ in-latest-posix: ''
posix_mem_offset:
- posix-definition: ''
+ in-latest-posix: ''
posix_typed_mem_get_info:
- posix-definition: ''
+ in-latest-posix: ''
posix_typed_mem_open:
- posix-definition: ''
+ in-latest-posix: ''
shm_open:
- posix-definition: ''
+ in-latest-posix: ''
shm_unlink:
- posix-definition: ''
+ in-latest-posix: ''
macros:
MAP_ANON:
- posix-definition: ''
+ in-latest-posix: ''
MAP_ANONYMOUS:
- posix-definition: ''
+ in-latest-posix: ''
MAP_FAILED:
- posix-definition: ''
+ in-latest-posix: ''
MAP_FIXED:
- posix-definition: ''
+ in-latest-posix: ''
MAP_PRIVATE:
- posix-definition: ''
+ in-latest-posix: ''
MAP_SHARED:
- posix-definition: ''
+ in-latest-posix: ''
MCL_CURRENT:
- posix-definition: ''
+ in-latest-posix: ''
MCL_FUTURE:
- posix-definition: ''
+ in-latest-posix: ''
MS_ASYNC:
- posix-definition: ''
+ in-latest-posix: ''
MS_INVALIDATE:
- posix-definition: ''
+ in-latest-posix: ''
MS_SYNC:
- posix-definition: ''
+ in-latest-posix: ''
POSIX_MADV_DONTNEED:
- posix-definition: ''
+ in-latest-posix: ''
POSIX_MADV_NORMAL:
- posix-definition: ''
+ in-latest-posix: ''
POSIX_MADV_RANDOM:
- posix-definition: ''
+ in-latest-posix: ''
POSIX_MADV_SEQUENTIAL:
- posix-definition: ''
+ in-latest-posix: ''
POSIX_MADV_WILLNEED:
- posix-definition: ''
+ in-latest-posix: ''
POSIX_TYPED_MEM_ALLOCATE:
- posix-definition: ''
+ in-latest-posix: ''
POSIX_TYPED_MEM_ALLOCATE_CONTIG:
- posix-definition: ''
+ in-latest-posix: ''
POSIX_TYPED_MEM_MAP_ALLOCATABLE:
- posix-definition: ''
+ in-latest-posix: ''
PROT_EXEC:
- posix-definition: ''
+ in-latest-posix: ''
PROT_NONE:
- posix-definition: ''
+ in-latest-posix: ''
PROT_READ:
- posix-definition: ''
+ in-latest-posix: ''
PROT_WRITE:
- posix-definition: ''
+ in-latest-posix: ''
>From 0b703e416f21880db732066ff46beaedf5c2c10c Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <ndesaulniers at google.com>
Date: Thu, 19 Dec 2024 14:28:16 -0800
Subject: [PATCH 5/5] fix rebase
---
libc/docs/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index c8ba8b3b05204c..a478d65553b8f6 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -43,6 +43,7 @@ if (SPHINX_FOUND)
setjmp
signal
stdbit
+ stdio
stdlib
string
strings
More information about the libc-commits
mailing list