feat(libc): implement libc++ base streambuf seek defaults #28565
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28565"
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 mihai1859 on 2026-12-01T19:34:34Z.
What
Implements the base
std::__1::basic_streambuf<char>::seekoffandseekposvirtuals imported by the RetroArch Azahar core in #5927. Each reports an unsuccessful seek by returning the guest stream position with 128 zero state bytes and a signed 64-bit offset of -1. The calls leave the stream buffer intact. The guest layout and return behavior matchios.instantiations.cpp.ofrom PS5 Payload SDK v0.42.The overlap tool flagged 15 CMake comparisons because those branches conflict with main. I checked each PR diff and confirmed its source or test registrations are at different entries.
Tested
guest_libcxx_stream_positionpassed against the built libc. The same fixture passed against the SDK reference functions. It checks every state byte, the full offset, nonzero input state forseekpos, multiple seek modes and offsets, and preservation of the stream buffer.libc.prx, then ran the same Azahar startup diagnostic with the retained runtime libraries. Both target names resolved. The diagnostic reported 151 remaining names (129 functions and 22 data symbols). Adding back the two exports gives the 153-name estimate for the corresponding baseline.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T19:37:33Z.
Review: APPROVED
Reviewed — looks good
The reviewed change adds the two libc++ stream buffer seek defaults and their regression test; I found no blocking defect in the changed code.
What I ran
Reviewed head
e0aa7efb01a5d41b6ea16986b87d83df444301a4using the prepared diff andrepo_read.pyat the pinned head. No build or test was run.Results
Negative control
Not run; the regression test was not executed.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
The Windows test run, PR-reported packaging and Azahar startup diagnostic, and behavior on console firmware were not independently verified. All seven files listed under
reviewedinfiles.jsonwere read;files.jsonlists no excluded files.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T02:08:27Z.
Review: COMMENTED
The
GuestLibcxxStreamPositionfixture passed on Linux with GCC 14.2, linked directly against the two exports. Both calls also returned offset-1and all 128 state bytes zero with the receiver on an inaccessible page, confirming that the base seek methods do not access the stream object.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T07:34:52Z.
Review: APPROVED
I read the diff at
e0aa7efb01. Merged intomainat35e34b1a7f0together with other open PRs (so not an isolated build), Release, on Windows 11 (GCC 15.2) and Ubuntu 24.04 under WSL2 (GCC 13.3).guest_libcxx_stream_position: passes on both.guest_libcxx_*tests of that tree pass too (39 on Linux).maindoes not have.Not checked: a title.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T03:29:35Z.
Review: APPROVED
Reviewed — looks good
The reviewed change adds the two requested stream buffer seek defaults, and the inspected implementation and test registration support merging.
What I ran
Reviewed head
24c9a1ad1f0bdba0e96c4d6ef96b1160822bd66busingrepo_read.pyand the prepared diff. No tests or builds were run. The author reports Windows 11 x64 test and packaging results; I did not independently verify them.Results
Negative control
Not run; no source changes or tests were executed.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
The author-reported Windows test, SDK reference comparison, packaging, and Azahar startup diagnostic were not independently verified. No console behavior was checked. All files listed as reviewed in
files.jsonwere read;files.jsonlists no excluded files.To get this to a good state
Nothing is required.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.