AnyPS5/core/libs/prx/libkernel/Socket/include
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
..
SocketError.hpp fix(libkernel): translate every host socket error to the guest errno of its name 2026-10-11 23:43:47 +02:00
SocketPoll.hpp feat(libkernel): implement select over libSceNet sockets 2026-10-07 20:47:03 -04:00
SocketRuntime.hpp fix(libkernel): route vector I/O on guest sockets 2026-10-11 01:16:58 +00:00
SocketSelectDeadline.hpp fix(libkernel): saturate oversized select timeouts 2026-10-11 09:16:59 +02:00