Skip to content

Conversation

@izaakschroeder
Copy link
Contributor

Does what it says on the box.

@llvmbot llvmbot added the libc label Jul 3, 2024
@llvmbot
Copy link
Member

llvmbot commented Jul 3, 2024

@llvm/pr-subscribers-libc

Author: Izaak Schroeder (izaakschroeder)

Changes

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 --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<

@izaakschroeder
Copy link
Contributor Author

@izaakschroeder izaakschroeder mentioned this pull request Jul 3, 2024
39 tasks
@nickdesaulniers
Copy link
Member

Does this need to get converted to newhdrgen? Looks like a conflict is blocking merging this.

@michaelrj-google
Copy link
Contributor

Closing as superseded. prctl is now available through the header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants