feat(libkernel): export pthread_attr_getstackaddr #3729
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3729"
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 Mouad-Scriptz-0 on 2026-10-11T16:07:08Z.
What
Exports the POSIX
pthread_attr_getstackaddr(DxmIMUQ-wXY) from libkernel, next topthread_attr_getstack. It returns the attribute'sstackAddressandEINVALfor a null or destroyed attribute or a null output, as FreeBSD libthr's_pthread_attr_getstackaddrdoes; a fresh attribute reports a null address.guest_pthread_attrcovers the address set bypthread_attr_setstack, the null default, both null arguments and a destroyed attribute.On
mainit is an absent import of 13 catalog titles (table in #3488); for XashPS5, ccleste, RommPS, ProsperoLight, vkQuake and PSBox Cloud Gaming the fourpthread_attr_*functions are the only absent imports left, so with #3165 they load with zero. Closes #3488.Tested
Fedora 44 (kernel 7.2.8, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON), commit1d2cb8c5onmain0f863c10:guest_pthread_attr3/3 (--repeat until-fail:3),ctest -j6 -E "^agc_driver_"534/534,tools/check_conventions.py --base origin/mainandgit diff --checkpass. This head is the same commit rebased ontomaina11c8f7f(clean); @blawesom verified that rebase on CachyOS / RADV with the full suite at 832/832 (comment). Import audit: catalog ZIPs checked against their sha256,eboot.binand modules unwrapped,relinker --registry,tools/import_audit.pyagainst.prxbuilt frommainand from the branch; the one import that disappears in every title isDxmIMUQ-wXY. The titles were not run. Not tested on Windows.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T16:08:32Z.
Progress report (
a11c8f7→df73629)📈 System libraries: 85.82% (+0.01%, +1 implemented functions)
✅ 1 implemented
pthread_attr_getstackaddr_nid_postfixImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T16:10:31Z.
Thanks for the PR. The change itself looks right: it matches FreeBSD libthr's
_pthread_attr_getstackaddr(EINVAL on a null/destroyed attribute or null output), the test fails without it, and the build and ctest pass here.Closing because #3494 (opened earlier today) already implements the same export,
pthread_attr_getstackaddr, in the same file with a test inGuestPthreadAttr.cpp, together withpthread_attr_getscope/setscope/getinheritsched. The CONTRIBUTING rule is that no open PR implements the same functions, and the overlap here is the whole PR, so it can't be trimmed down.Feel free to reopen if #3494 drops
pthread_attr_getstackaddror is closed; please review its version meanwhile, and the title evidence you collected in #3488 is useful there.Pull request closed