fix(libc): export daemon #2842
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2842"
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 Get-fix on 2026-10-10T16:27:12Z.
What
VLC (PPSA85300) imports
daemon(Wn6I3wVATUE) and fails to load because no library exports it. It reaches this stop afterexecvp(#2827) anddup2(#2478). Forking into the background is not supported, sodaemonthrowsdaemon: forking into the background not implemented. VLC 3.0 calls it only when itsdaemonoption is set (libvlc.c), and the title starts libVLC with--ignore-configand without--daemon(player.cc). The newguest_daemontest checks the throw.Tested
Windows 11 (WinLibs GCC 15.2.0 r7), Release, full build with
BUILD_TESTING=ONonmain57f96fd2:guest_daemonpasses 5/5. With a silentreturn -1or a different message planted, it fails.tools/check_conventions.pyandtools/check_test_registration.pypass.main+ theexecvpbranch + #2478 it stops atFAIL: unresolved ELF import Wn6I3wVATUE from libSceLibcInternal.prx(daemon); with this change as well it stops atFAIL: unresolved ELF import 5G2ONUzRgjY from libSceLibcInternal.prx(memrchr, #1592, #1906 and #2277 closed).Not tested on Linux. The same branch and results are posted in #1578.
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-10T16:27:23Z.
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.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:27:32Z.
Progress report (
2a4e03c→520b9fa)📉 System libraries: 85.8% (-0.03%, +1 declared functions)
🆕 1 declared as stubs
daemon_nid_postfixImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T05:08:45Z.
Reopened. Conflict in
core/libs/prx/libc/CMakeLists.txt. Can you rebase?Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:23:55Z.
Rebased onto main (conflict with the neighbouring test block in
core/libs/prx/libc/CMakeLists.txt, kept both).Checked on Linux:
guest_daemonpasses; without the change it does not link (daemon_nid_postfixmissing). The thrown message matchesNotImplemented_nid_no_patch, and the TechnicalDebt line sits under "Functional". Merging once CI is green.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:44:25Z.
Rebased onto main again (conflict with the neighbouring
guest_memrchrtest block incore/libs/prx/libc/CMakeLists.txt, kept both).Re-checked on Linux:
guest_daemonpasses, as doguest_memrchrand the rest of the libc/libs scope. Merging once CI is green.