feat(libSceLibcInternal): implement atoll #1852
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1852"
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 kallmek3nny on 2026-10-08T22:03:09Z.
What
Adds the missing
atollexport tolibSceLibcInternal, delegating decimal conversion to the host C runtime. This covers one unresolved import reported for the EVO-PLAYER homebrew title in #1578; it does not resolve the other missing imports in that report.Tested
python tools/check_conventions.py --base origin/main(passed).git diff --check(passed).Checklist
main; no open PR implementsatollImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T22:03:33Z.
Progress report (
ae91d97→5d007ee)➖ System libraries: 84.76% (+0.0%, +1 implemented functions)
✅ 1 implemented
atoll_nid_postfixImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T22:21:02Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceLibcInternal/Export.cppL106core/libs/prx/libSceLibcInternal/Export.cppL106Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-09T03:01:25Z.
Review: COMMENTED
Verified on Linux — the half the body says was not run, plus a note on the host delegation.
cmake --build build --target libs→ clean.readelf -sW build/core/libs/libs/unpatched/libSceLibcInternal.prxlistsatoll_nid_postfixas aGLOBAL FUNCwith the change; rebuilding the same way with this file atmaingives 0. So the export is real and it lands in the module.long long atoll(const char*)returnslong long, which is 64 bits on Windows too, so handing the conversion to the host C runtime gives the guest the width it expects. That is worth one sentence in the body:atolnext door needed an explicitstrtollprecisely because the host'slongis 32 bits on Windows (#1868), and a reader who sees this one delegating to the host will ask why that one could not.For the merge bar: #1578 line 32 lists
atollamong the missinglibSceLibcInternalimports, so the "why" exists — quoting the title's unresolved-import line here would put it alongside the fix.Not verified: Windows; the runtime half — the export is proven present, not proven called.
Written with AI assistance.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T09:30:04Z.
Closing:
atollwas EVO-PLAYER's stop on Windows for v0.10.0 when #1578 was opened, but v0.11.0 stops elsewhere on main. Reopen when it's a title's next stop on main, with the log line.Pull request closed