libkernel/libSceLibcInternal: functions, permission persistence and LoadExec handover needed by PS5 homebrew #3293
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3293"
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 OmarKasmi on 2026-10-11T05:52:04Z.
What
Three independent changes that make free PS5 homebrew titles boot through the relinker:
New library functions (
libkernel,libSceLibcInternal) — the pthread attribute/affinity/spinlock family,cond_reltimedwait_np,set_name_np,pause,truncate,sceKernelGetSystemSwVersion, the long-double math set,getopt_long+optarg/optind,memrchr,strsep,dirname,getc_unlocked/putc_unlocked,mbstowcs(UTF-8→32-bit wchar),malloc_usable_size,getprogname,tzname,__fpclassifyd. Nine still-unsupported NIDs (kqueue, kevent, sendfile, sigsetjmp, shm_unlink,_umtx_op, thesceKernelJittrio) become named throwing stubs inUnimplemented.cpp, following the existingsceKernelUnknownXXconvention.chmod permission persistence (
libkernel) — Windowsstatsynthesizes modes that never match whatchmodset, so titles that verify and repair installed permissions on every start (RetroArch PS5 repairs 13,854 files per boot as a PS5 pkg-install workaround) boot-loop forever. Requested bits are now remembered per path, served back fromstat/fstat(including \Device→drive conversion for descriptor queries), and persisted across processes.sceSystemServiceLoadExechandover (libSceSystemService, Windows) — every path except"exit"threw. Titles use it for first-run self-relaunch and to hand over to companion executables (RetroArch PS5 relaunches into its picker/EmulationStation frontends). The guest/app0/...path now maps to a relinked<stem>.exesibling, with argument forwarding and clean termination.Validation
Console-free, using only free homebrew releases (OmarKasmi/anyps5-hb, a bench that audits public homebrew against the built libraries):
Caveats
setitimerreports success without delivering signals; happy to switch it to a throwing stub if that fits the project's strictness betterpthread_attr_getscope/setscopeuse a side table rather than a field onPthreadAttrPrivate— happy to move it in-tree if preferredThe bench that generated the validation data is public and CI-driven, so the effect of each commit is reproducible without a console.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T05:52:16Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Pull request closed