[libc-commits] [libc] [libc] Add missing `prctl` header def (PR #97527)

via libc-commits libc-commits at lists.llvm.org
Tue Jul 2 23:43:04 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Izaak Schroeder (izaakschroeder)

<details>
<summary>Changes</summary>

Does what it says on the box.

---
Full diff: https://github.com/llvm/llvm-project/pull/97527.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..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<

``````````

</details>


https://github.com/llvm/llvm-project/pull/97527


More information about the libc-commits mailing list