[libc-commits] [libc] [libc][docs] Add sys/sem.h POSIX header documentation (#122006) (PR #194358)
via libc-commits
libc-commits at lists.llvm.org
Mon Apr 27 05:33:07 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Petter Berntsson (petbernt)
<details>
<summary>Changes</summary>
Add sys/sem.h implementation-status docs to llvm-libc.
---
Full diff: https://github.com/llvm/llvm-project/pull/194358.diff
3 Files Affected:
- (modified) libc/docs/CMakeLists.txt (+1)
- (modified) libc/docs/headers/index.rst (+1)
- (added) libc/utils/docgen/sys/sem.yaml (+25)
``````````diff
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index 237a648e7ac1d..3326875932ad0 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -68,6 +68,7 @@ if (SPHINX_FOUND)
sys/mman
sys/resource
sys/select
+ sys/sem
sys/socket
sys/stat
sys/statvfs
diff --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst
index 3902d08b94c3e..d5e6397f68abb 100644
--- a/libc/docs/headers/index.rst
+++ b/libc/docs/headers/index.rst
@@ -36,6 +36,7 @@ Implementation Status
sys/mman
sys/resource
sys/select
+ sys/sem
sys/socket
sys/stat
sys/statvfs
diff --git a/libc/utils/docgen/sys/sem.yaml b/libc/utils/docgen/sys/sem.yaml
new file mode 100644
index 0000000000000..c50d850ee158c
--- /dev/null
+++ b/libc/utils/docgen/sys/sem.yaml
@@ -0,0 +1,25 @@
+functions:
+ semctl:
+ in-latest-posix: ''
+ semget:
+ in-latest-posix: ''
+ semop:
+ in-latest-posix: ''
+
+macros:
+ GETALL:
+ in-latest-posix: ''
+ GETNCNT:
+ in-latest-posix: ''
+ GETPID:
+ in-latest-posix: ''
+ GETVAL:
+ in-latest-posix: ''
+ GETZCNT:
+ in-latest-posix: ''
+ SEM_UNDO:
+ in-latest-posix: ''
+ SETALL:
+ in-latest-posix: ''
+ SETVAL:
+ in-latest-posix: ''
``````````
</details>
https://github.com/llvm/llvm-project/pull/194358
More information about the libc-commits
mailing list