-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libc][docs] add sys/wait to documentation and include related functi… #122598
Conversation
@llvm/pr-subscribers-libc Author: Prashanth (StarOne01) ChangesChanges:
These changes ensure that the Full diff: https://github.com/llvm/llvm-project/pull/122598.diff 3 Files Affected:
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index 4fa621fb2a0510..eabb26b9aa6b13 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -53,6 +53,7 @@ if (SPHINX_FOUND)
string
strings
sys/mman
+ sys/wait
threads
uchar
wchar
diff --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst
index 2295a8cc8853cd..694b4b6f1a6b1c 100644
--- a/libc/docs/headers/index.rst
+++ b/libc/docs/headers/index.rst
@@ -26,6 +26,7 @@ Implementation Status
string
strings
sys/mman
+ 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..bf801073b7b8c8
--- /dev/null
+++ b/libc/utils/docgen/sys/wait.yaml
@@ -0,0 +1,35 @@
+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: ''
\ No newline at end of file
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's faster to review these if you define things in the order they appear in the posix docs. They will get alphabetically sorted when generating the rst files. You don't need to resort this file, but for future PRs please keep that in mind.
Thanks for the patch!
Done! I believe you mentioned it somewhere to
I guess, i misunderstood it for the whole doc instead of just index files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the patch! 🇹🇹
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.
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.
These changes ensure that the
sys/wait
header is documented properly with respect to the issue (#122006 ).Changes:
sys/wait
with functions (wait
,waitid
,waitpid
) and related macros.sys/wait
to the documentation directories.sys/wait
in the documentation index.