AnyPS5/core/libs/prx/libkernel/File/src
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
..
DirectoryDescriptor.cpp fix(libkernel): report undersized Windows directory buffers 2026-10-01 23:24:41 +02:00
FileLock.cpp fix(libkernel): give flock BSD semantics on Windows 2026-10-10 06:49:20 +02:00
NativeStat.cpp fix(libkernel): keep stat working when a handle has no file identity 2026-10-10 11:08:10 +02:00
Open.cpp feat(libkernel): open /dev/random and /dev/urandom for reading 2026-10-10 09:12:55 +02:00
OpenFileLimit.cpp fix(libkernel): raise the open file soft limit on Linux 2026-10-08 17:38:48 +02:00
RandomDevice.cpp feat(libkernel): open /dev/random and /dev/urandom for reading 2026-10-10 09:12:55 +02:00
SharedMemory.cpp feat(libkernel): implement shm_open for anonymous objects 2026-10-09 22:05:57 -04:00
Stdio.cpp fix(libkernel): read random devices in the Windows sceKernelPread 2026-10-10 23:26:37 +13:00
Terminal.cpp feat(libkernel): implement tcgetattr and tcsetattr 2026-10-09 23:17:12 +02:00