AnyPS5/core/libs
Scott Schuster 8bba489932 fix(libc): parse fopen and freopen modes as FreeBSD does
FreeBSD's __sflags reads the access character, then b, +, x, e and v, and
stops at the first other character without failing, so "rt" opens for
reading. On Windows fopen inserted b after the first character and passed
the rest on, so "rt" became "rbt", the CRT rejected it with EINVAL, and
fopen threw. vkQuake opens history.txt with "rt" at startup. freopen
accepted only a fixed list of modes.

Both now parse the mode like __sflags. An unknown access character, or x
on a read-only stream, returns NULL with EINVAL; x on an existing file
returns NULL with EEXIST; e and v are accepted and ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 00:48:13 -05:00
..
nid fix(nid): reject libraries that define symbol versions 2026-10-08 03:04:07 +00:00
prx fix(libc): parse fopen and freopen modes as FreeBSD does 2026-10-10 00:48:13 -05:00
tests fix(libc): parse fopen and freopen modes as FreeBSD does 2026-10-10 00:48:13 -05:00
CMakeLists.txt Merge pull request #1499 from yabanana/codex/macos-unwind-register-context 2026-10-10 03:04:54 +02:00
HitLog.hpp
…
SceShaders.hpp
…
SceTypes.hpp feat(libkernel): implement sceKernelGetModuleInfo 2026-10-09 19:39:49 -04:00