mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
scePthreadMutexattrSetkind called NotImplemented_nid_no_patch for a kind outside 1 to 4. Firmware 13.42's libkernel, run in an emulator, makes it call pthread_mutexattr_setkind_np, which stores any kind as a signed 16-bit value and returns 0, and turns a null attribute's -1 with errno 22 into 0x8001FFFF. It now forwards to pthread_mutexattr_setkind_np and converts the result with sceKernelError, so a null attribute or object still returns 0x8001FFFF and now also sets errno 22. An out-of-range kind is refused by scePthreadMutexInit with 0x80020016, leaving the mutex untouched, as measured for the same module. scePthreadMutexattrGetkind is unchanged; kind 0 now reaches it and returns 0.