Skip to content

[libc] Add missing prctl header def #97527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

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