Files
AnyPS5/core/libs/prx/libkernel/File
xXPBSXxandClaude Sonnet 5.5 00bb8aa409 fix(libkernel): fail lseek with EOVERFLOW when the new offset exceeds the 64-bit range
FreeBSD 11.4's vn_seek fails SEEK_CUR and SEEK_END with EOVERFLOW when the base offset plus a positive offset does not fit in an off_t, and with EINVAL only when the result is negative. The host lseek reports EINVAL for the overflow, so the guest saw EINVAL. When the host call fails with EINVAL for a positive offset on SEEK_CUR or SEEK_END, the base position is read back and the call fails with EOVERFLOW if the sum would overflow; the file position is left unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 20:56:02 +02:00
..