[libc-commits] [libc] b8c9fba - [libc][docs] Add remaining C23 and POSIX docgen header catalogues (#241564)
via libc-commits
libc-commits at lists.llvm.org
Thu Nov 12 04:50:01 PST 2026
Author: Jeff Bailey
Date: 2026-11-12T12:49:55Z
New Revision: b8c9fba53f98a8d4e290b1160f85b52d03a680a4
URL: https://github.com/llvm/llvm-project/commit/b8c9fba53f98a8d4e290b1160f85b52d03a680a4
DIFF: https://github.com/llvm/llvm-project/commit/b8c9fba53f98a8d4e290b1160f85b52d03a680a4.diff
LOG: [libc][docs] Add remaining C23 and POSIX docgen header catalogues (#241564)
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.
Added:
libc/utils/docgen/fmtmsg.yaml
libc/utils/docgen/fnmatch.yaml
libc/utils/docgen/ftw.yaml
libc/utils/docgen/grp.yaml
libc/utils/docgen/iconv.yaml
libc/utils/docgen/langinfo.yaml
libc/utils/docgen/limits.yaml
libc/utils/docgen/monetary.yaml
libc/utils/docgen/mqueue.yaml
libc/utils/docgen/ndbm.yaml
libc/utils/docgen/netdb.yaml
libc/utils/docgen/regex.yaml
libc/utils/docgen/semaphore.yaml
libc/utils/docgen/stdckdint.yaml
libc/utils/docgen/stdint.yaml
libc/utils/docgen/sys/shm.yaml
libc/utils/docgen/sys/times.yaml
libc/utils/docgen/sys/types.yaml
libc/utils/docgen/sys/un.yaml
libc/utils/docgen/tar.yaml
libc/utils/docgen/ulimit.yaml
libc/utils/docgen/utime.yaml
libc/utils/docgen/utmpx.yaml
libc/utils/docgen/wordexp.yaml
Modified:
libc/docs/CMakeLists.txt
libc/docs/headers/index.md
libc/utils/docgen/docgen.py
libc/utils/docgen/docgen_test.py
libc/utils/docgen/float.yaml
libc/utils/docgen/header.py
Removed:
################################################################################
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index 3b21b19b69e1b..bd71375f98055 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,13 +48,17 @@ if(LLVM_ENABLE_SPHINX)
poll
pthread
pwd
+ regex
sched
search
+ semaphore
setjmp
signal
spawn
stdbit
+ stdckdint
stdfix
+ stdint
stdio
stdlib
string
@@ -54,21 +69,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 7f4b6f25ef5f9..872a86a3cb049 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 09f9e95905171..a870b5fbd21ba 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 f6e59ff751f66..2eae1e5724410 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 87b1b32f8fef8..4a97e5182c3e0 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 0000000000000..2da2cdb3c2df3
--- /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 0000000000000..72082392afc78
--- /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 0000000000000..a1c7721d62e3c
--- /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 0000000000000..9418cfca031b2
--- /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 97faa54302282..c03ce7b17af02 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 0000000000000..dc22aba15d177
--- /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 0000000000000..3da9074e7fbca
--- /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 0000000000000..bc16f4ca4af81
--- /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 0000000000000..3b4f20164002a
--- /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 0000000000000..2b91ba85380f8
--- /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 0000000000000..2c04a6d6867b4
--- /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-posix: ''
+ datum:
+ in-latest-posix: ''
+ mode_t:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/netdb.yaml b/libc/utils/docgen/netdb.yaml
new file mode 100644
index 0000000000000..e0de3ebb2b024
--- /dev/null
+++ b/libc/utils/docgen/netdb.yaml
@@ -0,0 +1,106 @@
+posix: posix-2024
+functions:
+ endhostent:
+ in-latest-posix: ''
+ endnetent:
+ in-latest-posix: ''
+ endprotoent:
+ in-latest-posix: ''
+ endservent:
+ in-latest-posix: ''
+ freeaddrinfo:
+ in-latest-posix: ''
+ gai_strerror:
+ in-latest-posix: ''
+ getaddrinfo:
+ in-latest-posix: ''
+ gethostent:
+ in-latest-posix: ''
+ getnameinfo:
+ in-latest-posix: ''
+ getnetbyaddr:
+ in-latest-posix: ''
+ getnetbyname:
+ in-latest-posix: ''
+ getnetent:
+ in-latest-posix: ''
+ getprotobyname:
+ in-latest-posix: ''
+ getprotobynumber:
+ in-latest-posix: ''
+ getprotoent:
+ in-latest-posix: ''
+ getservbyname:
+ in-latest-posix: ''
+ getservbyport:
+ in-latest-posix: ''
+ getservent:
+ in-latest-posix: ''
+ sethostent:
+ in-latest-posix: ''
+ setnetent:
+ in-latest-posix: ''
+ setprotoent:
+ in-latest-posix: ''
+ setservent:
+ in-latest-posix: ''
+macros:
+ AI_ADDRCONFIG:
+ in-latest-posix: ''
+ AI_ALL:
+ in-latest-posix: ''
+ AI_CANONNAME:
+ in-latest-posix: ''
+ AI_NUMERICHOST:
+ in-latest-posix: ''
+ AI_NUMERICSERV:
+ in-latest-posix: ''
+ AI_PASSIVE:
+ in-latest-posix: ''
+ AI_V4MAPPED:
+ in-latest-posix: ''
+ EAI_AGAIN:
+ in-latest-posix: ''
+ EAI_BADFLAGS:
+ in-latest-posix: ''
+ EAI_FAIL:
+ in-latest-posix: ''
+ EAI_FAMILY:
+ in-latest-posix: ''
+ EAI_MEMORY:
+ in-latest-posix: ''
+ EAI_NONAME:
+ in-latest-posix: ''
+ EAI_OVERFLOW:
+ in-latest-posix: ''
+ EAI_SERVICE:
+ in-latest-posix: ''
+ EAI_SOCKTYPE:
+ in-latest-posix: ''
+ EAI_SYSTEM:
+ in-latest-posix: ''
+ NI_DGRAM:
+ in-latest-posix: ''
+ NI_NAMEREQD:
+ in-latest-posix: ''
+ NI_NOFQDN:
+ in-latest-posix: ''
+ NI_NUMERICHOST:
+ in-latest-posix: ''
+ NI_NUMERICSCOPE:
+ in-latest-posix: ''
+ NI_NUMERICSERV:
+ in-latest-posix: ''
+types:
+ socklen_t:
+ in-latest-posix: ''
+ struct addrinfo:
+ in-latest-posix: ''
+ struct hostent:
+ in-latest-posix: ''
+ struct netent:
+ in-latest-posix: ''
+ struct protoent:
+ in-latest-posix: ''
+ struct servent:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/regex.yaml b/libc/utils/docgen/regex.yaml
new file mode 100644
index 0000000000000..dcd0659fd0f4b
--- /dev/null
+++ b/libc/utils/docgen/regex.yaml
@@ -0,0 +1,56 @@
+posix: posix-2024
+functions:
+ regcomp:
+ in-latest-posix: ''
+ regerror:
+ in-latest-posix: ''
+ regexec:
+ in-latest-posix: ''
+ regfree:
+ in-latest-posix: ''
+macros:
+ REG_BADBR:
+ in-latest-posix: ''
+ REG_BADPAT:
+ in-latest-posix: ''
+ REG_BADRPT:
+ in-latest-posix: ''
+ REG_EBRACE:
+ in-latest-posix: ''
+ REG_EBRACK:
+ in-latest-posix: ''
+ REG_ECOLLATE:
+ in-latest-posix: ''
+ REG_ECTYPE:
+ in-latest-posix: ''
+ REG_EESCAPE:
+ in-latest-posix: ''
+ REG_EPAREN:
+ in-latest-posix: ''
+ REG_ERANGE:
+ in-latest-posix: ''
+ REG_ESPACE:
+ in-latest-posix: ''
+ REG_ESUBREG:
+ in-latest-posix: ''
+ REG_EXTENDED:
+ in-latest-posix: ''
+ REG_ICASE:
+ in-latest-posix: ''
+ REG_NEWLINE:
+ in-latest-posix: ''
+ REG_NOMATCH:
+ in-latest-posix: ''
+ REG_NOSUB:
+ in-latest-posix: ''
+ REG_NOTBOL:
+ in-latest-posix: ''
+ REG_NOTEOL:
+ in-latest-posix: ''
+types:
+ regex_t:
+ in-latest-posix: ''
+ regmatch_t:
+ in-latest-posix: ''
+ regoff_t:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/semaphore.yaml b/libc/utils/docgen/semaphore.yaml
new file mode 100644
index 0000000000000..45cf671a2a971
--- /dev/null
+++ b/libc/utils/docgen/semaphore.yaml
@@ -0,0 +1,36 @@
+posix: posix-2024
+functions:
+ sem_clockwait:
+ in-latest-posix: ''
+ sem_close:
+ in-latest-posix: ''
+ sem_destroy:
+ in-latest-posix: ''
+ sem_getvalue:
+ in-latest-posix: ''
+ sem_init:
+ in-latest-posix: ''
+ sem_open:
+ in-latest-posix: ''
+ sem_post:
+ in-latest-posix: ''
+ sem_timedwait:
+ in-latest-posix: ''
+ sem_trywait:
+ in-latest-posix: ''
+ sem_unlink:
+ in-latest-posix: ''
+ sem_wait:
+ in-latest-posix: ''
+macros:
+ SEM_FAILED:
+ in-latest-posix: ''
+types:
+ clockid_t:
+ in-latest-posix: ''
+ mode_t:
+ in-latest-posix: ''
+ sem_t:
+ in-latest-posix: ''
+ struct timespec:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/stdckdint.yaml b/libc/utils/docgen/stdckdint.yaml
new file mode 100644
index 0000000000000..3c9bc69067953
--- /dev/null
+++ b/libc/utils/docgen/stdckdint.yaml
@@ -0,0 +1,11 @@
+standard: c23
+c-reference-root: numeric/ckd_arith
+macros:
+ __STDC_VERSION_STDCKDINT_H__:
+ c-definition: '7.20'
+ ckd_add:
+ c-definition: 7.20.1
+ ckd_mul:
+ c-definition: 7.20.1
+ ckd_sub:
+ c-definition: 7.20.1
diff --git a/libc/utils/docgen/stdint.yaml b/libc/utils/docgen/stdint.yaml
new file mode 100644
index 0000000000000..fc736b23ffe9e
--- /dev/null
+++ b/libc/utils/docgen/stdint.yaml
@@ -0,0 +1,340 @@
+standard: c23
+posix: posix-2024
+c-reference-root: types/integer
+types:
+ int16_t:
+ c-definition: 7.22.1.1
+ in-latest-posix: ''
+ int32_t:
+ c-definition: 7.22.1.1
+ in-latest-posix: ''
+ int64_t:
+ c-definition: 7.22.1.1
+ in-latest-posix: ''
+ int8_t:
+ c-definition: 7.22.1.1
+ in-latest-posix: ''
+ int_fast16_t:
+ c-definition: 7.22.1.3
+ in-latest-posix: ''
+ int_fast32_t:
+ c-definition: 7.22.1.3
+ in-latest-posix: ''
+ int_fast64_t:
+ c-definition: 7.22.1.3
+ in-latest-posix: ''
+ int_fast8_t:
+ c-definition: 7.22.1.3
+ in-latest-posix: ''
+ int_least16_t:
+ c-definition: 7.22.1.2
+ in-latest-posix: ''
+ int_least32_t:
+ c-definition: 7.22.1.2
+ in-latest-posix: ''
+ int_least64_t:
+ c-definition: 7.22.1.2
+ in-latest-posix: ''
+ int_least8_t:
+ c-definition: 7.22.1.2
+ in-latest-posix: ''
+ intmax_t:
+ c-definition: 7.22.1.5
+ in-latest-posix: ''
+ intptr_t:
+ c-definition: 7.22.1.4
+ in-latest-posix: ''
+ uint16_t:
+ c-definition: 7.22.1.1
+ in-latest-posix: ''
+ uint32_t:
+ c-definition: 7.22.1.1
+ in-latest-posix: ''
+ uint64_t:
+ c-definition: 7.22.1.1
+ in-latest-posix: ''
+ uint8_t:
+ c-definition: 7.22.1.1
+ in-latest-posix: ''
+ uint_fast16_t:
+ c-definition: 7.22.1.3
+ in-latest-posix: ''
+ uint_fast32_t:
+ c-definition: 7.22.1.3
+ in-latest-posix: ''
+ uint_fast64_t:
+ c-definition: 7.22.1.3
+ in-latest-posix: ''
+ uint_fast8_t:
+ c-definition: 7.22.1.3
+ in-latest-posix: ''
+ uint_least16_t:
+ c-definition: 7.22.1.2
+ in-latest-posix: ''
+ uint_least32_t:
+ c-definition: 7.22.1.2
+ in-latest-posix: ''
+ uint_least64_t:
+ c-definition: 7.22.1.2
+ in-latest-posix: ''
+ uint_least8_t:
+ c-definition: 7.22.1.2
+ in-latest-posix: ''
+ uintmax_t:
+ c-definition: 7.22.1.5
+ in-latest-posix: ''
+ uintptr_t:
+ c-definition: 7.22.1.4
+ in-latest-posix: ''
+macros:
+ INT16_C:
+ c-definition: 7.22.4
+ in-latest-posix: ''
+ INT16_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT16_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT16_WIDTH:
+ c-definition: 7.22.2
+ INT32_C:
+ c-definition: 7.22.4
+ in-latest-posix: ''
+ INT32_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT32_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT32_WIDTH:
+ c-definition: 7.22.2
+ INT64_C:
+ c-definition: 7.22.4
+ in-latest-posix: ''
+ INT64_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT64_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT64_WIDTH:
+ c-definition: 7.22.2
+ INT8_C:
+ c-definition: 7.22.4
+ in-latest-posix: ''
+ INT8_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT8_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT8_WIDTH:
+ c-definition: 7.22.2
+ INTMAX_C:
+ c-definition: 7.22.4
+ in-latest-posix: ''
+ INTMAX_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INTMAX_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INTMAX_WIDTH:
+ c-definition: 7.22.2
+ INTPTR_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INTPTR_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INTPTR_WIDTH:
+ c-definition: 7.22.2
+ INT_FAST16_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_FAST16_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_FAST16_WIDTH:
+ c-definition: 7.22.2
+ INT_FAST32_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_FAST32_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_FAST32_WIDTH:
+ c-definition: 7.22.2
+ INT_FAST64_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_FAST64_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_FAST64_WIDTH:
+ c-definition: 7.22.2
+ INT_FAST8_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_FAST8_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_FAST8_WIDTH:
+ c-definition: 7.22.2
+ INT_LEAST16_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_LEAST16_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_LEAST16_WIDTH:
+ c-definition: 7.22.2
+ INT_LEAST32_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_LEAST32_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_LEAST32_WIDTH:
+ c-definition: 7.22.2
+ INT_LEAST64_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_LEAST64_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_LEAST64_WIDTH:
+ c-definition: 7.22.2
+ INT_LEAST8_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_LEAST8_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ INT_LEAST8_WIDTH:
+ c-definition: 7.22.2
+ PTRDIFF_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ PTRDIFF_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ PTRDIFF_WIDTH:
+ c-definition: 7.22.2
+ SIG_ATOMIC_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ SIG_ATOMIC_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ SIG_ATOMIC_WIDTH:
+ c-definition: 7.22.2
+ SIZE_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ SIZE_WIDTH:
+ c-definition: 7.22.2
+ UINT16_C:
+ c-definition: 7.22.4
+ in-latest-posix: ''
+ UINT16_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINT16_WIDTH:
+ c-definition: 7.22.2
+ UINT32_C:
+ c-definition: 7.22.4
+ in-latest-posix: ''
+ UINT32_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINT32_WIDTH:
+ c-definition: 7.22.2
+ UINT64_C:
+ c-definition: 7.22.4
+ in-latest-posix: ''
+ UINT64_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINT64_WIDTH:
+ c-definition: 7.22.2
+ UINT8_C:
+ c-definition: 7.22.4
+ in-latest-posix: ''
+ UINT8_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINT8_WIDTH:
+ c-definition: 7.22.2
+ UINTMAX_C:
+ c-definition: 7.22.4
+ in-latest-posix: ''
+ UINTMAX_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINTMAX_WIDTH:
+ c-definition: 7.22.2
+ UINTPTR_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINTPTR_WIDTH:
+ c-definition: 7.22.2
+ UINT_FAST16_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINT_FAST16_WIDTH:
+ c-definition: 7.22.2
+ UINT_FAST32_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINT_FAST32_WIDTH:
+ c-definition: 7.22.2
+ UINT_FAST64_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINT_FAST64_WIDTH:
+ c-definition: 7.22.2
+ UINT_FAST8_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINT_FAST8_WIDTH:
+ c-definition: 7.22.2
+ UINT_LEAST16_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINT_LEAST16_WIDTH:
+ c-definition: 7.22.2
+ UINT_LEAST32_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINT_LEAST32_WIDTH:
+ c-definition: 7.22.2
+ UINT_LEAST64_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINT_LEAST64_WIDTH:
+ c-definition: 7.22.2
+ UINT_LEAST8_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ UINT_LEAST8_WIDTH:
+ c-definition: 7.22.2
+ WCHAR_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ WCHAR_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ WCHAR_WIDTH:
+ c-definition: 7.22.2
+ WINT_MAX:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ WINT_MIN:
+ c-definition: 7.22.2
+ in-latest-posix: ''
+ WINT_WIDTH:
+ c-definition: 7.22.2
+ __STDC_VERSION_STDINT_H__:
+ c-definition: '7.22'
diff --git a/libc/utils/docgen/sys/shm.yaml b/libc/utils/docgen/sys/shm.yaml
new file mode 100644
index 0000000000000..acc18dd777089
--- /dev/null
+++ b/libc/utils/docgen/sys/shm.yaml
@@ -0,0 +1,90 @@
+posix: posix-2024
+types:
+ intptr_t:
+ extension: linux
+ key_t:
+ in-latest-posix: ''
+ pid_t:
+ in-latest-posix: ''
+ shmatt_t:
+ in-latest-posix: ''
+ size_t:
+ in-latest-posix: ''
+ struct shmid_ds:
+ in-latest-posix: ''
+ time_t:
+ in-latest-posix: ''
+macros:
+ SHMLBA:
+ in-latest-posix: ''
+ SHM_DEST:
+ extension: linux
+ SHM_EXEC:
+ extension: linux
+ SHM_FAILED:
+ extension: linux
+ SHM_HUGETLB:
+ extension: linux
+ SHM_HUGE_16GB:
+ extension: linux
+ SHM_HUGE_16KB:
+ extension: linux
+ SHM_HUGE_16MB:
+ extension: linux
+ SHM_HUGE_1GB:
+ extension: linux
+ SHM_HUGE_1MB:
+ extension: linux
+ SHM_HUGE_256MB:
+ extension: linux
+ SHM_HUGE_2GB:
+ extension: linux
+ SHM_HUGE_2MB:
+ extension: linux
+ SHM_HUGE_32MB:
+ extension: linux
+ SHM_HUGE_512KB:
+ extension: linux
+ SHM_HUGE_512MB:
+ extension: linux
+ SHM_HUGE_64KB:
+ extension: linux
+ SHM_HUGE_8MB:
+ extension: linux
+ SHM_HUGE_MASK:
+ extension: linux
+ SHM_HUGE_SHIFT:
+ extension: linux
+ SHM_INFO:
+ extension: linux
+ SHM_LOCK:
+ extension: linux
+ SHM_LOCKED:
+ extension: linux
+ SHM_NORESERVE:
+ extension: linux
+ SHM_R:
+ extension: linux
+ SHM_RDONLY:
+ in-latest-posix: ''
+ SHM_REMAP:
+ extension: linux
+ SHM_RND:
+ in-latest-posix: ''
+ SHM_STAT:
+ extension: linux
+ SHM_STAT_ANY:
+ extension: linux
+ SHM_UNLOCK:
+ extension: linux
+ SHM_W:
+ extension: linux
+functions:
+ shmat:
+ in-latest-posix: ''
+ shmctl:
+ in-latest-posix: ''
+ shmdt:
+ in-latest-posix: ''
+ shmget:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/sys/times.yaml b/libc/utils/docgen/sys/times.yaml
new file mode 100644
index 0000000000000..2c0ab55ceabe5
--- /dev/null
+++ b/libc/utils/docgen/sys/times.yaml
@@ -0,0 +1,9 @@
+posix: posix-2024
+functions:
+ times:
+ in-latest-posix: ''
+types:
+ clock_t:
+ in-latest-posix: ''
+ struct tms:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/sys/types.yaml b/libc/utils/docgen/sys/types.yaml
new file mode 100644
index 0000000000000..2979b949f0cac
--- /dev/null
+++ b/libc/utils/docgen/sys/types.yaml
@@ -0,0 +1,100 @@
+posix: posix-2024
+types:
+ blkcnt_t:
+ in-latest-posix: ''
+ blksize_t:
+ in-latest-posix: ''
+ caddr_t:
+ extension: bsd
+ clock_t:
+ in-latest-posix: ''
+ clockid_t:
+ in-latest-posix: ''
+ dev_t:
+ in-latest-posix: ''
+ fsblkcnt_t:
+ in-latest-posix: ''
+ fsfilcnt_t:
+ in-latest-posix: ''
+ gid_t:
+ in-latest-posix: ''
+ id_t:
+ in-latest-posix: ''
+ ino64_t:
+ extension: gnu
+ ino_t:
+ in-latest-posix: ''
+ key_t:
+ in-latest-posix: ''
+ loff_t:
+ extension: gnu
+ mode_t:
+ in-latest-posix: ''
+ nlink_t:
+ in-latest-posix: ''
+ off64_t:
+ extension: gnu
+ off_t:
+ in-latest-posix: ''
+ pid_t:
+ in-latest-posix: ''
+ pthread_attr_t:
+ in-latest-posix: ''
+ pthread_barrier_t:
+ in-latest-posix: ''
+ pthread_barrierattr_t:
+ in-latest-posix: ''
+ pthread_cond_t:
+ in-latest-posix: ''
+ pthread_condattr_t:
+ in-latest-posix: ''
+ pthread_key_t:
+ in-latest-posix: ''
+ pthread_mutex_t:
+ in-latest-posix: ''
+ pthread_mutexattr_t:
+ in-latest-posix: ''
+ pthread_once_t:
+ in-latest-posix: ''
+ pthread_rwlock_t:
+ in-latest-posix: ''
+ pthread_rwlockattr_t:
+ in-latest-posix: ''
+ pthread_spinlock_t:
+ in-latest-posix: ''
+ pthread_t:
+ in-latest-posix: ''
+ size_t:
+ in-latest-posix: ''
+ ssize_t:
+ in-latest-posix: ''
+ suseconds_t:
+ in-latest-posix: ''
+ time_t:
+ in-latest-posix: ''
+ timer_t:
+ in-latest-posix: ''
+ u_char:
+ extension: bsd
+ u_int:
+ extension: bsd
+ u_int16_t:
+ extension: bsd
+ u_int32_t:
+ extension: bsd
+ u_int8_t:
+ extension: bsd
+ u_long:
+ extension: bsd
+ u_short:
+ extension: bsd
+ uid_t:
+ in-latest-posix: ''
+ uint:
+ extension: bsd
+ ulong:
+ extension: bsd
+ useconds_t:
+ removed-in-posix-2008: ''
+ ushort:
+ extension: bsd
diff --git a/libc/utils/docgen/sys/un.yaml b/libc/utils/docgen/sys/un.yaml
new file mode 100644
index 0000000000000..20fdf245f19b8
--- /dev/null
+++ b/libc/utils/docgen/sys/un.yaml
@@ -0,0 +1,6 @@
+posix: posix-2024
+types:
+ sa_family_t:
+ in-latest-posix: ''
+ struct sockaddr_un:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/tar.yaml b/libc/utils/docgen/tar.yaml
new file mode 100644
index 0000000000000..fa8c07f625f03
--- /dev/null
+++ b/libc/utils/docgen/tar.yaml
@@ -0,0 +1,40 @@
+posix: posix-2024
+macros:
+ AREGTYPE:
+ in-latest-posix: ''
+ BLKTYPE:
+ in-latest-posix: ''
+ CHRTYPE:
+ in-latest-posix: ''
+ CONTTYPE:
+ in-latest-posix: ''
+ DIRTYPE:
+ in-latest-posix: ''
+ FIFOTYPE:
+ in-latest-posix: ''
+ LNKTYPE:
+ in-latest-posix: ''
+ REGTYPE:
+ in-latest-posix: ''
+ SYMTYPE:
+ in-latest-posix: ''
+ TGEXEC:
+ in-latest-posix: ''
+ TMAGIC:
+ in-latest-posix: ''
+ TMAGLEN:
+ in-latest-posix: ''
+ TOEXEC:
+ in-latest-posix: ''
+ TSGID:
+ in-latest-posix: ''
+ TSUID:
+ in-latest-posix: ''
+ TSVTX:
+ in-latest-posix: ''
+ TUEXEC:
+ in-latest-posix: ''
+ TVERSION:
+ in-latest-posix: ''
+ TVERSLEN:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/ulimit.yaml b/libc/utils/docgen/ulimit.yaml
new file mode 100644
index 0000000000000..f8b59a6a24926
--- /dev/null
+++ b/libc/utils/docgen/ulimit.yaml
@@ -0,0 +1,8 @@
+macros:
+ UL_GETFSIZE:
+ removed-in-posix-2024: ''
+ UL_SETFSIZE:
+ removed-in-posix-2024: ''
+functions:
+ ulimit:
+ removed-in-posix-2024: ''
diff --git a/libc/utils/docgen/utime.yaml b/libc/utils/docgen/utime.yaml
new file mode 100644
index 0000000000000..a9331f3c531e7
--- /dev/null
+++ b/libc/utils/docgen/utime.yaml
@@ -0,0 +1,8 @@
+types:
+ struct utimbuf:
+ removed-in-posix-2024: ''
+ time_t:
+ removed-in-posix-2024: ''
+functions:
+ utime:
+ removed-in-posix-2024: ''
diff --git a/libc/utils/docgen/utmpx.yaml b/libc/utils/docgen/utmpx.yaml
new file mode 100644
index 0000000000000..0da145763a556
--- /dev/null
+++ b/libc/utils/docgen/utmpx.yaml
@@ -0,0 +1,38 @@
+posix: posix-2024
+macros:
+ BOOT_TIME:
+ in-latest-posix: ''
+ DEAD_PROCESS:
+ in-latest-posix: ''
+ EMPTY:
+ in-latest-posix: ''
+ INIT_PROCESS:
+ in-latest-posix: ''
+ LOGIN_PROCESS:
+ in-latest-posix: ''
+ NEW_TIME:
+ in-latest-posix: ''
+ OLD_TIME:
+ in-latest-posix: ''
+ USER_PROCESS:
+ in-latest-posix: ''
+functions:
+ endutxent:
+ in-latest-posix: ''
+ getutxent:
+ in-latest-posix: ''
+ getutxid:
+ in-latest-posix: ''
+ getutxline:
+ in-latest-posix: ''
+ pututxline:
+ in-latest-posix: ''
+ setutxent:
+ in-latest-posix: ''
+types:
+ pid_t:
+ in-latest-posix: ''
+ struct timeval:
+ in-latest-posix: ''
+ struct utmpx:
+ in-latest-posix: ''
diff --git a/libc/utils/docgen/wordexp.yaml b/libc/utils/docgen/wordexp.yaml
new file mode 100644
index 0000000000000..a9b32f1bbb9ed
--- /dev/null
+++ b/libc/utils/docgen/wordexp.yaml
@@ -0,0 +1,34 @@
+posix: posix-2024
+macros:
+ WRDE_APPEND:
+ in-latest-posix: ''
+ WRDE_BADCHAR:
+ in-latest-posix: ''
+ WRDE_BADVAL:
+ in-latest-posix: ''
+ WRDE_CMDSUB:
+ in-latest-posix: ''
+ WRDE_DOOFFS:
+ in-latest-posix: ''
+ WRDE_NOCMD:
+ in-latest-posix: ''
+ WRDE_NOSPACE:
+ in-latest-posix: ''
+ WRDE_REUSE:
+ in-latest-posix: ''
+ WRDE_SHOWERR:
+ in-latest-posix: ''
+ WRDE_SYNTAX:
+ in-latest-posix: ''
+ WRDE_UNDEF:
+ in-latest-posix: ''
+functions:
+ wordexp:
+ in-latest-posix: ''
+ wordfree:
+ in-latest-posix: ''
+types:
+ size_t:
+ in-latest-posix: ''
+ wordexp_t:
+ in-latest-posix: ''
More information about the libc-commits
mailing list