fix(libs): preserve errno in pthread_cond helpers and roll back AudioOut2 user outputs on fault #20960
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20960"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by gurtgg on 2026-11-15T18:43:48Z.
What
Preserve caller
errnoviaErrnoGuardandGuestCopyIn/GuestCopyOuthelpers inpthread_cond_timedwait,pthread_condattr_getclock, andpthread_condattr_getpshared(core/libs/prx/libkernel/Pthread/Posix/Cond.cpp), and snapshot/restorecontextAttributeswhenportAttributesfails to copy out insceAudioOut2UserGetSupportedAttributes(core/libs/prx/libSceAudioOut/src/AudioOut2User.cpp), with regression tests incore/libs/tests/GuestPthreadCond.cppandcore/libs/prx/libSceAudioOut/tests/AudioOut2DeviceState.cppplusdocs/dev/debt/changes/fix-pthread-cond-errno-and-audioout2-user-rollback.md.Tested
Not built or executed locally (CMake build toolchain is unavailable on this machine); static convention,
debt_foldconflict, and diff checks ran againstboykopovar/AnyPS5main, andcore/libs/tests/GuestPthreadCond.cpp,core/libs/prx/libSceAudioOut/tests/AudioOut2DeviceState.cppwere updated with regression assertions for CI verification.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)