From c2771ca284124861de76ba1853ac4f26e09b8497 Mon Sep 17 00:00:00 2001 From: Prashanth Date: Tue, 14 Jan 2025 22:14:46 +0530 Subject: [PATCH] [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. --- 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 4fa621fb2a051..8548e88c73fa5 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 2295a8cc8853c..614fb6c703e5e 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 0000000000000..0b8ac21985326 --- /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