[libc-commits] [libc] [libc] add prctl func spec (PR #97971)
via libc-commits
libc-commits at lists.llvm.org
Sun Jul 7 12:49:59 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Schrodinger ZHU Yifan (SchrodingerZhu)
<details>
<summary>Changes</summary>
This is needed when building scudo on aarch64.
---
Full diff: https://github.com/llvm/llvm-project/pull/97971.diff
1 Files Affected:
- (modified) libc/spec/linux.td (+13-1)
``````````diff
diff --git a/libc/spec/linux.td b/libc/spec/linux.td
index 82630ff413c73..395c2a6fe853a 100644
--- a/libc/spec/linux.td
+++ b/libc/spec/linux.td
@@ -112,7 +112,19 @@ def Linux : StandardSpec<"Linux"> {
[], // Macros
[], // Types
[], // Enumerations
- [] // Functions
+ [
+ FunctionSpec<
+ "prctl",
+ RetValSpec<IntType>,
+ [
+ ArgSpec<IntType>,
+ ArgSpec<UnsignedLongType>,
+ ArgSpec<UnsignedLongType>,
+ ArgSpec<UnsignedLongType>,
+ ArgSpec<UnsignedLongType>,
+ ]
+ >,
+ ] // Functions
>;
HeaderSpec SysRandom = HeaderSpec<
``````````
</details>
https://github.com/llvm/llvm-project/pull/97971
More information about the libc-commits
mailing list