[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


================
@@ -176,4 +183,103 @@ int get_fileno(File *f) {
   return lf->get_fd();
 }
 
+int reopenfile(File *f, const char *path, const char *mode) {
----------------
kaladron wrote:

I think this is probably something we should talk about across the project.  There's a bunch of places we hand back ints that could be easy to not check, etc.  

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


More information about the libc-commits mailing list