Skip to content

[libc] Added tablegen definition for fileno #85682

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
Mar 18, 2024

Conversation

Sh0g0-1758
Copy link
Member

This was missed in the previous PR. Updating tablegen definition with this PR.

cc: @nickdesaulniers

@llvmbot llvmbot added the libc label Mar 18, 2024
@llvmbot
Copy link
Member

llvmbot commented Mar 18, 2024

@llvm/pr-subscribers-libc

Author: Shourya Goel (Sh0g0-1758)

Changes

This was missed in the previous PR. Updating tablegen definition with this PR.

cc: @nickdesaulniers


Full diff: https://github.com/llvm/llvm-project/pull/85682.diff

1 Files Affected:

  • (modified) libc/spec/posix.td (+5)
diff --git a/libc/spec/posix.td b/libc/spec/posix.td
index 26f41b61dc0015..3b793ea90ffd32 100644
--- a/libc/spec/posix.td
+++ b/libc/spec/posix.td
@@ -1169,6 +1169,11 @@ def POSIX : StandardSpec<"POSIX"> {
               RetValSpec<IntType>,
               [ArgSpec<VoidType>]
           >,
+          FunctionSpec<
+            "fileno",
+            RetValSpec<IntType>,
+            [ArgSpec<FILEPtr>]
+          >,
       ]
   >;
 

@nickdesaulniers
Copy link
Member

will merge once presubmit finishes. Sorry I missed this in code review, too. Thanks for the patch!

@nickdesaulniers nickdesaulniers merged commit 715a931 into llvm:main Mar 18, 2024
chencha3 pushed a commit to chencha3/llvm-project that referenced this pull request Mar 23, 2024
This was missed in the previous PR. Updating tablegen definition with this PR.
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