feat(libSceLibcInternal): implement getprogname #3347
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3347"
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 overlordxrz-source on 2026-10-11T08:24:19Z.
What
getprogname(7Psx1DlAyE4) is now the first startup stop on Linux for two catalog titles, Yamagi Quake II (PPSA99007) and Emby5 (PPSA99515). Both import it fromlibSceLibcInternal. Before #3031 (merged 10-11), both titles stopped atpthread_set_name_np; the rig re-run below is on current mainb490b387. PSBox Cloud Gaming (PPSA99810) imports it fromlibSceLibcInternaltoo.#1595, #1869 and #2218 were closed because no title reached
getprognameon main. This PR has the title IDs and log lines that were asked for. The change takes the same approach as #2218 (MichalSy), credited here: it returns the__prognamethat libkernel already exports, so there is still a single name store, as in FreeBSD's getprogname. It does not toucherrno.Tested
guest_program_name(new, registered for Linux and Windows, with the WindowsPATHset likeguest_thread_atexit) checks that:__prognameand readseboot.bin;__prognameand changes to the storage behind it;errnois preserved.Export.cppwith stubbed runtime hooks (zig c++, aarch64): pass. Two mutants fail: a constant"eboot.bin"and anerrnowrite.-Wall -Wextra: no new warnings.tools/check_conventions.py --base origin/main: passed.b490b387, headless lavapipe):undefined symbol: 7Psx1DlAyE4; after, it gets pastgetprognameand later aborts with no unresolved import.undefined symbol: 7Psx1DlAyE4; after, its next stop is2VRU7xiqLO8(setcontext).guest_program_namepasses.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-11T08:24:41Z.
Progress report (
7b5214d→2806eb5)➖ System libraries: 85.54% (+0.0%, +1 implemented functions)
✅ 1 implemented
getprogname_nid_postfixImported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-11T08:29:30Z.
Windows check with two titles. Head
2806eb57together with #1482 (whose_umtx_opis the stop before this one) merged ontomainf60923bf, Windows 11 (26300), WinLibs GCC 15.2.0 r7, Release:main+ #1482FAIL: unresolved ELF import 7Psx1DlAyE4 from libSceLibcInternal.prxready GL=4.6, then stops at the first draw's shader (#2631)7Psx1DlAyE4line2VRU7xiqLO8(setcontext, no PR yet)Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:49:25Z.
Checked on current main:
guest_program_namebuilds and passes, it fails to link without theExport.cppchange, no other library exportsgetprogname, and the returned pointer is the same__prognamelibkernel exports (FreeBSDgetprognamebehaviour). Windows result from @LeandroLP23 covers the Windows side; merging.