Skip to content

Commit 5a8fe9e

Browse files
authored
[libc] Revise the definition of {get, set}rlimit. (llvm#124701)
Closes llvm#124633. Some parameter types in the definition of `{get, set}rlimit` currently do not match the standard. This patch resolves the issue. ref: https://man7.org/linux/man-pages/man2/getrlimit.2.html
1 parent a8c82d5 commit 5a8fe9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libc/include/sys/resource.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ functions:
1212
- POSIX
1313
return_type: int
1414
arguments:
15+
- type: int
1516
- type: struct rlimit *
1617
- name: setrlimit
1718
standards:
1819
- POSIX
1920
return_type: int
2021
arguments:
21-
- type: const struct rlimit
22+
- type: int
23+
- type: const struct rlimit *

0 commit comments

Comments
 (0)