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

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Wed Jul 8 07:50:47 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:

Should this be an ErrorOr case to make the API cleaner?

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


More information about the libc-commits mailing list