[libc-commits] [libc] [libc][docs] Add sched.h POSIX header documentation (PR #186290)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Fri May 1 06:11:35 PDT 2026
https://github.com/kaladron updated https://github.com/llvm/llvm-project/pull/186290
>From ed080d61ca7f02a4dd5daae31f29d604938a57c0 Mon Sep 17 00:00:00 2001
From: kovan <xaum.io at gmail.com>
Date: Fri, 13 Mar 2026 02:38:12 +0100
Subject: [PATCH] [libc][docs] Add sched.h POSIX header documentation
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.
Partial fix for #122006
---
libc/docs/CMakeLists.txt | 1 +
libc/docs/headers/index.rst | 1 +
libc/utils/docgen/sched.yaml | 27 +++++++++++++++++++++++++++
3 files changed, 29 insertions(+)
create mode 100644 libc/utils/docgen/sched.yaml
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index b739c494dbe92..419955aeacc89 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -56,6 +56,7 @@ if (SPHINX_FOUND)
net/if
netinet/in
pthread
+ sched
setjmp
signal
stdbit
diff --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst
index b77a54f9609ad..0ea2e5a40a353 100644
--- a/libc/docs/headers/index.rst
+++ b/libc/docs/headers/index.rst
@@ -22,6 +22,7 @@ Implementation Status
math/index.rst
net/if
netinet/in
+ 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