[libc-commits] [libc] [libc][docs] Add sys/resource header's implementation status (PR #122563)
via libc-commits
libc-commits at lists.llvm.org
Fri Jan 10 17:46:49 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Prashanth (StarOne01)
<details>
<summary>Changes</summary>
### Add sys/resource header's implementation status ( #<!-- -->122006 )
#### Changes:
1. **CMakeLists.txt**: Added `sys/resource` to the list of documentation directories.
2. **index.rst**: Included `sys/resource` in the documentation index.
3. **resource.yaml**: Created a new YAML file for `sys/resource` with functions and macros which manages system resources.
This PR adds documentation support for the `sys/resource` header, including functions and macros as per the latest POSIX standards.
---
Full diff: https://github.com/llvm/llvm-project/pull/122563.diff
3 Files Affected:
- (modified) libc/docs/CMakeLists.txt (+1)
- (modified) libc/docs/headers/index.rst (+1)
- (added) libc/utils/docgen/sys/resource.yaml (+43)
``````````diff
diff --git a/libc/docs/CMakeLists.txt b/libc/docs/CMakeLists.txt
index 4fa621fb2a0510..8548e88c73fa54 100644
--- a/libc/docs/CMakeLists.txt
+++ b/libc/docs/CMakeLists.txt
@@ -53,6 +53,7 @@ if (SPHINX_FOUND)
string
strings
sys/mman
+ sys/resource
threads
uchar
wchar
diff --git a/libc/docs/headers/index.rst b/libc/docs/headers/index.rst
index 2295a8cc8853cd..614fb6c703e5e7 100644
--- a/libc/docs/headers/index.rst
+++ b/libc/docs/headers/index.rst
@@ -26,6 +26,7 @@ Implementation Status
string
strings
sys/mman
+ sys/resource
threads
time
uchar
diff --git a/libc/utils/docgen/sys/resource.yaml b/libc/utils/docgen/sys/resource.yaml
new file mode 100644
index 00000000000000..0b8ac219853267
--- /dev/null
+++ b/libc/utils/docgen/sys/resource.yaml
@@ -0,0 +1,43 @@
+functions:
+ getpriority:
+ in-latest-posix: ''
+ getrlimit:
+ in-latest-posix: ''
+ getrusage:
+ in-latest-posix: ''
+ setpriority:
+ in-latest-posix: ''
+ setrlimit:
+ in-latest-posix: ''
+
+macros:
+ PRIO_PROCESS:
+ in-latest-posix: ''
+ PRIO_PGRP:
+ in-latest-posix: ''
+ PRIO_USER:
+ in-latest-posix: ''
+ RLIM_INFINITY:
+ in-latest-posix: ''
+ RLIM_SAVED_MAX:
+ in-latest-posix: ''
+ RLIM_SAVED_CUR:
+ in-latest-posix: ''
+ RLIMIT_CORE:
+ in-latest-posix: ''
+ RLIMIT_CPU:
+ in-latest-posix: ''
+ RLIMIT_DATA:
+ in-latest-posix: ''
+ RLIMIT_FSIZE:
+ in-latest-posix: ''
+ RLIMIT_NOFILE:
+ in-latest-posix: ''
+ RLIMIT_STACK:
+ in-latest-posix: ''
+ RLIMIT_AS:
+ in-latest-posix: ''
+ RUSAGE_SELF:
+ in-latest-posix: ''
+ RUSAGE_CHILDREN:
+ in-latest-posix: ''
\ No newline at end of file
``````````
</details>
https://github.com/llvm/llvm-project/pull/122563
More information about the libc-commits
mailing list