[libc-commits] [libc] [libc][docs] Add sys/sem.h POSIX header documentation (#122006) (PR #194358)

Petter Berntsson via libc-commits libc-commits at lists.llvm.org
Mon Apr 27 05:30:55 PDT 2026


https://github.com/petbernt created https://github.com/llvm/llvm-project/pull/194358

Add sys/sem.h implementation-status docs to llvm-libc.

>From 762746dbc5630e1f5e68e888ddd521b8ae3ab3c7 Mon Sep 17 00:00:00 2001
From: Petter Berntsson <petter.berntsson at arm.com>
Date: Mon, 27 Apr 2026 10:26:07 +0100
Subject: [PATCH] [libc][docs] Add sys/sem.h POSIX header documentation
 (#122006)

---
 libc/docs/CMakeLists.txt       |  1 +
 libc/docs/headers/index.rst    |  1 +
 libc/utils/docgen/sys/sem.yaml | 25 +++++++++++++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100644 libc/utils/docgen/sys/sem.yaml

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: ''



More information about the libc-commits mailing list