libkernel: pthread_attr_getstackaddr is an absent import of 13 catalog titles; fix branch ready #3488
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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-11T11:28:31Z.
libkernel does not export the POSIX
pthread_attr_getstackaddr(DxmIMUQ-wXY, named withtools/nid_names.pyagainst aerolib).scePthreadAttrGetstackaddrandpthread_attr_getstackare onmain, the POSIX single-value getter is not. An import audit of the homebrew catalog onmain0f863c10(Linux) lists it as an absent import of 13 titles, always next to the three attribute functions of #3165:mainFor the first six titles the four
pthread_attr_*functions are the only absent imports left: with the #3165 branch (getinheritsched,getscope,setscope) and this one they load with zero. @babyhuey's closing note on #1912 already namedpthread_attr_getstackaddras the stop that ccleste, RommPS and Quake3e reach right afterpthread_attr_getscope. #1912 bundled it with the scope and inheritsched functions and was closed before any title reached them; this branch carries only the one function that #3165 does not, so the two merge independently.Fix branch ready:
Mouad-Scriptz-0:feat/libkernel-pthread-attr-getstackaddr(1d2cb8c5, one commit onmain0f863c10). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is (#3433 carried mytruncatethis way). No open PR adds it (tools/pr_overlap.py --branchreports no overlap; the 127 open PRs were also checked by title).pthread_attr_getstackaddr_nid_postfix(attr, stack_addr)inPthread/Posix/Attr.cpp, next topthread_attr_getstack:EINVALfor a null or destroyed attribute or a null output, otherwise the attribute'sstackAddress, as FreeBSD libthr's_pthread_attr_getstackaddr(lib/libthr/thread/thr_attr.c) does. A fresh attribute reports a null address, as libthr's defaultstackaddr_attr.guest_pthread_attrgains: the address set bypthread_attr_setstackreads back, null output and null attribute return 22, a destroyed attribute returns 22, and a freshly initialised attribute reports null.Tested on Fedora 44 (kernel 7.2.8, GCC 16.2.1, Ninja, Release, full build with
BUILD_TESTING=ON, Intel Arc Meteor Lake iGPU):guest_pthread_attrpasses 3/3 (--repeat until-fail:3).ctest -j6 -E "^agc_driver_": 534/534.tools/check_conventions.py --base origin/mainandgit diff --checkpass.eboot.binand bundled modules unwrapped from their SELF containers,relinker --registry,tools/import_audit.pyagainst.prxfiles built frommain0f863c10and from the branch. In every title the one import that disappears isDxmIMUQ-wXY. The titles were not run. Not tested on Windows.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T13:08:33Z.
Independent verification on Linux (the gap noted in the report): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON.1d2cb8c59onto currentmain: applies cleanly, no conflicts.tools/check_conventions.py --base origin/mainandgit diff --checkpass.The rebased branch is available at
blawesom:verify/3488for anyone carrying — the commit is otherwise unchanged.Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-12T05:53:03Z.
Implementation note for housekeeping:
pthread_attr_getstackaddrlanded onmainvia #3494 (merged 2026-10-11).Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T06:17:19Z.
Closing: fixed by #3494 (
pthread_attr_getstackaddr,Pthread/Posix/Attr.cpp:86). Reopen if it is still unresolved on current main.