[libc-commits] [libc] [libc] Implement freopen (PR #207837)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Tue Aug 18 10:10:39 PDT 2026
================
@@ -344,6 +344,18 @@ class File {
// OpenMode, ContentType and CreateType.
static ModeFlags mode_flags(const char *mode);
+ void reset_stream_state(ModeFlags new_mode) {
----------------
michaelrj-google wrote:
I tried that before and ran into the issue that `reopenfile_unlocked` was just an unrelated method. I've moved `reopen_unlocked` into `LinuxFile` and that solved the issue.
https://github.com/llvm/llvm-project/pull/207837
More information about the libc-commits
mailing list