feat(libkernel): implement pthread_rwlockattr_init and pthread_rwlockattr_destroy #2973
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2973"
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 babyhuey on 2026-10-10T19:08:26Z.
What
Implements
pthread_rwlockattr_init(xFebsA4YsFI) andpthread_rwlockattr_destroyin libkernel as POSIX wrappers over the existingscePthreadRwlockattrInitandscePthreadRwlockattrDestroy, returning errno values throughtoPosixlike the otherpthread_rwlock*wrappers.OpenNOW PS5 (PPSA99082) stops at it on
main4a747c48, now thatcpuset_getaffinity(#2859) is in (catalog build,eboot.binandsce_module/libc.prxunwrapped as #2605 requires; tracked in #1578):main, Linux:app.elf: symbol lookup error: app.elf: undefined symbol: xFebsA4YsFIapp.elf: symbol lookup error: app.elf: undefined symbol: oxMp8uPqa+U(pthread_set_name_np, #1872)FAIL: unresolved ELF import oxMp8uPqa+U (pthread_set_name_np) from libkernel.prxTested
Linux (Ubuntu 24.04, GCC 13, Release) on
4a747c48:guest_pthread_rwlockpasses 5/5 (--repeat until-fail:5). The new case creates an attribute object, initialises a lock with it, checks that a reader is refused while a writer holds it, and destroys both.check_conventions.pypasses. Windows 11 (MinGW-w64 GCC 15.2 from WinLibs, Release):guest_pthread_rwlock5/5 and the OpenNOW line above, on the same commit stacked oncpuset_getaffinitybefore #2859 merged.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T19:23:25Z.
Progress report (
4a747c4→5a43c9b)📈 System libraries: 84.49% (+0.01%, +2 implemented functions)
✅ 2 implemented
pthread_rwlockattr_destroy_nid_postfixpthread_rwlockattr_init_nid_postfixImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T21:53:34Z.
Checked the build and
guest_pthread_rwlockon Linux; it passes with the change and fails to link without it. The wrappers follow the otherpthread_rwlock*ones and no other open PR touches these functions. Merging once CI is green.