feat(libSceLibcInternal): implement _CStrftime #27682
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27682"
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 nubsrofl on 2026-11-27T00:02:52Z.
What
Implement Dinkumware
_CStrftimeinlibSceLibcInternal. It was a parameterlessNotImplementedstub; it now takes the C-localestrftimearguments (destination,count,format,time) and forwards to libcstrftime_nid_postfix, matching the existing_CStrxfrm/_CWcsxfrmforwarding pattern. Addguest_libc_internal_cstrftimecoverage and a debt fragment for the unverified console gap.Tested
Linux x86-64, GCC 15, Release full build with
BUILD_TESTING=ONon currentmain(implementation authored against tip; branch rebased for fork push).ctest --test-dir build -R '^guest_libc_internal_cstrftime$'passed.guest_libc_internal_cstrftime_testspassed (formats, short buffer, zero count, null time rejection, null format parity with libc).python3 tools/check_conventions.py --base origin/mainpassed.python3 tools/debt_fold.py --checkpassed.python3 tools/pr_overlap.py --names _CStrftimereported no open PR implementing it (related open work is#27536for_Wcsftimeonly).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)Made with Cursor
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T00:18:46Z.
Review: COMMENTED
ac909dac-e0ed-4c4f-b717-7a71e74e67cfReviewing files that changed from the base of the PR and between 660b291fa10c09ee8e3e97b15282149cf60ccd0b and
256810931c.core/libs/prx/libSceLibcInternal/CMakeLists.txtcore/libs/prx/libSceLibcInternal/Export.cppcore/libs/prx/libSceLibcInternal/include/RuntimeInternals.hppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T00:19:42Z.
Review: APPROVED
Reviewed — looks good
The forwarding implementation matches the existing libc formatter interface and adds focused coverage; no verified blocking issues were found in the reviewed change.
What I ran
Reviewed head
256810931cf359f1dfc6310e29ad73b7933d1968by inspecting the prepared diff and changed files. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Tests reported in the PR description were not run during this review. Console behavior and comparison with
libSceLibcInternal.sprxremain unverified, as recorded in the debt fragment. The full text of all five changed files was read; no files were excluded by the review bundle.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-11-28T05:06:28Z.
Review: APPROVED
Checked head
256810931c. All on Windows 11 with WinLibs GCC 15.2 (Release), applied tomaina163d4b886together with #27930, #27929, #27926, #27925, #27924, #27923, #27922, #27901, #27828, #27771, #27755, #27748, #27765.tools/check_conventions.py --headandtools/debt_fold.py --checkpassed and the full build succeeded.guest_libc_internal_cstrftimepasses. In the full CPU suite (5,120 tests) the only failures are unrelated:windows_read_trap_unknownfails onmaintoo (fixed in #28028).frame_capture_minimize,jpeg_external_toolchainandguest_pthread_mutex_contentionare timeouts under load; they pass when run on their own.guest_audio_in_capturepasses 20/20 onmainand with #27922.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by GalaxyGamingFR on 2026-11-30T23:34:41Z.
Review: APPROVED
Verified on Linux (Ubuntu 26.04.1, GCC 15.2.0, Ninja, Release). I merged head
256810931cinto currentmaintogether with #27565, #27243 and #27682 (no conflicts between them).ninja core/libs/prx/libc/all core/libs/prx/libSceLibcInternal/all) built cleanly.guest_environment_binding_unloadskipped as on main. The full libSceLibcInternal set passed, 134/134.guest_libc_internal_cstrftimepassed. Reading the change,_CStrftimeforwards to the gueststrftime. I can't check the five-argument Dinkumware_Strftimevariants against firmware here, so I verified only the four-argument signature the PR declares.No problems found.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T09:52:35Z.
Review: COMMENTED
The GuestLibcInternalCStrftime fixture passed on Linux with the exact changed sources. The fixture covers formatting, the destination size contract and the locale path.
AI-assisted: yes.
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.