Skip to content

[libc] add prctl func spec #97971

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

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

SchrodingerZhu
Copy link
Contributor

This is needed when building scudo on aarch64.

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

llvmbot commented Jul 7, 2024

@llvm/pr-subscribers-libc

Author: Schrodinger ZHU Yifan (SchrodingerZhu)

Changes

This is needed when building scudo on aarch64.


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

@SchrodingerZhu SchrodingerZhu requested a review from lntue July 7, 2024 19:55
@SchrodingerZhu SchrodingerZhu merged commit 4a9dabe into llvm:main Jul 8, 2024
8 checks passed
@SchrodingerZhu SchrodingerZhu deleted the libc/add-prctl-spec branch July 8, 2024 04:01
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.

3 participants