Skip to content

Commit

Permalink
[libc][docs] add sys/wait to documentation and include related functi… (
Browse files Browse the repository at this point in the history
llvm#122598)

These changes ensure that the `sys/wait` header is documented properly
with respect to the issue (llvm#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.
  • Loading branch information
StarOne01 authored and paulhuggett committed Jan 16, 2025
1 parent 72316b9 commit 848ccf2
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc/docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ if (SPHINX_FOUND)
strings
sys/mman
sys/resource
sys/wait
threads
uchar
wchar
Expand Down
1 change: 1 addition & 0 deletions libc/docs/headers/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Implementation Status
strings
sys/mman
sys/resource
sys/wait
threads
time
uchar
Expand Down
37 changes: 37 additions & 0 deletions libc/utils/docgen/sys/wait.yaml
Original file line number Diff line number Diff line change
@@ -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: ''

0 comments on commit 848ccf2

Please sign in to comment.