mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
sceKernelFsync returned the host fsync or _commit result, so a failure returned -1 instead of an SCE error code, and a guest socket descriptor reached the host call. fsync then set the guest errno from the host errno rather than from that result. Handle sockets and return SCE error codes as sceKernelFdatasync does (EINVAL for an open socket, EBADF for a closed one or an unknown descriptor), and have fsync take the errno from sceKernelFsync's result like the other POSIX wrappers. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ha6Tsy62AFUyp9a5Mf7vjA