[libc-commits] [libc] a6a53ea - [libc][docs] Add sched.h POSIX header documentation (#186290)
via libc-commits
libc-commits at lists.llvm.org
Fri May 1 06:19:01 PDT 2026
Author: Kit Dallege
Date: 2026-05-01T13:18:56Z
New Revision: a6a53ea8c01dd3a0d1f15b5de48f664115cb9298
URL: https://github.com/llvm/llvm-project/commit/a6a53ea8c01dd3a0d1f15b5de48f664115cb9298
DIFF: https://github.com/llvm/llvm-project/commit/a6a53ea8c01dd3a0d1f15b5de48f664115cb9298.diff
LOG: [libc][docs] Add sched.h POSIX header documentation (#186290)
Add YAML metadata for `sched.h` listing all POSIX-mandated macros
(`SCHED_FIFO`, `SCHED_OTHER`, `SCHED_RR`, `SCHED_SPORADIC`) and
functions
(`sched_get_priority_max`, `sched_get_priority_min`, `sched_getparam`,
`sched_getscheduler`, `sched_rr_get_interval`, `sched_setparam`,
`sched_setscheduler`, `sched_yield`).
Add `sched` to `index.rst` and `CMakeLists.txt` `docgen_list`.
Verified with `python3 docgen.py sched.h` — generates valid RST with
correct POSIX links.
Partial fix for #122006
Co-authored-by: Jeff Bailey <jbailey at raspberryginger.com>
Added:
libc/utils/docgen/sched.yaml
Modified:
libc/docs/CMakeLists.txt
libc/docs/headers/index.rst
Removed:
################################################################################
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index 2db68c84a9e94..eab900cebf51a 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -59,6 +59,7 @@ if (SPHINX_FOUND)
netinet/in
poll
pthread
+ sched
setjmp
signal
spawn
diff --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst
index 896059ddf33e2..9f557cd827c38 100644
--- a/libc/docs/headers/index.rst
+++ b/libc/docs/headers/index.rst
@@ -25,6 +25,7 @@ Implementation Status
netinet/in
nl_types
poll
+ sched
search
setjmp
signal
diff --git a/libc/utils/docgen/sched.yaml b/libc/utils/docgen/sched.yaml
new file mode 100644
index 0000000000000..41cdaa585928f
--- /dev/null
+++ b/libc/utils/docgen/sched.yaml
@@ -0,0 +1,27 @@
+macros:
+ SCHED_FIFO:
+ in-latest-posix: ''
+ SCHED_OTHER:
+ in-latest-posix: ''
+ SCHED_RR:
+ in-latest-posix: ''
+ SCHED_SPORADIC:
+ in-latest-posix: ''
+
+functions:
+ sched_get_priority_max:
+ in-latest-posix: ''
+ sched_get_priority_min:
+ in-latest-posix: ''
+ sched_getparam:
+ in-latest-posix: ''
+ sched_getscheduler:
+ in-latest-posix: ''
+ sched_rr_get_interval:
+ in-latest-posix: ''
+ sched_setparam:
+ in-latest-posix: ''
+ sched_setscheduler:
+ in-latest-posix: ''
+ sched_yield:
+ in-latest-posix: ''
More information about the libc-commits
mailing list