Commit Graph
2 Commits
Author SHA1 Message Date
xXPBSXxandClaude Sonnet 5.5 c771063042 test(libkernel): check the closed-descriptor EBADF of fstatfs on Windows too
guest_fstatfs and guest_fstat_fault skipped the "closed descriptor fails
with EBADF" checks on Windows (#ifndef _WIN32). Both pass there, so the
guards are removed and the checks run on every host.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-20 22:53:20 +02:00
milescovielloandClaude Opus 5.5 be17961e32 fix(libkernel): return EFAULT from fstat for a null stat buffer
FreeBSD's fstat looks the descriptor up before it copies the result
out, so a bad descriptor still fails with EBADF and an open one fails
with EFAULT when sb is null. fstat and sceKernelFstat threw
std::invalid_argument instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-17 06:19:41 +00:00