Repository navigation
fix(libc): export daemon - #2842
Conversation
|
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. |
|
Reopened. Conflict in |
3d0f4af to
00b2605
Compare
|
Rebased onto main (conflict with the neighbouring test block in Checked on Linux: |
VLC (PPSA85300) imports daemon (Wn6I3wVATUE) and fails to load because no library exports it. Forking into the background is not supported, so it throws if called. VLC 3.0 calls daemon only when its daemon option is set, and the title starts libVLC with --ignore-config and without --daemon.
|
Rebased onto main again (conflict with the neighbouring Re-checked on Linux: |
00b2605 to
520b9fa
Compare
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=ONonmain57f96fd:guest_daemonpasses 5/5. With a silentreturn -1or a different message planted, it fails.tools/check_conventions.pyandtools/check_test_registration.pypass.main+ theexecvpbranch + feat(libkernel): implement dup and dup2 #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, feat(libc): implement memrchr #1592, feat(libSceLibcInternal): implement memrchr #1906 and feat(libc): add BSD string and memory helpers #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