[libc-commits] [libc] [libc] add prctl func spec (PR #97971)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Sun Jul 7 12:49:26 PDT 2024
https://github.com/SchrodingerZhu created https://github.com/llvm/llvm-project/pull/97971
This is needed when building scudo on aarch64.
>From f96ae62e29fce40a20a36116f3711ba482bddcf6 Mon Sep 17 00:00:00 2001
From: Schrodinger ZHU Yifan <i at zhuyi.fan>
Date: Sun, 7 Jul 2024 12:47:31 -0700
Subject: [PATCH] [libc] add prctl func spec
---
libc/spec/linux.td | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/libc/spec/linux.td b/libc/spec/linux.td
index 82630ff413c73d..395c2a6fe853a7 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<
More information about the libc-commits
mailing list