[libc-commits] [libc] 4a9dabe - [libc] add prctl func spec (#97971)
via libc-commits
libc-commits at lists.llvm.org
Sun Jul 7 21:01:37 PDT 2024
Author: Schrodinger ZHU Yifan
Date: 2024-07-07T21:01:33-07:00
New Revision: 4a9dabee73f79974c69a35af7668c7a7e52e2d7f
URL: https://github.com/llvm/llvm-project/commit/4a9dabee73f79974c69a35af7668c7a7e52e2d7f
DIFF: https://github.com/llvm/llvm-project/commit/4a9dabee73f79974c69a35af7668c7a7e52e2d7f.diff
LOG: [libc] add prctl func spec (#97971)
Added:
Modified:
libc/spec/linux.td
Removed:
################################################################################
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<
More information about the libc-commits
mailing list