feat(libSceLibcInternal): implement time-get date-order metadata #19609
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19609"
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 fogydes on 2026-11-13T15:50:55Z.
What
Implement the two unversioned time_get/time_get<wchar_t> do_date_order exports that previously threw. Both return the caller facet's stored 32-bit date-order field at offset 0x28 unchanged. They do not read another field or vtable, construct a locale/facet, or substitute a fixed order. Existing public date_order wrappers retain their own dispatch.
Clean-room source: readable libc.prx, SDK 10.00, char getter at 0x99310 and wchar getter at 0xaaa20. SDK target/include/xloctime:18-20 defines dateorder, :218-221 returns _Dateorder, and :643 declares the field. Both exact names match the pinned NIDs 8PIh8BFpNYQ and dP14OHWe4nI. No reference binaries/extracts are attached or linked; no console measurement is claimed.
Unusable or overflowing facet addresses throw as documented host-safety behavior. Normal calls preserve memory and errno. Console/later-version equivalence and full facet construction remain unverified.
Measured coverage: 424 -> 426 implemented, 706 -> 704 TODO, 1,130 total. The two NIDs already had throwing aliases, so selected presence remains 0 missing / 2 provided / 0 unknown.
Rebased onto main
cacaa4a5ecbon 2026-11-14, preserving the merged CodecvtUtfMetadata umbrella declaration. Getter and test implementation bytes are unchanged. The refreshed full-runtime build and both focused Windows CTests passed again; public headers 413 libraries / 34,550 exports and current conventions passed.Original measurement baseline: main snapshot
228330220b. Required pr_overlap.py inspected 1,526 open heads / 24 candidates and exited 2 against later maina9ef084484. All nine reported heads were manually checked: no competing getter implementation or behavioral dependency. #13782/#19434/#19593 insert independent FloatWords/Forwards/CodecvtUtfMetadata umbrella headers; preserve both headers when merging. Six stale whole-branch comparisons remain unverified. Guest-copy/type providers are unchanged across main drift; incidental heap/math/run-report/socket changes are not called by these getters.Tested
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)The refreshed overlap scan inspected 1,565 open PRs and again exited 2 on stale comparisons. All nine listed heads were checked; no competing getter implementation. The listed #19609 is this same PR's pre-rebase head; #19602 contains an independent mutex/header addition. The remaining heads change other functions and still need their own rebases.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-13T17:36:35Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
4aa12e5210:tools/check_conventions.pypassed;git diff --checkclean.guest_time_get_order_testsbuilt cleanly.guest_time_get_order):Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T08:54:35Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
e8f55eb969:tools/check_conventions.pypassed;git diff --checkclean.guest_time_get_order_testsbuilt cleanly.guest_time_get_order):Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T19:54:55Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
e8f55eb969:tools/check_conventions.pypassed.guest_time_get_order_testsbuilt cleanly.guest_time_get_order):core/libs/prx/libSceLibcInternal/Export.cpp,core/libs/prx/libSceLibcInternal/libSceLibcInternal.hppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me