diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt index be09423d38e8e..5a3f8275bb932 100644 --- a/libc/docs/CMakeLists.txt +++ b/libc/docs/CMakeLists.txt @@ -1,9 +1,72 @@ - 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}") + + # 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}") + # 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 + arpa/inet + assert + ctype + errno + fenv + float + inttypes + locale + setjmp + signal + stdbit + stdio + stdlib + string + strings + sys/mman + threads + uchar + wchar + wctype + ) + + 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} + 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}) + endforeach() endif() endif() endif() diff --git a/libc/docs/headers/arpa/inet.rst b/libc/docs/headers/arpa/inet.rst deleted file mode 100644 index c82ca5427fbbb..0000000000000 --- 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/assert.rst b/libc/docs/headers/assert.rst deleted file mode 100644 index 682170755ba43..0000000000000 --- 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 `__ - diff --git a/libc/docs/headers/ctype.rst b/libc/docs/headers/ctype.rst deleted file mode 100644 index 9b5b1574fd274..0000000000000 --- 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 `__ - * - isalnum_l - - |check| - - - - `POSIX.1-2024 `__ - * - isalpha - - |check| - - 7.4.1.2 - - `POSIX.1-2024 `__ - * - isalpha_l - - |check| - - - - `POSIX.1-2024 `__ - * - isblank - - |check| - - 7.4.1.3 - - `POSIX.1-2024 `__ - * - isblank_l - - |check| - - - - `POSIX.1-2024 `__ - * - iscntrl - - |check| - - 7.4.1.4 - - `POSIX.1-2024 `__ - * - iscntrl_l - - |check| - - - - `POSIX.1-2024 `__ - * - isdigit - - |check| - - 7.4.1.5 - - `POSIX.1-2024 `__ - * - isdigit_l - - |check| - - - - `POSIX.1-2024 `__ - * - isgraph - - |check| - - 7.4.1.6 - - `POSIX.1-2024 `__ - * - isgraph_l - - |check| - - - - `POSIX.1-2024 `__ - * - islower - - |check| - - 7.4.1.7 - - `POSIX.1-2024 `__ - * - islower_l - - |check| - - - - `POSIX.1-2024 `__ - * - isprint - - |check| - - 7.4.1.8 - - `POSIX.1-2024 `__ - * - isprint_l - - |check| - - - - `POSIX.1-2024 `__ - * - ispunct - - |check| - - 7.4.1.9 - - `POSIX.1-2024 `__ - * - ispunct_l - - |check| - - - - `POSIX.1-2024 `__ - * - isspace - - |check| - - 7.4.1.10 - - `POSIX.1-2024 `__ - * - isspace_l - - |check| - - - - `POSIX.1-2024 `__ - * - isupper - - |check| - - 7.4.1.11 - - `POSIX.1-2024 `__ - * - isupper_l - - |check| - - - - `POSIX.1-2024 `__ - * - isxdigit - - |check| - - 7.4.1.12 - - `POSIX.1-2024 `__ - * - isxdigit_l - - |check| - - - - `POSIX.1-2024 `__ - * - tolower - - |check| - - 7.4.2.1 - - `POSIX.1-2024 `__ - * - tolower_l - - |check| - - - - `POSIX.1-2024 `__ - * - toupper - - |check| - - 7.4.2.2 - - `POSIX.1-2024 `__ - * - toupper_l - - |check| - - - - `POSIX.1-2024 `__ diff --git a/libc/docs/headers/errno.rst b/libc/docs/headers/errno.rst deleted file mode 100644 index b2b2e62728e1a..0000000000000 --- 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 `__ - * - EILSEQ - - - - 7.5 - - `POSIX.1-2024 `__ - * - ERANGE - - - - 7.5 - - `POSIX.1-2024 `__ - * - errno - - - - 7.5 - - `POSIX.1-2024 `__ - diff --git a/libc/docs/headers/fenv.rst b/libc/docs/headers/fenv.rst deleted file mode 100644 index d0e3c5dda6d00..0000000000000 --- 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 `__ - * - 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 `__ - * - FE_DFL_MODE - - - - 7.6.11 - - - * - FE_DIVBYZERO - - |check| - - 7.6.9 - - `POSIX.1-2024 `__ - * - FE_DOWNWARD - - |check| - - 7.6.13 - - `POSIX.1-2024 `__ - * - FE_INEXACT - - |check| - - 7.6.9 - - `POSIX.1-2024 `__ - * - FE_INVALID - - |check| - - 7.6.9 - - `POSIX.1-2024 `__ - * - FE_OVERFLOW - - |check| - - 7.6.9 - - `POSIX.1-2024 `__ - * - FE_TONEAREST - - |check| - - 7.6.13 - - `POSIX.1-2024 `__ - * - FE_TONEARESTFROMZERO - - - - 7.6.13 - - - * - FE_TOWARDZERO - - |check| - - 7.6.13 - - `POSIX.1-2024 `__ - * - FE_UNDERFLOW - - |check| - - 7.6.9 - - `POSIX.1-2024 `__ - * - FE_UPWARD - - |check| - - 7.6.13 - - `POSIX.1-2024 `__ - * - __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 `__ - * - fegetenv - - |check| - - 7.6.6.1 - - `POSIX.1-2024 `__ - * - fegetexceptflag - - |check| - - 7.6.4.2 - - `POSIX.1-2024 `__ - * - fegetmode - - - - 7.6.5.1 - - - * - fegetround - - |check| - - 7.6.5.2 - - `POSIX.1-2024 `__ - * - feholdexcept - - |check| - - 7.6.6.2 - - `POSIX.1-2024 `__ - * - feraiseexcept - - |check| - - 7.6.4.3 - - `POSIX.1-2024 `__ - * - fesetenv - - |check| - - 7.6.6.3 - - `POSIX.1-2024 `__ - * - fesetexcept - - |check| - - 7.6.4.4 - - - * - fesetexceptflag - - |check| - - 7.6.4.5 - - `POSIX.1-2024 `__ - * - fesetmode - - - - 7.6.5.4 - - - * - fesetround - - |check| - - 7.6.5.5 - - `POSIX.1-2024 `__ - * - fetestexcept - - |check| - - 7.6.4.7 - - `POSIX.1-2024 `__ - * - fetestexceptflag - - |check| - - 7.6.4.6 - - - * - feupdateenv - - |check| - - 7.6.6.4 - - `POSIX.1-2024 `__ diff --git a/libc/docs/headers/float.rst b/libc/docs/headers/float.rst deleted file mode 100644 index 8ef0f3a05020c..0000000000000 --- 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 `__ - * - DBL_DIG - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - DBL_EPSILON - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - DBL_HAS_SUBNORM - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - 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 `__ - * - DBL_MAX_10_EXP - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - DBL_MAX_EXP - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - DBL_MIN - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - DBL_MIN_10_EXP - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - DBL_MIN_EXP - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - 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 `__ - * - DECIMAL_DIG - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - FLT_DECIMAL_DIG - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - FLT_DIG - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - FLT_EPSILON - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - FLT_EVAL_METHOD - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - FLT_HAS_SUBNORM - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - 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 `__ - * - FLT_MAX_10_EXP - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - FLT_MAX_EXP - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - FLT_MIN - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - FLT_MIN_10_EXP - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - FLT_MIN_EXP - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - FLT_NORM_MAX - - - - 5.3.5.3.3 - - - * - FLT_RADIX - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - FLT_ROUNDS - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - FLT_SNAN - - - - 5.3.5.3.3 - - - * - FLT_TRUE_MIN - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - INFINITY - - - - 5.3.5.3.3 - - - * - LDBL_DECIMAL_DIG - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - LDBL_DIG - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - LDBL_EPSILON - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - LDBL_HAS_SUBNORM - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - 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 `__ - * - LDBL_MAX_10_EXP - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - LDBL_MAX_EXP - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - LDBL_MIN - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - LDBL_MIN_10_EXP - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - LDBL_MIN_EXP - - |check| - - 5.3.5.3.3 - - `POSIX.1-2024 `__ - * - 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 `__ - * - 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 9269b40f242a6..0000000000000 --- 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 `__ - * - imaxdiv - - |check| - - 7.8.2.2 - - `POSIX.1-2024 `__ - * - strtoimax - - |check| - - 7.8.2.3 - - `POSIX.1-2024 `__ - * - strtoumax - - |check| - - 7.8.2.3 - - `POSIX.1-2024 `__ - * - wcstoimax - - - - 7.8.2.4 - - `POSIX.1-2024 `__ - * - wcstoumax - - - - 7.8.2.4 - - `POSIX.1-2024 `__ diff --git a/libc/docs/headers/locale.rst b/libc/docs/headers/locale.rst deleted file mode 100644 index c97d1f63b1f0c..0000000000000 --- 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 `__ - * - LC_COLLATE - - |check| - - 7.11 - - `POSIX.1-2024 `__ - * - LC_CTYPE - - |check| - - 7.11 - - `POSIX.1-2024 `__ - * - LC_MONETARY - - |check| - - 7.11 - - `POSIX.1-2024 `__ - * - LC_NUMERIC - - |check| - - 7.11 - - `POSIX.1-2024 `__ - * - LC_TIME - - |check| - - 7.11 - - `POSIX.1-2024 `__ - -Functions -========= - -.. list-table:: - :widths: auto - :align: center - :header-rows: 1 - - * - Function - - Implemented - - C23 Standard Section - - POSIX Docs - * - duplocale - - |check| - - - - `POSIX.1-2024 `__ - * - freelocale - - |check| - - - - `POSIX.1-2024 `__ - * - getlocalename_l - - - - - - `POSIX.1-2024 `__ - * - localeconv - - |check| - - 7.11.2.1 - - `POSIX.1-2024 `__ - * - newlocale - - |check| - - - - `POSIX.1-2024 `__ - * - setlocale - - |check| - - 7.11.1.1 - - `POSIX.1-2024 `__ - * - uselocale - - |check| - - - - `POSIX.1-2024 `__ diff --git a/libc/docs/headers/setjmp.rst b/libc/docs/headers/setjmp.rst deleted file mode 100644 index b0091134f1a6b..0000000000000 --- 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 4f51f611c9fe7..0000000000000 --- 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 `__ - * - SIGALRM - - |check| - - - - `POSIX.1-2024 `__ - * - SIGBUS - - |check| - - - - `POSIX.1-2024 `__ - * - SIGCHLD - - |check| - - - - `POSIX.1-2024 `__ - * - SIGCONT - - |check| - - - - `POSIX.1-2024 `__ - * - SIGFPE - - |check| - - 7.14.3 - - `POSIX.1-2024 `__ - * - SIGHUP - - |check| - - - - `POSIX.1-2024 `__ - * - SIGILL - - |check| - - 7.14.3 - - `POSIX.1-2024 `__ - * - SIGINT - - |check| - - 7.14.3 - - `POSIX.1-2024 `__ - * - SIGKILL - - |check| - - - - `POSIX.1-2024 `__ - * - SIGPIPE - - |check| - - - - `POSIX.1-2024 `__ - * - SIGPOLL - - |check| - - - - `POSIX.1-2024 `__ - * - SIGPROF - - |check| - - - - `POSIX.1-2024 `__ - * - SIGQUIT - - |check| - - - - `POSIX.1-2024 `__ - * - SIGRTMAX - - |check| - - - - `POSIX.1-2024 `__ - * - SIGRTMIN - - |check| - - - - `POSIX.1-2024 `__ - * - SIGSEGV - - |check| - - 7.14.3 - - `POSIX.1-2024 `__ - * - SIGSTOP - - |check| - - - - `POSIX.1-2024 `__ - * - SIGSYS - - |check| - - - - `POSIX.1-2024 `__ - * - SIGTERM - - |check| - - 7.14.3 - - `POSIX.1-2024 `__ - * - SIGTRAP - - |check| - - - - `POSIX.1-2024 `__ - * - SIGTSTP - - |check| - - - - `POSIX.1-2024 `__ - * - SIGTTIN - - |check| - - - - `POSIX.1-2024 `__ - * - SIGTTOU - - |check| - - - - `POSIX.1-2024 `__ - * - SIGURG - - |check| - - - - `POSIX.1-2024 `__ - * - SIGUSR1 - - |check| - - - - `POSIX.1-2024 `__ - * - SIGUSR2 - - |check| - - - - `POSIX.1-2024 `__ - * - SIGVTALRM - - |check| - - - - `POSIX.1-2024 `__ - * - SIGXCPU - - |check| - - - - `POSIX.1-2024 `__ - * - SIGXFSZ - - |check| - - - - `POSIX.1-2024 `__ - * - SIG_DFL - - |check| - - 7.14.3 - - `POSIX.1-2024 `__ - * - SIG_ERR - - |check| - - 7.14.3 - - `POSIX.1-2024 `__ - * - SIG_HOLD - - - - - - `POSIX.1-2024 `__ - * - SIG_IGN - - |check| - - 7.14.3 - - `POSIX.1-2024 `__ - -Functions -========= - -.. list-table:: - :widths: auto - :align: center - :header-rows: 1 - - * - Function - - Implemented - - C23 Standard Section - - POSIX Docs - * - kill - - |check| - - - - `POSIX.1-2024 `__ - * - raise - - |check| - - 7.14.2.1 - - `POSIX.1-2024 `__ - * - sigaction - - |check| - - - - `POSIX.1-2024 `__ - * - sigaddset - - |check| - - - - `POSIX.1-2024 `__ - * - sigaltstack - - |check| - - - - `POSIX.1-2024 `__ - * - sigdelset - - |check| - - - - `POSIX.1-2024 `__ - * - sigemptyset - - |check| - - - - `POSIX.1-2024 `__ - * - sigfillset - - |check| - - - - `POSIX.1-2024 `__ - * - signal - - |check| - - 7.14.1.1 - - `POSIX.1-2024 `__ - * - sigprocmask - - |check| - - - - `POSIX.1-2024 `__ diff --git a/libc/docs/headers/stdbit.rst b/libc/docs/headers/stdbit.rst deleted file mode 100644 index 0484d951e19c6..0000000000000 --- 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 1833eb5acf8ab..0000000000000 --- 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 `__ - * - EOF - - |check| - - 7.23.1 - - `POSIX.1-2024 `__ - * - FILENAME_MAX - - - - 7.23.1 - - `POSIX.1-2024 `__ - * - FOPEN_MAX - - - - 7.23.1 - - `POSIX.1-2024 `__ - * - L_ctermid - - - - - - `POSIX.1-2024 `__ - * - L_tmpnam - - - - 7.23.1 - - `POSIX.1-2024 `__ - * - SEEK_CUR - - |check| - - 7.23.1 - - `POSIX.1-2024 `__ - * - SEEK_END - - |check| - - 7.23.1 - - `POSIX.1-2024 `__ - * - SEEK_SET - - |check| - - 7.23.1 - - `POSIX.1-2024 `__ - * - TMP_MAX - - - - 7.23.1 - - `POSIX.1-2024 `__ - * - _IOFBF - - |check| - - 7.23.1 - - `POSIX.1-2024 `__ - * - _IOLBF - - |check| - - 7.23.1 - - `POSIX.1-2024 `__ - * - _IONBF - - |check| - - 7.23.1 - - `POSIX.1-2024 `__ - * - _PRINTF_NAN_LEN_MAX - - - - 7.23.1 - - - * - __STDC_VERSION_STDIO_H__ - - - - 7.23.1 - - - * - stderr - - |check| - - 7.23.1 - - `POSIX.1-2024 `__ - * - stdin - - |check| - - 7.23.1 - - `POSIX.1-2024 `__ - * - stdout - - |check| - - 7.23.1 - - `POSIX.1-2024 `__ - -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 `__ - * - ctermid - - - - - - `POSIX.1-2024 `__ - * - dprintf - - - - - - `POSIX.1-2024 `__ - * - fclose - - |check| - - 7.23.5.1 - - `POSIX.1-2024 `__ - * - fdopen - - |check| - - - - `POSIX.1-2024 `__ - * - feof - - |check| - - 7.23.10.2 - - `POSIX.1-2024 `__ - * - ferror - - |check| - - 7.23.10.3 - - `POSIX.1-2024 `__ - * - fflush - - |check| - - 7.23.5.2 - - `POSIX.1-2024 `__ - * - fgetc - - |check| - - 7.23.7.1 - - `POSIX.1-2024 `__ - * - fgetpos - - - - 7.23.9.1 - - `POSIX.1-2024 `__ - * - fgets - - |check| - - 7.23.7.2 - - `POSIX.1-2024 `__ - * - fileno - - |check| - - - - `POSIX.1-2024 `__ - * - flockfile - - |check| - - - - `POSIX.1-2024 `__ - * - fmemopen - - - - - - `POSIX.1-2024 `__ - * - fopen - - |check| - - 7.23.5.3 - - `POSIX.1-2024 `__ - * - fprintf - - |check| - - 7.23.6.1 - - `POSIX.1-2024 `__ - * - fputc - - |check| - - 7.23.7.3 - - `POSIX.1-2024 `__ - * - fputs - - |check| - - 7.23.7.4 - - `POSIX.1-2024 `__ - * - fread - - |check| - - 7.23.8.1 - - `POSIX.1-2024 `__ - * - freopen - - - - 7.23.5.4 - - `POSIX.1-2024 `__ - * - fscanf - - |check| - - 7.23.6.2 - - `POSIX.1-2024 `__ - * - fseek - - |check| - - 7.23.9.2 - - `POSIX.1-2024 `__ - * - fseeko - - |check| - - - - `POSIX.1-2024 `__ - * - fsetpos - - - - 7.23.9.3 - - `POSIX.1-2024 `__ - * - ftell - - |check| - - 7.23.9.4 - - `POSIX.1-2024 `__ - * - ftello - - |check| - - - - `POSIX.1-2024 `__ - * - ftrylockfile - - - - - - `POSIX.1-2024 `__ - * - funlockfile - - |check| - - - - `POSIX.1-2024 `__ - * - fwrite - - |check| - - 7.23.8.2 - - `POSIX.1-2024 `__ - * - getc - - |check| - - 7.23.7.5 - - `POSIX.1-2024 `__ - * - getchar - - |check| - - 7.23.7.6 - - `POSIX.1-2024 `__ - * - getdelim - - - - - - `POSIX.1-2024 `__ - * - getline - - - - - - `POSIX.1-2024 `__ - * - open_memstream - - - - - - `POSIX.1-2024 `__ - * - pclose - - - - - - `POSIX.1-2024 `__ - * - perror - - - - 7.23.10.4 - - `POSIX.1-2024 `__ - * - popen - - - - - - `POSIX.1-2024 `__ - * - printf - - |check| - - 7.23.6.3 - - `POSIX.1-2024 `__ - * - putc - - |check| - - 7.23.7.7 - - `POSIX.1-2024 `__ - * - putc_unlocked - - - - - - `POSIX.1-2024 `__ - * - putchar - - |check| - - 7.23.7.8 - - `POSIX.1-2024 `__ - * - putchar_unlocked - - - - - - `POSIX.1-2024 `__ - * - puts - - |check| - - 7.23.7.9 - - `POSIX.1-2024 `__ - * - remove - - |check| - - 7.23.4.1 - - `POSIX.1-2024 `__ - * - rename - - |check| - - 7.23.4.2 - - `POSIX.1-2024 `__ - * - renameat - - - - - - `POSIX.1-2024 `__ - * - rewind - - - - 7.23.9.5 - - `POSIX.1-2024 `__ - * - scanf - - |check| - - 7.23.6.4 - - `POSIX.1-2024 `__ - * - setbuf - - |check| - - 7.23.5.5 - - `POSIX.1-2024 `__ - * - setvbuf - - |check| - - 7.23.5.6 - - `POSIX.1-2024 `__ - * - snprintf - - |check| - - 7.23.6.5 - - `POSIX.1-2024 `__ - * - sprintf - - |check| - - 7.23.6.6 - - `POSIX.1-2024 `__ - * - sscanf - - |check| - - 7.23.6.7 - - `POSIX.1-2024 `__ - * - tmpfile - - - - 7.23.4.3 - - `POSIX.1-2024 `__ - * - tmpnam - - - - 7.23.4.4 - - `POSIX.1-2024 `__ - * - ungetc - - |check| - - 7.23.7.10 - - `POSIX.1-2024 `__ - * - vdprintf - - - - - - `POSIX.1-2024 `__ - * - vfprintf - - |check| - - 7.23.6.8 - - `POSIX.1-2024 `__ - * - vfscanf - - |check| - - 7.23.6.9 - - `POSIX.1-2024 `__ - * - vprintf - - |check| - - 7.23.6.10 - - `POSIX.1-2024 `__ - * - vscanf - - |check| - - 7.23.6.11 - - `POSIX.1-2024 `__ - * - vsnprintf - - |check| - - 7.23.6.12 - - `POSIX.1-2024 `__ - * - vsprintf - - |check| - - 7.23.6.13 - - `POSIX.1-2024 `__ - * - vsscanf - - |check| - - 7.23.6.14 - - `POSIX.1-2024 `__ diff --git a/libc/docs/headers/stdlib.rst b/libc/docs/headers/stdlib.rst deleted file mode 100644 index 4151f2934c940..0000000000000 --- 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 `__ - * - EXIT_SUCCESS - - |check| - - 7.24 - - `POSIX.1-2024 `__ - * - MB_CUR_MAX - - |check| - - 7.24 - - `POSIX.1-2024 `__ - * - RAND_MAX - - |check| - - 7.24 - - `POSIX.1-2024 `__ - * - __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 `__ - * - abort - - |check| - - 7.24.4.1 - - `POSIX.1-2024 `__ - * - abs - - |check| - - 7.24.6.1 - - `POSIX.1-2024 `__ - * - aligned_alloc - - |check| - - 7.24.3.1 - - `POSIX.1-2024 `__ - * - at_quick_exit - - |check| - - 7.24.4.3 - - `POSIX.1-2024 `__ - * - atexit - - |check| - - 7.24.4.2 - - `POSIX.1-2024 `__ - * - atof - - |check| - - 7.24.1.1 - - `POSIX.1-2024 `__ - * - atoi - - |check| - - 7.24.1.2 - - `POSIX.1-2024 `__ - * - atol - - |check| - - 7.24.1.2 - - `POSIX.1-2024 `__ - * - atoll - - |check| - - 7.24.1.2 - - `POSIX.1-2024 `__ - * - bsearch - - |check| - - 7.24.5.1 - - `POSIX.1-2024 `__ - * - calloc - - |check| - - 7.24.3.2 - - `POSIX.1-2024 `__ - * - div - - |check| - - 7.24.6.2 - - `POSIX.1-2024 `__ - * - exit - - |check| - - 7.24.4.4 - - `POSIX.1-2024 `__ - * - free - - |check| - - 7.24.3.3 - - `POSIX.1-2024 `__ - * - free_aligned_sized - - - - 7.24.3.5 - - - * - free_sized - - - - 7.24.3.4 - - - * - getenv - - |check| - - 7.24.4.6 - - `POSIX.1-2024 `__ - * - labs - - |check| - - 7.24.6.1 - - `POSIX.1-2024 `__ - * - ldiv - - |check| - - 7.24.6.2 - - `POSIX.1-2024 `__ - * - llabs - - |check| - - 7.24.6.1 - - `POSIX.1-2024 `__ - * - lldiv - - |check| - - 7.24.6.2 - - `POSIX.1-2024 `__ - * - malloc - - |check| - - 7.24.3.6 - - `POSIX.1-2024 `__ - * - mblen - - - - 7.24.7.1 - - `POSIX.1-2024 `__ - * - mbstowcs - - - - 7.24.8.1 - - `POSIX.1-2024 `__ - * - mbtowc - - - - 7.24.7.2 - - `POSIX.1-2024 `__ - * - memalignment - - - - 7.24.9.1 - - - * - qsort - - |check| - - 7.24.5.2 - - `POSIX.1-2024 `__ - * - quick_exit - - |check| - - 7.24.4.7 - - `POSIX.1-2024 `__ - * - rand - - |check| - - 7.24.2.1 - - `POSIX.1-2024 `__ - * - realloc - - |check| - - 7.24.3.7 - - `POSIX.1-2024 `__ - * - srand - - |check| - - 7.24.2.2 - - `POSIX.1-2024 `__ - * - 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 `__ - * - strtod128 - - - - 7.24.1.6 - - - * - strtod32 - - - - 7.24.1.6 - - - * - strtod64 - - - - 7.24.1.6 - - - * - strtof - - |check| - - 7.24.1.5 - - `POSIX.1-2024 `__ - * - strtol - - |check| - - 7.24.1.7 - - `POSIX.1-2024 `__ - * - strtold - - |check| - - 7.24.1.5 - - `POSIX.1-2024 `__ - * - strtoll - - |check| - - 7.24.1.7 - - `POSIX.1-2024 `__ - * - strtoul - - |check| - - 7.24.1.7 - - `POSIX.1-2024 `__ - * - strtoull - - |check| - - 7.24.1.7 - - `POSIX.1-2024 `__ - * - system - - |check| - - 7.24.4.8 - - `POSIX.1-2024 `__ - * - wcstombs - - - - 7.24.8.2 - - `POSIX.1-2024 `__ - * - wctomb - - - - 7.24.7.3 - - `POSIX.1-2024 `__ diff --git a/libc/docs/headers/string.rst b/libc/docs/headers/string.rst deleted file mode 100644 index 2665ed8ca17e6..0000000000000 --- 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 `__ - * - memchr - - |check| - - 7.26.5.2 - - `POSIX.1-2024 `__ - * - memcmp - - |check| - - 7.26.4.1 - - `POSIX.1-2024 `__ - * - memcpy - - |check| - - 7.26.2.1 - - `POSIX.1-2024 `__ - * - memmove - - |check| - - 7.26.2.3 - - `POSIX.1-2024 `__ - * - mempcpy - - |check| - - TODO: glibc extension - - - * - memset - - |check| - - 7.26.6.1 - - `POSIX.1-2024 `__ - * - memset_explicit - - |check| - - 7.26.6.2 - - - * - stpcpy - - |check| - - - - `POSIX.1-2024 `__ - * - stpncpy - - |check| - - - - `POSIX.1-2024 `__ - * - strcat - - |check| - - 7.26.3.1 - - `POSIX.1-2024 `__ - * - strchr - - |check| - - 7.26.5.3 - - `POSIX.1-2024 `__ - * - strcmp - - |check| - - 7.26.4.2 - - `POSIX.1-2024 `__ - * - strcoll - - |check| - - 7.26.4.3 - - `POSIX.1-2024 `__ - * - strcoll_l - - |check| - - - - `POSIX.1-2024 `__ - * - strcpy - - |check| - - 7.26.2.4 - - `POSIX.1-2024 `__ - * - strcspn - - |check| - - 7.26.5.4 - - `POSIX.1-2024 `__ - * - strdup - - |check| - - 7.26.2.6 - - `POSIX.1-2024 `__ - * - strerror - - |check| - - 7.26.6.3 - - `POSIX.1-2024 `__ - * - strlen - - |check| - - 7.26.6.4 - - `POSIX.1-2024 `__ - * - strncat - - |check| - - 7.26.3.2 - - `POSIX.1-2024 `__ - * - strncmp - - |check| - - 7.26.4.4 - - `POSIX.1-2024 `__ - * - strncpy - - |check| - - 7.26.2.5 - - `POSIX.1-2024 `__ - * - strndup - - |check| - - 7.26.2.7 - - `POSIX.1-2024 `__ - * - strpbrk - - |check| - - 7.26.5.5 - - `POSIX.1-2024 `__ - * - strrchr - - |check| - - 7.26.5.6 - - `POSIX.1-2024 `__ - * - strspn - - |check| - - 7.26.5.7 - - `POSIX.1-2024 `__ - * - strstr - - |check| - - 7.26.5.8 - - `POSIX.1-2024 `__ - * - strtok - - |check| - - 7.26.5.9 - - `POSIX.1-2024 `__ - * - strtok_r - - |check| - - - - `POSIX.1-2024 `__ - * - strxfrm - - |check| - - 7.26.4.5 - - `POSIX.1-2024 `__ - * - strxfrm_l - - |check| - - - - `POSIX.1-2024 `__ diff --git a/libc/docs/headers/strings.rst b/libc/docs/headers/strings.rst deleted file mode 100644 index effd667cd5219..0000000000000 --- 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 `__ - * - bcopy - - |check| - - - - `removed in POSIX.1-2008 `__ - * - bzero - - |check| - - - - `removed in POSIX.1-2008 `__ - * - ffs - - - - - - `POSIX.1-2024 `__ - * - ffsl - - - - - - `POSIX.1-2024 `__ - * - ffsll - - - - - - `POSIX.1-2024 `__ - * - index - - |check| - - - - `removed in POSIX.1-2008 `__ - * - rindex - - |check| - - - - `removed in POSIX.1-2008 `__ - * - strcasecmp - - |check| - - - - `POSIX.1-2024 `__ - * - strcasecmp_l - - - - - - `POSIX.1-2024 `__ - * - strncasecmp - - |check| - - - - `POSIX.1-2024 `__ - * - strncasecmp_l - - - - - - `POSIX.1-2024 `__ diff --git a/libc/docs/headers/sys/mman.rst b/libc/docs/headers/sys/mman.rst deleted file mode 100644 index e3404205c07ac..0000000000000 --- 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/docs/headers/threads.rst b/libc/docs/headers/threads.rst deleted file mode 100644 index c2837b8c3591c..0000000000000 --- 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 `__ - * - TSS_DTOR_ITERATIONS - - - - 7.28.1 - - `POSIX.1-2024 `__ - * - __STDC_NO_THREADS__ - - - - 7.28.1 - - - * - thread_local - - - - - - `POSIX.1-2024 `__ - -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 `__ - * - cnd_broadcast - - |check| - - 7.28.3.1 - - `POSIX.1-2024 `__ - * - cnd_destroy - - |check| - - 7.28.3.2 - - `POSIX.1-2024 `__ - * - cnd_init - - |check| - - 7.28.3.3 - - `POSIX.1-2024 `__ - * - cnd_signal - - |check| - - 7.28.3.4 - - `POSIX.1-2024 `__ - * - cnd_timedwait - - - - 7.28.3.5 - - `POSIX.1-2024 `__ - * - cnd_wait - - |check| - - 7.28.3.6 - - `POSIX.1-2024 `__ - * - mtx_destroy - - |check| - - 7.28.4.2 - - `POSIX.1-2024 `__ - * - mtx_init - - |check| - - 7.28.4.3 - - `POSIX.1-2024 `__ - * - mtx_lock - - |check| - - 7.28.4.4 - - `POSIX.1-2024 `__ - * - mtx_timedlock - - - - 7.28.4.5 - - `POSIX.1-2024 `__ - * - mtx_trylock - - - - 7.28.4.6 - - `POSIX.1-2024 `__ - * - mtx_unlock - - |check| - - 7.28.4.7 - - `POSIX.1-2024 `__ - * - thrd_create - - |check| - - 7.28.5.1 - - `POSIX.1-2024 `__ - * - thrd_current - - |check| - - 7.28.5.2 - - `POSIX.1-2024 `__ - * - thrd_detach - - |check| - - 7.28.5.3 - - `POSIX.1-2024 `__ - * - thrd_equal - - |check| - - 7.28.5.4 - - `POSIX.1-2024 `__ - * - thrd_exit - - |check| - - 7.28.5.5 - - `POSIX.1-2024 `__ - * - thrd_join - - |check| - - 7.28.5.6 - - `POSIX.1-2024 `__ - * - thrd_sleep - - - - 7.28.5.7 - - `POSIX.1-2024 `__ - * - thrd_yield - - - - 7.28.5.8 - - `POSIX.1-2024 `__ - * - tss_create - - |check| - - 7.28.6.1 - - `POSIX.1-2024 `__ - * - tss_delete - - |check| - - 7.28.6.2 - - `POSIX.1-2024 `__ - * - tss_get - - |check| - - 7.28.6.3 - - `POSIX.1-2024 `__ - * - tss_set - - |check| - - 7.28.6.4 - - `POSIX.1-2024 `__ diff --git a/libc/docs/headers/uchar.rst b/libc/docs/headers/uchar.rst deleted file mode 100644 index abb684bf9ae0e..0000000000000 --- 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 `__ - * - c32rtomb - - - - 7.30.2.7 - - `POSIX.1-2024 `__ - * - c8rtomb - - - - 7.30.2.3 - - - * - mbrtoc16 - - - - 7.30.2.4 - - `POSIX.1-2024 `__ - * - mbrtoc32 - - - - 7.30.2.6 - - `POSIX.1-2024 `__ - * - mbrtoc8 - - - - 7.30.2.2 - - diff --git a/libc/docs/headers/wchar.rst b/libc/docs/headers/wchar.rst deleted file mode 100644 index 89a1e7b3fe660..0000000000000 --- 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 076db04f183e9..0000000000000 --- 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 - - diff --git a/libc/utils/docgen/arpa/inet.yaml b/libc/utils/docgen/arpa/inet.yaml index 7f388cbbd0204..d72575981f799 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/strings.yaml b/libc/utils/docgen/strings.yaml new file mode 100644 index 0000000000000..082b92cbf5b85 --- /dev/null +++ b/libc/utils/docgen/strings.yaml @@ -0,0 +1,26 @@ +functions: + bcmp: + removed-in-posix-2008: '' + bcopy: + removed-in-posix-2008: '' + bzero: + removed-in-posix-2008: '' + ffs: + in-latest-posix: '' + ffsl: + in-latest-posix: '' + ffsll: + in-latest-posix: '' + index: + removed-in-posix-2008: '' + rindex: + removed-in-posix-2008: '' + strcasecmp: + in-latest-posix: '' + strcasecmp_l: + in-latest-posix: '' + strncasecmp: + in-latest-posix: '' + strncasecmp_l: + in-latest-posix: '' + diff --git a/libc/utils/docgen/sys/mman.yaml b/libc/utils/docgen/sys/mman.yaml index dba26cabc6621..94c6b9b6c77b5 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: ''