[libc-commits] [libc] [libc] Implement freopen (PR #207837)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Fri Jul 24 07:28:07 PDT 2026


================
@@ -184,6 +184,19 @@ add_generic_entrypoint_object(
     libc.src.__support.File.platform_file
 )
 
+add_generic_entrypoint_object(
+  freopen
+  SRCS
+    freopen.cpp
+  HDRS
+    ../freopen.h
+  DEPENDS
+    libc.hdr.types.FILE
+    libc.src.errno.errno
+    libc.src.__support.File.file
+    libc.src.__support.File.platform_file
+)
----------------
kaladron wrote:

Oh, I'd missed that.  In which case our linter should probably prevent them for clarity. =)

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


More information about the libc-commits mailing list