[libc-commits] [libc] [libc] Added tablegen definition for fileno (PR #85682)

via libc-commits libc-commits at lists.llvm.org
Mon Mar 18 12:03:40 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Shourya Goel (Sh0g0-1758)

<details>
<summary>Changes</summary>

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
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>]
+          >,
       ]
   >;
 

``````````

</details>


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


More information about the libc-commits mailing list