AnyPS5/core/libs/prx/libkernel/File
Dean Galvin 766370108d fix(libkernel): read random devices in the Windows sceKernelPread
The Windows sceKernelPread stopped going through pread when it learned to
return errors, and with it lost the random device read, so a pread on
/dev/urandom reached ReadFile on a handle that is not a disk and failed
with ESPIPE. Read random devices first, as the Linux path does.

A pread into a read-only guest mapping now returns EFAULT instead of
throwing, matching Linux and the AIO read beside it, so the Windows
guest memory test checks for that return.
2026-10-10 23:26:37 +13:00
..
include feat(libkernel): open /dev/random and /dev/urandom for reading 2026-10-10 09:12:55 +02:00
src fix(libkernel): read random devices in the Windows sceKernelPread 2026-10-10 23:26:37 +13:00