feat(libSceLibcInternal): implement wide time_put::_Init #24899
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24899"
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 0x70776c on 2026-11-21T10:01:27Z.
What
Implement
std::time_put<wchar_t>::_Init(const std::_Locinfo&)(_ZNSt8time_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEE5_InitERKSt8_Locinfo, NIDZolDcuDSD0Q) inlibSceLibcInternal:selfandinfopointers viaRequireArgumentand install&g_timePutWideVtable.facetwithout touchingreferencesor bytes past the 0x10-byteGuestLocale::Facetheader.GuestLibcInternalTimeGetFieldstests to verify_Initinstalls the vtable, preserves guarded storage andreferences, and rejects nullselforinfo.Unverifieddebt entry viadocs/dev/debt/changes/feat-libcinternal-wide-time-put-init.md.Tested
python3 tools/debt_fold.py --checkpython3 tools/check_conventions.py --base origin/maincmake --build build --target libSceLibcInternal guest_libc_internal_time_get_fields_tests -j16ctest --test-dir build -R '^(guest_libc_internal_time_get_fields|public_headers)$' -V(2/2 passed)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 repositoryImported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-21T10:03:12Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
772aa4e036:tools/check_conventions.pyfailed.guest_libc_internal_time_get_fields_testsbuilt cleanly.guest_libc_internal_time_get_fields):Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T10:04:36Z.
Review: APPROVED
Reviewed — looks good
The change implements wide
time_put::_Initby validating both arguments and assigning only the facet vtable; the added tests cover reference preservation, guarded storage, and null arguments.What I ran
Reviewed head
772aa4e03685a2fc23533f1069f9db2687ce513busingrepo_read.py-backed review tools. No build or tests were run during this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Build and test results were not independently verified. Read all three changed files:
core/libs/prx/libSceLibcInternal/TimeGetFields.cpp,core/libs/tests/GuestLibcInternalTimeGetFields.cpp, anddocs/dev/debt/changes/feat-libcinternal-wide-time-put-init.md. No changed files were excluded.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-22T15:16:57Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
23e2685273:tools/check_conventions.pypassed.guest_libc_internal_time_get_fields_testsbuilt cleanly.guest_libc_internal_time_get_fields):core/libs/prx/libSceLibcInternal/TimeGetFields.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T15:36:59Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
23e2685273ef02bd45114f445328f56be8a18e45. Read the prepared description, commit summary, manifest and diff, plus the changed implementation and test ranges throughrepo_read.py. I did not run build or test commands.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The PR description's reported debt check, conventions check, build and CTest results were not run independently. I read the changed lines in
TimeGetFields.cppandGuestLibcInternalTimeGetFields.cpp; the three-line debt change is visible in the diff. I did not inspect the full changed files or verify other repository behavior. The prepared bundle reports these three files as included;files.jsonwas unavailable through the reader. The relevant implementation and test ranges were read at the pinned head.To get this to a good state
Nothing is required.