[libc-commits] [libc] fadb0e9 - [libc][docs] add sys/wait to documentation and include related functi… (#122598)

via libc-commits libc-commits at lists.llvm.org
Wed Jan 15 15:45:20 PST 2025


Author: Prashanth
Date: 2025-01-15T15:45:16-08:00
New Revision: fadb0e9b52511635c2b9202f5cf2fe9a8f49bfbc

URL: https://github.com/llvm/llvm-project/commit/fadb0e9b52511635c2b9202f5cf2fe9a8f49bfbc
DIFF: https://github.com/llvm/llvm-project/commit/fadb0e9b52511635c2b9202f5cf2fe9a8f49bfbc.diff

LOG: [libc][docs] add sys/wait to documentation and include related functi… (#122598)

These changes ensure that the `sys/wait` header is documented properly
with respect to the issue (#122006 ).

**Changes:**
1. **wait.yaml**: Created a new YAML file for `sys/wait` with functions
(`wait`, `waitid`, `waitpid`) and related macros.
2. **CMakeLists.txt**: Added `sys/wait` to the documentation
directories.
3. **index.rst**: Included `sys/wait` in the documentation index.

Added: 
    libc/utils/docgen/sys/wait.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 fca8caec004f7d..e77e979ab1e83f 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -55,6 +55,7 @@ if (SPHINX_FOUND)
       strings
       sys/mman
       sys/resource
+      sys/wait
       threads
       uchar
       wchar

diff  --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst
index 67325e40dcbbdd..5dbdcbc80529d7 100644
--- a/libc/docs/headers/index.rst
+++ b/libc/docs/headers/index.rst
@@ -28,6 +28,7 @@ Implementation Status
    strings
    sys/mman
    sys/resource
+   sys/wait
    threads
    time
    uchar

diff  --git a/libc/utils/docgen/sys/wait.yaml b/libc/utils/docgen/sys/wait.yaml
new file mode 100644
index 00000000000000..91d67ad4a358bf
--- /dev/null
+++ b/libc/utils/docgen/sys/wait.yaml
@@ -0,0 +1,37 @@
+functions:
+  wait:
+    in-latest-posix: ''
+  waitid:
+    in-latest-posix: ''
+  waitpid:
+    in-latest-posix: ''
+
+macros:
+  WCONTINUED:
+    in-latest-posix: ''
+  WEXITED:
+    in-latest-posix: ''
+  WEXITSTATUS:
+    in-latest-posix: ''
+  WIFCONTINUED:
+    in-latest-posix: ''
+  WIFEXITED:
+    in-latest-posix: ''
+  WIFSIGNALED:
+    in-latest-posix: ''
+  WIFSTOPPED:
+    in-latest-posix: ''
+  WNOHANG:
+    in-latest-posix: ''
+  WNOWAIT:
+    in-latest-posix: ''
+  WSTOPPED:
+    in-latest-posix: ''
+  WSTOPSIG:
+    in-latest-posix: ''
+  WTERMSIG:
+    in-latest-posix: ''
+  WUNTRACED:
+    in-latest-posix: ''
+  WCORE_DUMPED:
+    in-latest-posix: ''
\ No newline at end of file


        


More information about the libc-commits mailing list