Repository navigation
feat(libs): implement homebrew libc and kernel runtime exports - #683
Merged
oneandonlydean merged 1 commit intoOct 6, 2026
Merged
Conversation
This was referenced Oct 5, 2026
Progress report (fe98276 → 7789c0a)📈 System libraries: 81.64% (+0.04%, +7 implemented functions) ✅ 7 implemented
|
7 tasks done
nicolasabosch
force-pushed
the
feat/homebrew-runtime-exports
branch
from
October 6, 2026 01:41
31b13b9 to
7789c0a
Compare
9 tasks done
9 tasks done
9 tasks done
9 tasks done
adriadam10
added a commit
to nicolasabosch/AnyPS5
that referenced
this pull request
Oct 11, 2026
… third-party results Drops the stale pending-dependency note (boykopovar#553 boykopovar#683 boykopovar#684 boykopovar#685 are merged), adds the package source and the Linux, extended-gameplay, save/load and audio results reported in the thread, and replaces the cold-start note with the measured cause. The UCRT diagnostic note is removed: no report on current main. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Implement seven runtime imports required by native homebrew:
access,fdopen,setbuf,lldiv,_Getmbcurmax,pipe, andsceKernelDebugOutText.accessresolves guest paths and reports guest errno; Windows checks the read-only attribute and the file ACL, including execute permission.fdopenwraps an existing descriptor without reopening or truncating it and transfers ownership only on success. Pipes preserve binary data. Debug text is written literally rather than interpreted as a format string. The integer and buffering functions use the guest ABI and existing libc stream/locale conventions.Tested
Windows 11, bundled MinGW, Release, rebased on main
fe98276f: this branch builds and passesguest_access,guest_math,guest_standard_streams, andguest_filesystem(4/4).Regression cases include guest cwd/aliases, missing paths, invalid arguments, read-only files, denied execute ACLs, signed 64-bit division, descriptor ownership, embedded NUL/CRLF/0x1a pipe data, EOF, and literal debug text.
Integration with fix(relinker): bind Windows imports to their declared modules #684 (Windows import binding) and feat(agc): support version initialization and raw compute programs #685 (raw AGC compute): the original integration based on
af92452fbuilt and passed 290/290 CTest tests. DOOM Shareware homebrew PPSA99666 01.001.000 reached E1M1; movement and shooting were checked in a real window. This integration also used feat(userservice): implement foreground user, registered list, user colour and NP account id #553 (UserService); fix(relinker): allow function aliases with different sizes #614 is already on main. Original game files were unchanged.The rebase includes test(shader): keep the flat cache bits test within CI's time limit #677, the upstream fix for the Linux
agc_driver_flat_cache_bitstimeout. Updated Linux and Windows CI pass. No Linux gameplay or audible audio verification claimed. A separate pre-existing, excludedguest_locale_testsexecutable fails its locale exception checks even with its source restored; the new multibyte query is covered byguest_standard_streams.Updated integration on main
fe98276fwith the repaired feat(libs): implement homebrew libc and kernel runtime exports #683/fix(relinker): bind Windows imports to their declared modules #684/feat(agc): support version initialization and raw compute programs #685 and feat(userservice): implement foreground user, registered list, user colour and NP account id #553: full build plus the runtimelibstarget succeeded; all nine focused integration tests passed. DOOM Shareware reached E1M1 again with movement and shooting through AGC compute presentation. Profiling recorded 3,798 dispatch-cache hits in 3,800 dispatches with zero evictions. This is cache-use evidence, not an FPS benchmark. Cold shader compilation can still exceed the homebrew frame deadline and trigger its CPU scaler; a warm restart used AGC. The startup UCRT diagnostic remains. Updated Linux and Windows CI pass.Checklist
fe98276f; open PRs checked for the same functionsIn-game screenshots
Two E1M1 gameplay captures from the integrated DOOM Shareware homebrew run, showing the final integration build and movement/shooting. The integration dependencies and limits are described above.