[libc-commits] [libc] [libc] Add missing `prctl` header def (PR #97527)
Izaak Schroeder via libc-commits
libc-commits at lists.llvm.org
Tue Jul 2 23:42:36 PDT 2024
https://github.com/izaakschroeder created https://github.com/llvm/llvm-project/pull/97527
Does what it says on the box.
>From dd0bd2113f6d9095642533a221727b07c7df9589 Mon Sep 17 00:00:00 2001
From: Izaak Schroeder <izaak.schroeder at gmail.com>
Date: Tue, 2 Jul 2024 23:41:47 -0700
Subject: [PATCH] [libc] Add missing `prctl` header def
---
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 82630ff413c73..c7db4c4781c3f 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