[libc-commits] [libc] 5a8fe9e - [libc] Revise the definition of `{get, set}rlimit`. (#124701)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 28 08:24:15 PST 2025
Author: c8ef
Date: 2025-01-29T00:24:11+08:00
New Revision: 5a8fe9e9a777094dba05bdaca8f2dd83af183a0f
URL: https://github.com/llvm/llvm-project/commit/5a8fe9e9a777094dba05bdaca8f2dd83af183a0f
DIFF: https://github.com/llvm/llvm-project/commit/5a8fe9e9a777094dba05bdaca8f2dd83af183a0f.diff
LOG: [libc] Revise the definition of `{get, set}rlimit`. (#124701)
Closes #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
Added:
Modified:
libc/include/sys/resource.yaml
Removed:
################################################################################
diff --git a/libc/include/sys/resource.yaml b/libc/include/sys/resource.yaml
index 3652d6d490a49b..e7645a3b4f0b3e 100644
--- a/libc/include/sys/resource.yaml
+++ b/libc/include/sys/resource.yaml
@@ -12,10 +12,12 @@ functions:
- POSIX
return_type: int
arguments:
+ - type: int
- type: struct rlimit *
- name: setrlimit
standards:
- POSIX
return_type: int
arguments:
- - type: const struct rlimit
+ - type: int
+ - type: const struct rlimit *
More information about the libc-commits
mailing list