Files
AnyPS5/docs/dev/debt
Ethan Barr 4f6a37d790 fix(libc): share delete access when freopen reopens a stream onto a file on Windows
On Windows, freopen reopened a stream through _wfreopen, which opens the file without FILE_SHARE_DELETE, so remove or rename of the file failed while the stream was open, unlike fopen streams and POSIX unlink/rename of an open file. freopen now closes the previous stream and opens the new file through the same CreateFileW path fopen uses, so the reopened stream shares delete access. Host standard streams and an empty filename keep the _wfreopen path. Reference: FreeBSD 11 unlink(2) and rename(2) succeed on a file that is open.
2026-10-20 17:07:21 -04:00
..
2026-10-20 17:58:28 +13:00
2026-10-20 17:58:28 +13:00
2026-10-20 17:58:00 +13:00
2026-10-20 17:58:28 +13:00
2026-10-20 17:58:28 +13:00
2026-10-20 17:58:28 +13:00
2026-10-20 16:54:12 +13:00
2026-10-20 17:57:59 +13:00
2026-10-21 06:33:59 +13:00