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

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


https://github.com/Sh0g0-1758 created https://github.com/llvm/llvm-project/pull/85682

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

cc: @nickdesaulniers 

>From 687f0527a71fda983f678455868e8b4bd324789a Mon Sep 17 00:00:00 2001
From: Sh0g0-1758 <shouryagoel10000 at gmail.com>
Date: Tue, 19 Mar 2024 00:31:08 +0530
Subject: [PATCH] Added tablegen definitions

---
 libc/spec/posix.td | 5 +++++
 1 file changed, 5 insertions(+)

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



More information about the libc-commits mailing list