[libc-commits] [libc] [libc] Revise the definition of `{get, set}rlimit`. (PR #124701)
via libc-commits
libc-commits at lists.llvm.org
Mon Jan 27 21:45:58 PST 2025
https://github.com/c8ef created https://github.com/llvm/llvm-project/pull/124701
Closes #124633.
>From 07f007a9cbd3148051de05b45eaa9b0c43665a89 Mon Sep 17 00:00:00 2001
From: c8ef <c8ef at outlook.com>
Date: Tue, 28 Jan 2025 13:44:16 +0800
Subject: [PATCH] revise get/set rlimit def
---
libc/include/sys/resource.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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