mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-31 12:35:51 +00:00
Both call libkernel's pthread_mutex_init and pthread_mutexattr_init and return 0x80020000 | errno on error, as shadPS4 (ce74386) exports them as ORBIS(posix_pthread_mutex_init) and ORBIS(posix_pthread_mutexattr_init) and ChonkyStation4 (c101a23) maps them to its POSIX init functions. A mutex made without attributes is error-checking. FreeBSD 11.4's malloc-internal _pthread_mutex_init_calloc_cb makes a normal mutex instead; the gap is recorded in the libkernel_sys debt file. Co-Authored-By: Claude Opus 5.5 <[email protected]>