Skip to content

Commit c2771ca

Browse files
authored
[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.
1 parent b74d3e1 commit c2771ca

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

libc/docs/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ if (SPHINX_FOUND)
5353
string
5454
strings
5555
sys/mman
56+
sys/resource
5657
threads
5758
uchar
5859
wchar

libc/docs/headers/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Implementation Status
2626
string
2727
strings
2828
sys/mman
29+
sys/resource
2930
threads
3031
time
3132
uchar

libc/utils/docgen/sys/resource.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
functions:
2+
getpriority:
3+
in-latest-posix: ''
4+
getrlimit:
5+
in-latest-posix: ''
6+
getrusage:
7+
in-latest-posix: ''
8+
setpriority:
9+
in-latest-posix: ''
10+
setrlimit:
11+
in-latest-posix: ''
12+
13+
macros:
14+
PRIO_PROCESS:
15+
in-latest-posix: ''
16+
PRIO_PGRP:
17+
in-latest-posix: ''
18+
PRIO_USER:
19+
in-latest-posix: ''
20+
RLIM_INFINITY:
21+
in-latest-posix: ''
22+
RLIM_SAVED_MAX:
23+
in-latest-posix: ''
24+
RLIM_SAVED_CUR:
25+
in-latest-posix: ''
26+
RLIMIT_CORE:
27+
in-latest-posix: ''
28+
RLIMIT_CPU:
29+
in-latest-posix: ''
30+
RLIMIT_DATA:
31+
in-latest-posix: ''
32+
RLIMIT_FSIZE:
33+
in-latest-posix: ''
34+
RLIMIT_NOFILE:
35+
in-latest-posix: ''
36+
RLIMIT_STACK:
37+
in-latest-posix: ''
38+
RLIMIT_AS:
39+
in-latest-posix: ''
40+
RUSAGE_SELF:
41+
in-latest-posix: ''
42+
RUSAGE_CHILDREN:
43+
in-latest-posix: ''

0 commit comments

Comments
 (0)