[libc-commits] [libc] [libc][docs] Add remaining C23 and POSIX docgen header catalogues (PR #241564)
via libc-commits
libc-commits at lists.llvm.org
Wed Nov 11 14:50:45 PST 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Jeff Bailey (kaladron)
<details>
<summary>Changes</summary>
Twenty-four C23 and POSIX headers currently lack docgen status catalogues, while float.h and other freestanding headers in CLANG_FREESTANDING_HEADERS short-circuit to implemented instead of checking LLVM-libc's own macro and type headers. Purely compiler-owned freestanding headers (such as stdarg.h, stdatomic.h, stddef.h, and tgmath.h) live in Clang or GCC rather than libc, so docgen cannot truthfully report per-symbol coverage for them.
Remove CLANG_FREESTANDING_HEADERS and provider overrides so float.h, limits.h, stdckdint.h, and stdint.h evaluate directly against libc/include/ (including typedefs in macro headers), note the compiler-provided headers on libc/docs/headers/index.md, and add docgen YAML catalogues for limits.h, stdckdint.h, stdint.h, and the 21 remaining POSIX headers.
Assisted-by: Automated tooling, human reviewed.
---
Patch is 40.45 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/241564.diff
30 Files Affected:
- (modified) libc/docs/CMakeLists.txt (+24)
- (modified) libc/docs/headers/index.md (+29)
- (modified) libc/utils/docgen/docgen.py (-1)
- (modified) libc/utils/docgen/docgen_test.py (+12-1)
- (modified) libc/utils/docgen/float.yaml (-1)
- (added) libc/utils/docgen/fmtmsg.yaml (+43)
- (added) libc/utils/docgen/fnmatch.yaml (+19)
- (added) libc/utils/docgen/ftw.yaml (+32)
- (added) libc/utils/docgen/grp.yaml (+29)
- (modified) libc/utils/docgen/header.py (+8-38)
- (added) libc/utils/docgen/iconv.yaml (+13)
- (added) libc/utils/docgen/langinfo.yaml (+122)
- (added) libc/utils/docgen/limits.yaml (+131)
- (added) libc/utils/docgen/monetary.yaml (+13)
- (added) libc/utils/docgen/mqueue.yaml (+41)
- (added) libc/utils/docgen/ndbm.yaml (+32)
- (added) libc/utils/docgen/netdb.yaml (+106)
- (added) libc/utils/docgen/regex.yaml (+56)
- (added) libc/utils/docgen/semaphore.yaml (+36)
- (added) libc/utils/docgen/stdckdint.yaml (+11)
- (added) libc/utils/docgen/stdint.yaml (+340)
- (added) libc/utils/docgen/sys/shm.yaml (+90)
- (added) libc/utils/docgen/sys/times.yaml (+9)
- (added) libc/utils/docgen/sys/types.yaml (+100)
- (added) libc/utils/docgen/sys/un.yaml (+6)
- (added) libc/utils/docgen/tar.yaml (+40)
- (added) libc/utils/docgen/ulimit.yaml (+8)
- (added) libc/utils/docgen/utime.yaml (+8)
- (added) libc/utils/docgen/utmpx.yaml (+38)
- (added) libc/utils/docgen/wordexp.yaml (+34)
``````````diff
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index ab4564e879373e..cb02e789de7199 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -25,11 +25,22 @@ if(LLVM_ENABLE_SPHINX)
fcntl
fenv
float
+ fmtmsg
+ fnmatch
+ ftw
glob
+ grp
+ iconv
inttypes
+ langinfo
libgen
+ limits
locale
math
+ monetary
+ mqueue
+ ndbm
+ netdb
nl_types
net/if
netinet/in
@@ -37,11 +48,15 @@ if(LLVM_ENABLE_SPHINX)
poll
pthread
pwd
+ regex
sched
+ semaphore
setjmp
signal
spawn
stdbit
+ stdckdint
+ stdint
stdio
stdlib
string
@@ -52,21 +67,30 @@ if(LLVM_ENABLE_SPHINX)
sys/resource
sys/select
sys/sem
+ sys/shm
sys/socket
sys/stat
sys/statvfs
sys/time
+ sys/times
+ sys/types
sys/uio
+ sys/un
sys/utsname
sys/wait
syslog
+ tar
termios
threads
time
uchar
+ ulimit
unistd
+ utime
+ utmpx
wchar
wctype
+ wordexp
)
foreach(stem IN LISTS docgen_list)
list(APPEND libc_generated_docs "headers/${stem}.md")
diff --git a/libc/docs/headers/index.md b/libc/docs/headers/index.md
index 7f4b6f25ef5f99..872a86a3cb0492 100644
--- a/libc/docs/headers/index.md
+++ b/libc/docs/headers/index.md
@@ -1,5 +1,10 @@
# Implementation Status
+Purely compiler-provided freestanding C headers (`iso646.h`, `stdalign.h`,
+`stdarg.h`, `stdatomic.h`, `stdbool.h`, `stddef.h`, `stdnoreturn.h`, and
+`tgmath.h`) come from the host compiler (`Clang` or `GCC`) rather than
+LLVM-libc and are omitted below.
+
```{toctree}
:maxdepth: 1
@@ -17,24 +22,39 @@ errno
fcntl
fenv
float
+fmtmsg
+fnmatch
+ftw
glob
+grp
+iconv
inttypes
+langinfo
libgen
+limits
locale
math
+monetary
+mqueue
+ndbm
net/if
+netdb
netinet/in
netinet/tcp
nl_types
poll
pwd
+regex
sched
search
+semaphore
setjmp
signal
spawn
stdbit
+stdckdint
stdfix
+stdint
stdio
stdlib
string
@@ -45,21 +65,30 @@ sys/msg
sys/resource
sys/select
sys/sem
+sys/shm
sys/socket
sys/stat
sys/statvfs
sys/time
+sys/times
+sys/types
sys/uio
+sys/un
sys/utsname
sys/wait
syslog
+tar
termios
threads
time
uchar
+ulimit
unistd
+utime
+utmpx
wchar
wctype
pthread
+wordexp
```
diff --git a/libc/utils/docgen/docgen.py b/libc/utils/docgen/docgen.py
index 09f9e959051717..a870b5fbd21bab 100755
--- a/libc/utils/docgen/docgen.py
+++ b/libc/utils/docgen/docgen.py
@@ -58,7 +58,6 @@ def check_api(header: Header, api: Dict):
"c-reference-root",
"standard",
"posix",
- "provider",
"family-note",
):
if key in api and not isinstance(api[key], str):
diff --git a/libc/utils/docgen/docgen_test.py b/libc/utils/docgen/docgen_test.py
index 170c57ce4df77c..0512db71fc6573 100644
--- a/libc/utils/docgen/docgen_test.py
+++ b/libc/utils/docgen/docgen_test.py
@@ -26,6 +26,16 @@ def test_header_stem(self):
self.assertEqual(Header("search.h").stem, "search")
self.assertEqual(Header("arpa/inet.h").stem, "arpa/inet")
+ def test_new_c23_and_posix_headers(self):
+ self.assertTrue(Header("limits.h").implements_macro("CHAR_BIT"))
+ self.assertFalse(Header("limits.h").implements_macro("BITINT_MAXWIDTH"))
+ self.assertTrue(Header("stdint.h").implements_type("int64_t"))
+ self.assertTrue(Header("stdint.h").implements_macro("INT64_MAX"))
+ self.assertTrue(Header("stdckdint.h").implements_macro("ckd_add"))
+ self.assertTrue(Header("regex.h").implements_fn("regcomp"))
+ self.assertTrue(Header("sys/shm.h").implements_fn("shmget"))
+ self.assertFalse(Header("ulimit.h").implements_fn("ulimit"))
+
def test_is_stub_file(self):
with tempfile.TemporaryDirectory() as tmpdir:
stub = Path(tmpdir) / "stub.cpp"
@@ -77,7 +87,8 @@ def test_implements_macro(self):
self.assertTrue(Header("sys/syscall.h").implements_macro("SYS_read"))
self.assertTrue(Header("errno.h").implements_macro("errno"))
self.assertTrue(Header("unistd.h").implements_macro("SEEK_SET"))
- self.assertTrue(Header("float.h").implements_macro("NAN"))
+ self.assertTrue(Header("float.h").implements_macro("FLT_MAX"))
+ self.assertFalse(Header("float.h").implements_macro("NAN"))
def test_implements_type(self):
self.assertTrue(Header("stdio.h").implements_type("FILE"))
diff --git a/libc/utils/docgen/float.yaml b/libc/utils/docgen/float.yaml
index 87b1b32f8fef87..4a97e5182c3e04 100644
--- a/libc/utils/docgen/float.yaml
+++ b/libc/utils/docgen/float.yaml
@@ -1,4 +1,3 @@
-provider: clang
standard: c23
posix: posix-2024
c-reference-root: types/limits
diff --git a/libc/utils/docgen/fmtmsg.yaml b/libc/utils/docgen/fmtmsg.yaml
new file mode 100644
index 00000000000000..2da2cdb3c2df34
--- /dev/null
+++ b/libc/utils/docgen/fmtmsg.yaml
@@ -0,0 +1,43 @@
+posix: posix-2024
+macros:
+ MM_APPL:
+ in-latest-posix: ''
+ MM_CONSOLE:
+ in-latest-posix: ''
+ MM_ERROR:
+ in-latest-posix: ''
+ MM_FIRM:
+ in-latest-posix: ''
+ MM_HALT:
+ in-latest-posix: ''
+ MM_HARD:
+ in-latest-posix: ''
+ MM_INFO:
+ in-latest-posix: ''
+ MM_NOCON:
+ in-latest-posix: ''
+ MM_NOMSG:
+ in-latest-posix: ''
+ MM_NOSEV:
+ in-latest-posix: ''
+ MM_NOTOK:
+ in-latest-posix: ''
+ MM_NRECOV:
+ in-latest-posix: ''
+ MM_OK:
+ in-latest-posix: ''
+ MM_OPSYS:
+ in-latest-posix: ''
+ MM_PRINT:
+ in-latest-posix: ''
+ MM_RECOVER:
+ in-latest-posix: ''
+ MM_SOFT:
+ in-latest-posix: ''
+ MM_UTIL:
+ in-latest-posix: ''
+ MM_WARNING:
+ in-latest-posix: ''
+functions:
+ fmtmsg:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/fnmatch.yaml b/libc/utils/docgen/fnmatch.yaml
new file mode 100644
index 00000000000000..72082392afc788
--- /dev/null
+++ b/libc/utils/docgen/fnmatch.yaml
@@ -0,0 +1,19 @@
+posix: posix-2024
+functions:
+ fnmatch:
+ in-latest-posix: ''
+macros:
+ FNM_CASEFOLD:
+ in-latest-posix: ''
+ FNM_IGNORECASE:
+ in-latest-posix: ''
+ FNM_NOESCAPE:
+ in-latest-posix: ''
+ FNM_NOMATCH:
+ in-latest-posix: ''
+ FNM_NOSYS:
+ removed-in-posix-2008: ''
+ FNM_PATHNAME:
+ in-latest-posix: ''
+ FNM_PERIOD:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/ftw.yaml b/libc/utils/docgen/ftw.yaml
new file mode 100644
index 00000000000000..a1c7721d62e3c6
--- /dev/null
+++ b/libc/utils/docgen/ftw.yaml
@@ -0,0 +1,32 @@
+posix: posix-2024
+macros:
+ FTW_CHDIR:
+ in-latest-posix: ''
+ FTW_D:
+ in-latest-posix: ''
+ FTW_DEPTH:
+ in-latest-posix: ''
+ FTW_DNR:
+ in-latest-posix: ''
+ FTW_DP:
+ in-latest-posix: ''
+ FTW_F:
+ in-latest-posix: ''
+ FTW_MOUNT:
+ in-latest-posix: ''
+ FTW_NS:
+ in-latest-posix: ''
+ FTW_PHYS:
+ in-latest-posix: ''
+ FTW_SL:
+ in-latest-posix: ''
+ FTW_SLN:
+ in-latest-posix: ''
+functions:
+ ftw:
+ removed-in-posix-2024: ''
+ nftw:
+ in-latest-posix: ''
+types:
+ struct FTW:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/grp.yaml b/libc/utils/docgen/grp.yaml
new file mode 100644
index 00000000000000..9418cfca031b29
--- /dev/null
+++ b/libc/utils/docgen/grp.yaml
@@ -0,0 +1,29 @@
+posix: posix-2024
+functions:
+ endgrent:
+ in-latest-posix: ''
+ getgrent:
+ in-latest-posix: ''
+ getgrgid:
+ in-latest-posix: ''
+ getgrgid_r:
+ in-latest-posix: ''
+ getgrnam:
+ in-latest-posix: ''
+ getgrnam_r:
+ in-latest-posix: ''
+ getgrouplist:
+ extension: bsd
+ initgroups:
+ extension: bsd
+ setgrent:
+ in-latest-posix: ''
+ setgroups:
+ extension: bsd
+types:
+ gid_t:
+ in-latest-posix: ''
+ size_t:
+ in-latest-posix: ''
+ struct group:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/header.py b/libc/utils/docgen/header.py
index 97faa543022822..c03ce7b17af02c 100644
--- a/libc/utils/docgen/header.py
+++ b/libc/utils/docgen/header.py
@@ -12,26 +12,6 @@
from typing import Dict, Generator, Optional, Set, Tuple
import yaml
-# Standard C freestanding headers (C23 4p6) provided directly by the compiler
-# (clang/lib/Headers/) rather than generated by LLVM-libc. When building with
-# Clang, their macros, types, and operations come from Clang's resource
-# headers, so docgen treats them as implemented even when no file exists under
-# libc/src/ or libc/include/llvm-libc-macros/.
-CLANG_FREESTANDING_HEADERS = {
- "float.h",
- "iso646.h",
- "limits.h",
- "stdalign.h",
- "stdarg.h",
- "stdatomic.h",
- "stdbool.h",
- "stdckdint.h",
- "stddef.h",
- "stdint.h",
- "stdnoreturn.h",
- "tgmath.h",
-}
-
def _is_stub_file(path: Path) -> bool:
text = path.read_text(encoding="utf-8")
@@ -141,8 +121,8 @@ class Header:
Macro implementation status is checked across header-specific
``*-macros.h`` files under ``$LLVM_PROJECT_ROOT/libc/include/llvm-libc-macros``,
macro and enum entries in ``$LLVM_PROJECT_ROOT/libc/include/<header>.yaml``
- (including shared ``macro_header`` definitions), ``include/<header>.h.def``
- templates, and compiler-provided freestanding headers.
+ (including shared ``macro_header`` definitions), and ``include/<header>.h.def``
+ templates.
Function implementation status is determined from the union of exported
entrypoints across ``$LLVM_PROJECT_ROOT/libc/config/**/entrypoints.txt``,
@@ -168,12 +148,6 @@ def __init__(self, header_name: str, libc_root: Optional[Path] = None):
self.fns_dir = Path(self.libc_root, "src", self.stem)
self.macros_dir = Path(self.libc_root, "include", "llvm-libc-macros")
- def is_clang_provided(self) -> bool:
- return (
- self.name in CLANG_FREESTANDING_HEADERS
- or self.api.get("provider") == "clang"
- )
-
@property
def api(self) -> Dict:
if not hasattr(self, "_api"):
@@ -191,7 +165,7 @@ def include_data(self) -> Dict:
return self._include_data
def macro_file_exists(self) -> bool:
- if self.is_clang_provided() or any(self.__get_macro_files()):
+ if any(self.__get_macro_files()):
return True
return bool(self.include_data.get("macros"))
@@ -199,8 +173,6 @@ def fns_dir_exists(self) -> bool:
return self.fns_dir.exists() and self.fns_dir.is_dir()
def implements_fn(self, fn_name: str) -> bool:
- if self.is_clang_provided():
- return True
all_fns, by_stem = _load_implemented_functions(self.libc_root)
if fn_name in by_stem.get(self.stem, set()):
return True
@@ -220,9 +192,6 @@ def implements_macro(self, m_name: str) -> bool:
:param m_name: name of macro, e.g., ``FE_ALL_EXCEPT``
"""
- if self.is_clang_provided():
- return True
-
macro_re = re.compile(rf"^\s*#\s*define\s+{re.escape(m_name)}\b", re.MULTILINE)
for f in self.__get_macro_files():
if macro_re.search(f.read_text(encoding="utf-8")):
@@ -290,11 +259,14 @@ def _load_exposed_types(self) -> Set[str]:
type_path.read_text(encoding="utf-8"),
)
)
+ typedef_re = re.compile(
+ r"^\s*typedef\b[^;{]*?\b([A-Za-z_][A-Za-z0-9_]*)\s*;", re.MULTILINE
+ )
+ for mf in self.__get_macro_files():
+ found.update(typedef_re.findall(mf.read_text(encoding="utf-8")))
return found
def implements_type(self, t_name: str) -> bool:
- if self.is_clang_provided():
- return True
if not hasattr(self, "_exposed_types"):
self._exposed_types = self._load_exposed_types()
return (
@@ -303,8 +275,6 @@ def implements_type(self, t_name: str) -> bool:
)
def implements_object(self, o_name: str) -> bool:
- if self.is_clang_provided():
- return True
if not any(
o.get("object_name") == o_name for o in self.include_data.get("objects", [])
):
diff --git a/libc/utils/docgen/iconv.yaml b/libc/utils/docgen/iconv.yaml
new file mode 100644
index 00000000000000..dc22aba15d1777
--- /dev/null
+++ b/libc/utils/docgen/iconv.yaml
@@ -0,0 +1,13 @@
+posix: posix-2024
+functions:
+ iconv:
+ in-latest-posix: ''
+ iconv_close:
+ in-latest-posix: ''
+ iconv_open:
+ in-latest-posix: ''
+types:
+ iconv_t:
+ in-latest-posix: ''
+ size_t:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/langinfo.yaml b/libc/utils/docgen/langinfo.yaml
new file mode 100644
index 00000000000000..3da9074e7fbca0
--- /dev/null
+++ b/libc/utils/docgen/langinfo.yaml
@@ -0,0 +1,122 @@
+posix: posix-2024
+functions:
+ nl_langinfo:
+ in-latest-posix: ''
+ nl_langinfo_l:
+ in-latest-posix: ''
+macros:
+ ABDAY_1:
+ in-latest-posix: ''
+ ABDAY_2:
+ in-latest-posix: ''
+ ABDAY_3:
+ in-latest-posix: ''
+ ABDAY_4:
+ in-latest-posix: ''
+ ABDAY_5:
+ in-latest-posix: ''
+ ABDAY_6:
+ in-latest-posix: ''
+ ABDAY_7:
+ in-latest-posix: ''
+ ABMON_1:
+ in-latest-posix: ''
+ ABMON_10:
+ in-latest-posix: ''
+ ABMON_11:
+ in-latest-posix: ''
+ ABMON_12:
+ in-latest-posix: ''
+ ABMON_2:
+ in-latest-posix: ''
+ ABMON_3:
+ in-latest-posix: ''
+ ABMON_4:
+ in-latest-posix: ''
+ ABMON_5:
+ in-latest-posix: ''
+ ABMON_6:
+ in-latest-posix: ''
+ ABMON_7:
+ in-latest-posix: ''
+ ABMON_8:
+ in-latest-posix: ''
+ ABMON_9:
+ in-latest-posix: ''
+ ALT_DIGITS:
+ in-latest-posix: ''
+ AM_STR:
+ in-latest-posix: ''
+ CODESET:
+ in-latest-posix: ''
+ CRNCYSTR:
+ in-latest-posix: ''
+ DAY_1:
+ in-latest-posix: ''
+ DAY_2:
+ in-latest-posix: ''
+ DAY_3:
+ in-latest-posix: ''
+ DAY_4:
+ in-latest-posix: ''
+ DAY_5:
+ in-latest-posix: ''
+ DAY_6:
+ in-latest-posix: ''
+ DAY_7:
+ in-latest-posix: ''
+ D_FMT:
+ in-latest-posix: ''
+ D_T_FMT:
+ in-latest-posix: ''
+ ERA:
+ in-latest-posix: ''
+ ERA_D_FMT:
+ in-latest-posix: ''
+ ERA_D_T_FMT:
+ in-latest-posix: ''
+ ERA_T_FMT:
+ in-latest-posix: ''
+ MON_1:
+ in-latest-posix: ''
+ MON_10:
+ in-latest-posix: ''
+ MON_11:
+ in-latest-posix: ''
+ MON_12:
+ in-latest-posix: ''
+ MON_2:
+ in-latest-posix: ''
+ MON_3:
+ in-latest-posix: ''
+ MON_4:
+ in-latest-posix: ''
+ MON_5:
+ in-latest-posix: ''
+ MON_6:
+ in-latest-posix: ''
+ MON_7:
+ in-latest-posix: ''
+ MON_8:
+ in-latest-posix: ''
+ MON_9:
+ in-latest-posix: ''
+ NOEXPR:
+ in-latest-posix: ''
+ PM_STR:
+ in-latest-posix: ''
+ RADIXCHAR:
+ in-latest-posix: ''
+ THOUSEP:
+ in-latest-posix: ''
+ T_FMT:
+ in-latest-posix: ''
+ T_FMT_AMPM:
+ in-latest-posix: ''
+ YESEXPR:
+ in-latest-posix: ''
+types:
+ locale_t:
+ in-latest-posix: ''
+ nl_item:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/limits.yaml b/libc/utils/docgen/limits.yaml
new file mode 100644
index 00000000000000..bc16f4ca4af81c
--- /dev/null
+++ b/libc/utils/docgen/limits.yaml
@@ -0,0 +1,131 @@
+standard: c23
+posix: posix-2024
+c-reference-root: types/limits
+macros:
+ BITINT_MAXWIDTH:
+ c-definition: 5.3.5.3.2
+ BOOL_MAX:
+ c-definition: 5.3.5.3.2
+ BOOL_WIDTH:
+ c-definition: 5.3.5.3.2
+ CHAR_BIT:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ CHAR_MAX:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ CHAR_MIN:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ CHAR_WIDTH:
+ c-definition: 5.3.5.3.2
+ HOST_NAME_MAX:
+ in-latest-posix: ''
+ INT_MAX:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ INT_MIN:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ INT_WIDTH:
+ c-definition: 5.3.5.3.2
+ IOV_MAX:
+ in-latest-posix: ''
+ LLONG_MAX:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ LLONG_MIN:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ LLONG_WIDTH:
+ c-definition: 5.3.5.3.2
+ LONG_MAX:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ LONG_MIN:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ LONG_WIDTH:
+ c-definition: 5.3.5.3.2
+ MB_LEN_MAX:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ NAME_MAX:
+ in-latest-posix: ''
+ NZERO:
+ in-latest-posix: ''
+ PATH_MAX:
+ in-latest-posix: ''
+ PTHREAD_DESTRUCTOR_ITERATIONS:
+ in-latest-posix: ''
+ SCHAR_MAX:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ SCHAR_MIN:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ SCHAR_WIDTH:
+ c-definition: 5.3.5.3.2
+ SEM_VALUE_MAX:
+ in-latest-posix: ''
+ SHRT_MAX:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ SHRT_MIN:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ SHRT_WIDTH:
+ c-definition: 5.3.5.3.2
+ SSIZE_MAX:
+ in-latest-posix: ''
+ UCHAR_MAX:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ UCHAR_MIN:
+ extension: llvm-libc
+ UCHAR_WIDTH:
+ c-definition: 5.3.5.3.2
+ UINT_MAX:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ UINT_MIN:
+ extension: llvm-libc
+ UINT_WIDTH:
+ c-definition: 5.3.5.3.2
+ ULLONG_MAX:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ ULLONG_MIN:
+ extension: llvm-libc
+ ULLONG_WIDTH:
+ c-definition: 5.3.5.3.2
+ ULONG_MAX:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ ULONG_MIN:
+ extension: llvm-libc
+ ULONG_WIDTH:
+ c-definition: 5.3.5.3.2
+ USHRT_MAX:
+ c-definition: 5.3.5.3.2
+ in-latest-posix: ''
+ USHRT_MIN:
+ extension: llvm-libc
+ USHRT_WIDTH:
+ c-definition: 5.3.5.3.2
+ _POSIX_ARG_MAX:
+ in-latest-posix: ''
+ _POSIX_HOST_NAME_MAX:
+ in-latest-posix: ''
+ _POSIX_MAX_CANON:
+ in-latest-posix: ''
+ _POSIX_MAX_INPUT:
+ in-latest-posix: ''
+ _POSIX_NAME_MAX:
+ in-latest-posix: ''
+ _POSIX_PATH_MAX:
+ in-latest-posix: ''
+ _POSIX_THREAD_DESTRUCTOR_ITERATIONS:
+ in-latest-posix: ''
+ __STDC_VERSION_LIMITS_H__:
+ c-definition: '7.10'
diff --git a/libc/utils/docgen/monetary.yaml b/libc/utils/docgen/monetary.yaml
new file mode 100644
index 00000000000000..3b4f20164002a1
--- /dev/null
+++ b/libc/utils/docgen/monetary.yaml
@@ -0,0 +1,13 @@
+posix: posix-2024
+functions:
+ strfmon:
+ in-latest-posix: ''
+ strfmon_l:
+ in-latest-posix: ''
+types:
+ locale_t:
+ in-latest-posix: ''
+ size_t:
+ in-latest-posix: ''
+ ssize_t:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/mqueue.yaml b/libc/utils/docgen/mqueue.yaml
new file mode 100644
index 00000000000000..2b91ba85380f81
--- /dev/null
+++ b/libc/utils/docgen/mqueue.yaml
@@ -0,0 +1,41 @@
+posix: posix-2024
+functions:
+ mq_clockreceive:
+ in-latest-posix: ''
+ mq_clocksend:
+ in-latest-posix: ''
+ mq_close:
+ in-latest-posix: ''
+ mq_getattr:
+ in-latest-posix: ''
+ mq_notify:
+ in-latest-posix: ''
+ mq_open:
+ in-latest-posix: ''
+ mq_receive:
+ in-latest-posix: ''
+ mq_send:
+ in-latest-posix: ''
+ mq_setattr:
+ in-latest-posix: ''
+ mq_timedreceive:
+ in-latest-posix: ''
+ mq_timedsend:
+ in-latest-posix: ''
+ mq_unlink:
+ in-latest-posix: ''
+types:
+ mqd_t:
+ in-latest-posix: ''
+ pthread_attr_t:
+ in-latest-posix: ''
+ size_t:
+ in-latest-posix: ''
+ ssize_t:
+ in-latest-posix: ''
+ struct mq_attr:
+ in-latest-posix: ''
+ struct sigevent:
+ in-latest-posix: ''
+ struct timespec:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/ndbm.yaml b/libc/utils/docgen/ndbm.yaml
new file mode 100644
index 00000000000000..2c04a6d6867b4f
--- /dev/null
+++ b/libc/utils/docgen/ndbm.yaml
@@ -0,0 +1,32 @@
+posix: posix-2024
+macros:
+ DBM_INSERT:
+ in-latest-posix: ''
+ DBM_REPLACE:
+ in-latest-posix: ''
+functions:
+ dbm_clearerr:
+ in-latest-posix: ''
+ dbm_close:
+ in-latest-posix: ''
+ dbm_delete:
+ in-latest-posix: ''
+ dbm_error:
+ in-latest-posix: ''
+ dbm_fetch:
+ in-latest-posix: ''
+ dbm_firstkey:
+ in-latest-posix: ''
+ dbm_nextkey:
+ in-latest-posix: ''
+ dbm_open:
+ in-latest-posix: ''
+ dbm_store:
+ in-latest-posix: ''
+types:
+ DBM:
+ in-latest...
[truncated]
``````````
</details>
https://github.com/llvm/llvm-project/pull/241564
More information about the libc-commits
mailing list