[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:15 PST 2025
https://github.com/StarOne01 created https://github.com/llvm/llvm-project/pull/122563
### Add sys/resource header's implementation status
#### 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.
>From 006ec75852d1c9975bdd78266963a8c4be1effbe Mon Sep 17 00:00:00 2001
From: Prashanth <TheStarOne01 at proton.me>
Date: Sat, 11 Jan 2025 01:32:30 +0000
Subject: [PATCH] Add sys/resource documentation and include in CMakeLists
---
libc/docs/CMakeLists.txt | 1 +
libc/docs/headers/index.rst | 1 +
libc/utils/docgen/sys/resource.yaml | 43 +++++++++++++++++++++++++++++
3 files changed, 45 insertions(+)
create mode 100644 libc/utils/docgen/sys/resource.yaml
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
More information about the libc-commits
mailing list