libkernel: implement shm_unlink (PPSA99010 vkQuake); branch and PR #3250 ready #3251
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 pushkarreddyy on 2026-10-11T03:29:22Z.
Problem & Runtime Context
Titles using POSIX shared memory (such as
PPSA99010vkQuake and homebrew runtime ports) rely onshm_openpaired withshm_unlink(tPWsbOUGO8k). Whileshm_openwas added for anonymous objects,shm_unlinkis missing fromlibkernel.Ready Fix & Branch
A clean, self-contained fix conforming 100% to repository conventions (0 comments, atomic commit, unit tests in
GuestShmOpen, TechnicalDebt entry) is implemented and ready:pushkarreddyy:feat/libkernel-shm-unlink31c3d91dcImplementation Details
sys_shm_unlinkerror handling:pathreturns -1 and sets*__error_nid_postfix() = 14(EFAULT).path == anonymousObject(SHM_ANON) returns -1 and sets*__error_nid_postfix() = 22(EINVAL).*path == '\0'returns -1 and sets*__error_nid_postfix() = 2(ENOENT).NotImplemented_nid_no_patch("shm_unlink of a named object")matchingshm_open.GuestShmOpen.cpptest suite coveringnullptr,anonymousObject, empty string, and named object throws.docs/dev/TechnicalDebt.md.python tools/check_conventions.py --base origin/mainwith 0 errors.Opening this tracking issue while PR #3250 is intake-paused so maintainers can review, carry, or cherry-pick into an active merge train.
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T03:43:47Z.
cc @MarcZX100 @adriadam10: Branch
pushkarreddyy:feat/libkernel-shm-unlink(31c3d91dc) on PR #3250 is verified and ready for review/carry.sys_shm_unlinkerror codes (EFAULT14 on null,EINVAL22 onSHM_ANON,ENOENT2 on empty string) and throws on named objects matchingshm_open.check_conventions.pywith 0 errors and extendedGuestShmOpenunit tests passing.Imported from boykopovar/AnyPS5. Originally posted by orishamir on 2026-10-11T08:42:29Z.
The catalog build of vkQuake (PPSA99010 v1.0,
PPSA99010.zip, sha256aeabf175...as in the catalog record) does not importshm_unlink: after unwrappingeboot.binfrom its fake-SELF container, the NIDtPWsbOUGO8kappears nowhere among the 335NID#lib#modulesymbol strings of the executable or in the bundledlibc.prx, and the relink registry lists no such import. Its absent imports onmainccf9ff90(tools/import_audit.py, names fromtools/nid_names.py):0hlfW1O4Aa4localeconv(#3249)04AjkP0jO9U_umtx_op(#1482)oLjPqUKhzespthread_attr_getinheritsched,e2G+cdEkOmUpthread_attr_getscope,xesmlSI-KCIpthread_attr_setscope(#3165)DxmIMUQ-wXYpthread_attr_getstackaddr(#1912, closed on Oct 9 until a title stops there)It does import
shm_open(QuJYZ2KVGGQ), which the audit lists among its five throwing stubs withexecvp,fork,selectandsceSystemServiceLoadExec.The zip also carries no game data (
eboot.bin,sce_sys,sce_module,manifest.sha256only), so even past the imports it would need Quake's.pakfiles to get anywhere. A title that actually importstPWsbOUGO8kis needed as the evidence for this one.AI-assisted: yes (Claude Code Fable 5.1 xhigh)
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T06:17:08Z.
Closing:
shm_unlinkis on main since #3555 (File/src/SharedMemory.cpp:472). It is implemented on Linux, and on Windows a named object throws asshm_opendoes. Reopen with the title and the log line if a run stops in it.