[libc-commits] [libc] c2771ca - [libc][docs] Add sys/resource header's implementation status (#122563)

via libc-commits libc-commits at lists.llvm.org
Tue Jan 14 08:44:49 PST 2025


Author: Prashanth
Date: 2025-01-14T08:44:46-08:00
New Revision: c2771ca284124861de76ba1853ac4f26e09b8497

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

LOG: [libc][docs] Add sys/resource header's implementation status (#122563)

### 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.

Added: 
    libc/utils/docgen/sys/resource.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 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