AnyPS5/core/libs/prx/libkernel
Hussein Kadhim d694aac7b4 fix(libkernel): translate every host socket error to the guest errno of its name
NativeError listed 17 Winsock and 17 POSIX errors and turned every other
one into EIO. A second connect while the first is pending (WSAEALREADY,
EALREADY) and an option the host rejects (WSAENOPROTOOPT, ENOPROTOOPT)
reached the guest as EIO; on Linux a nonblocking connect (EINPROGRESS),
a send with no destination (EDESTADDRREQ), ENOTSOCK, EAFNOSUPPORT,
EOPNOTSUPP and others did too.

The translation moves to SocketError.hpp and covers the socket errors of
both hosts by name, with the FreeBSD 11 numbers. WSAESHUTDOWN stays EPIPE
as before. socketpair's own table is gone, as NativeError covers it.

(cherry picked from commit a889c98e6a59d62da289f2e6a77355d2b41a1bde)
2026-10-11 23:43:47 +02:00
..
Aio/src fix(libkernel): preserve EINVAL in AIO completions 2026-10-10 08:42:19 +02:00
AppMetadata fix(kernel): skip the download0 mount when param.json cannot be read 2026-10-08 16:07:18 +02:00
Apr Merge pull request #3683 from Zurisen/fix/amm-below-host-regions 2026-10-12 10:43:07 +13:00
DirectMemory fix(libkernel): keep stack protection inside the stack and never throw while restoring it 2026-10-11 02:28:03 -05:00
Equeue fix(libkernel): report a level-triggered equeue event once per wait 2026-10-11 11:28:34 +00:00
EventFlag/src feat(runtime): timed waits, sync primitive fixes, heap and RTC fixes, unattended-run switches 2026-09-26 19:00:39 -07:00
File Merge pull request #3578 from LeandroLP23/fix/libkernel-fsync-read-only-windows 2026-10-11 23:37:24 +02:00
Module perf(libkernel): read a loaded image's unwind tables once in sceKernelGetModuleInfoFromAddr 2026-10-11 19:07:37 +02:00
Pthread Merge pull request #3484 from AchrafReyani/feat/libkernel-pthread-mutexattr-gettype 2026-10-11 13:53:23 +02:00
Semaphore fix(libkernel): accept a zero count in sceKernelSignalSema 2026-10-10 16:12:43 +00:00
Socket fix(libkernel): translate every host socket error to the guest errno of its name 2026-10-11 23:43:47 +02:00
SyncOnAddress/src fix(libkernel): throw on a size-0 _umtx_op timeout that is not a valid timespec 2026-10-11 11:13:33 +02:00
System Merge pull request #3493 from AchrafReyani/feat/libkernel-ioctl 2026-10-11 23:35:53 +02:00
Time fix(libkernel): honor null clock_getres output 2026-10-11 15:51:43 +02:00
CMakeLists.txt fix(libkernel): translate every host socket error to the guest errno of its name 2026-10-11 23:43:47 +02:00
KernelErrors.hpp refactor(kernel): share SCE kernel error codes through KernelErrors.hpp 2026-09-27 13:32:28 +07:00
Unimplemented.cpp feat(libkernel): implement thread cancellation 2026-10-10 11:32:09 +02:00