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

via libc-commits libc-commits at lists.llvm.org
Mon Mar 18 15:48:52 PDT 2024


Author: Shourya Goel
Date: 2024-03-18T15:48:47-07:00
New Revision: 715a931864eff4021463d40b73ef4b1b63959f3f

URL: https://github.com/llvm/llvm-project/commit/715a931864eff4021463d40b73ef4b1b63959f3f
DIFF: https://github.com/llvm/llvm-project/commit/715a931864eff4021463d40b73ef4b1b63959f3f.diff

LOG: [libc] Added tablegen definition for fileno (#85682)

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

Added: 
    

Modified: 
    libc/spec/posix.td

Removed: 
    


################################################################################
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