Skip to content

feat(libs): implement homebrew libc and kernel runtime exports - #683

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
nicolasabosch:feat/homebrew-runtime-exports
Oct 6, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
nicolasabosch:feat/homebrew-runtime-exports

Conversation

@nicolasabosch

@nicolasabosch nicolasabosch commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

What

Implement seven runtime imports required by native homebrew: access, fdopen, setbuf, lldiv, _Getmbcurmax, pipe, and sceKernelDebugOutText.

access resolves guest paths and reports guest errno; Windows checks the read-only attribute and the file ACL, including execute permission. fdopen wraps 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

Checklist

In-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.

@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Progress report (fe98276 → 7789c0a)

📈 System libraries: 81.64% (+0.04%, +7 implemented functions)

✅ 7 implemented
Library Name
libc _Getmbcurmax_nid_postfix
libc access_nid_postfix
libc fdopen_nid_postfix
libc lldiv_nid_postfix
libc setbuf_nid_postfix
libkernel pipe_nid_postfix
libkernel sceKernelDebugOutText

@nicolasabosch
nicolasabosch force-pushed the feat/homebrew-runtime-exports branch from 31b13b9 to 7789c0a Compare October 6, 2026 01:41
@oneandonlydean
oneandonlydean merged commit 0d21b1d into boykopovar:main Oct 6, 2026
3 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants