feat(libSceLibcInternal): construct time_get and time_put facets #22528

Merged
MarrasFederico merged 1 commit from upstream-pr/22528 into main 2026-11-20 22:31:49 +00:00
MarrasFederico commented 2026-11-17 19:01:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarrasFederico on 2026-11-17T19:01:36Z.


What

Implements nine libSceLibcInternal time-facet exports using the existing guest layouts and C-locale data:

  • time_get<wchar_t>: _Getcat (e5jQyuEE+9U), complete/base constructors taking refs (J2xO4cttypo, p-SW25yE-Q8) or _Locinfo (y0hzUSFrkng, bU3S1OS1sc0), and deleting destructor (8H3yBUytv-0). Construction fills the existing 0x30-byte facet; _Getcat returns category 5, creates a facet only when requested, and releases its allocation if construction throws.
  • time_put<char>: refs constructor (6htjEH2Gi-w), _Init (QdPT7uDTlo0) and deleting destructor (WQQlL0n2SpU). _Init copies the existing TimeInfo representation without changing the facet header; deleting destructors release the guest allocation.

The three proposed new time_put<wchar_t> constructors (oi3kpQPqpMY, b1LciG4lUUk, lOF5jrFNZUA) remain throwing stubs. Microsoft STL constructors call _Init; writing only a header would incorrectly report completed construction. The _Tnames layout beyond +0x10 is not proved, so time_put<wchar_t>::_Init (ZolDcuDSD0Q) also remains throwing. The preexisting wide refs constructor is unchanged.

The source reference is Microsoft STL xloctime time_get and time_put, mapped to the existing GuestLocale::Facet and TimeGetFields.cpp guest layouts. Console behavior remains unverified and the C-locale restriction is recorded in the debt fragment.

The current commit is based on main at 0ad217899d0d6a917abb551149e7f15b471fd32d and includes the parsing changes from #22526 through that base.

Tested

The author’s historical Linux run at a324ee95b4d22f45bb4e74b8844e95bfee7fc1cf used x86-64, GCC 15.2.0, Release/Ninja. Console verification is outstanding.

  • Serial builds with nice -n 19 cmake --build ../build --parallel 7 --target <target> for guest_libc_internal_time_get_fields_tests and guest_libc_internal_time_get_tests.
  • ctest --test-dir ../build --output-on-failure -R '^guest_libc_internal_time_get': 2/2 passed after the corrections. Tests check constructor fields, full-width refs, guarded storage boundaries, allocation/deallocation, exception-safe _Getcat, preservation of _Init's header, direct and dynamic exported-symbol calls, and the excluded wide constructors/initializer still throwing.
  • Negative control on the corrected source: _Getcat returning 4 instead of 5 fails the new test; exact source restoration, recompilation and the positive test pass.
  • Conventions, public-header audit (413 libraries, 34714 exports), debt folding, and git diff --check pass.
  • Name overlap scan across all open PRs found only #17300's rename-only throwing aliases. The branch overlap tool leaves comparisons with already-conflicting PRs unresolved; their full shared-file diffs were reviewed manually. #13778, #14834 and #18135 cover other functions. #21894, #22370 and #22428 are independent; #21895 is merged.
  • #22462 adds guest-pointer safety and overlaps in test scaffolding. Its preexisting wide refs constructor change is preserved by leaving that constructor unchanged here. This branch does not include #22462. The shared source and test changes from #22526 are now on main, including dynamic export loading in the test harness.

Checked on November 18, 2026: head 2711ac42bafbbd4cf48a9bf228fb2ae54b596ff9 has a clean merge with main at 02650d94a5f171dc333d13fc5abed43faf440a1a and passes git diff --check. An independent Windows 11 VM test report records 3/3 runs of each time-get test at f0c7d81edd1204efba23485e463fbf577321737c. The current head includes further test coverage that checks _Getcat preserves the existing facet pointer and leaves its ownership untouched.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5363145330 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22528). Originally posted by [MarrasFederico](https://github.com/MarrasFederico) on 2026-11-17T19:01:36Z. --- ### What Implements nine libSceLibcInternal time-facet exports using the existing guest layouts and C-locale data: - `time_get<wchar_t>`: `_Getcat` (`e5jQyuEE+9U`), complete/base constructors taking refs (`J2xO4cttypo`, `p-SW25yE-Q8`) or `_Locinfo` (`y0hzUSFrkng`, `bU3S1OS1sc0`), and deleting destructor (`8H3yBUytv-0`). Construction fills the existing 0x30-byte facet; `_Getcat` returns category 5, creates a facet only when requested, and releases its allocation if construction throws. - `time_put<char>`: refs constructor (`6htjEH2Gi-w`), `_Init` (`QdPT7uDTlo0`) and deleting destructor (`WQQlL0n2SpU`). `_Init` copies the existing `TimeInfo` representation without changing the facet header; deleting destructors release the guest allocation. The three proposed new `time_put<wchar_t>` constructors (`oi3kpQPqpMY`, `b1LciG4lUUk`, `lOF5jrFNZUA`) remain throwing stubs. Microsoft STL constructors call `_Init`; writing only a header would incorrectly report completed construction. The `_Tnames` layout beyond +0x10 is not proved, so `time_put<wchar_t>::_Init` (`ZolDcuDSD0Q`) also remains throwing. The preexisting wide refs constructor is unchanged. The source reference is Microsoft STL [xloctime time_get](https://github.com/microsoft/STL/blob/770da5aa457af11f0a796600e1aa6f7f6fce14a6/stl/inc/xloctime#L207-L235) and [time_put](https://github.com/microsoft/STL/blob/770da5aa457af11f0a796600e1aa6f7f6fce14a6/stl/inc/xloctime#L859-L887), mapped to the existing `GuestLocale::Facet` and `TimeGetFields.cpp` guest layouts. Console behavior remains unverified and the C-locale restriction is recorded in the debt fragment. The current commit is based on `main` at `0ad217899d0d6a917abb551149e7f15b471fd32d` and includes the parsing changes from #22526 through that base. ### Tested The author’s historical Linux run at `a324ee95b4d22f45bb4e74b8844e95bfee7fc1cf` used x86-64, GCC 15.2.0, Release/Ninja. Console verification is outstanding. - Serial builds with `nice -n 19 cmake --build ../build --parallel 7 --target <target>` for `guest_libc_internal_time_get_fields_tests` and `guest_libc_internal_time_get_tests`. - `ctest --test-dir ../build --output-on-failure -R '^guest_libc_internal_time_get'`: 2/2 passed after the corrections. Tests check constructor fields, full-width refs, guarded storage boundaries, allocation/deallocation, exception-safe `_Getcat`, preservation of `_Init`'s header, direct and dynamic exported-symbol calls, and the excluded wide constructors/initializer still throwing. - Negative control on the corrected source: `_Getcat` returning 4 instead of 5 fails the new test; exact source restoration, recompilation and the positive test pass. - Conventions, public-header audit (413 libraries, 34714 exports), debt folding, and `git diff --check` pass. - Name overlap scan across all open PRs found only #17300's rename-only throwing aliases. The branch overlap tool leaves comparisons with already-conflicting PRs unresolved; their full shared-file diffs were reviewed manually. #13778, #14834 and #18135 cover other functions. #21894, #22370 and #22428 are independent; #21895 is merged. - #22462 adds guest-pointer safety and overlaps in test scaffolding. Its preexisting wide refs constructor change is preserved by leaving that constructor unchanged here. This branch does not include #22462. The shared source and test changes from #22526 are now on `main`, including dynamic export loading in the test harness. Checked on November 18, 2026: head `2711ac42bafbbd4cf48a9bf228fb2ae54b596ff9` has a clean merge with `main` at `02650d94a5f171dc333d13fc5abed43faf440a1a` and passes `git diff --check`. An independent [Windows 11 VM test report](https://github.com/boykopovar/AnyPS5/pull/22528#issuecomment-6965398851) records 3/3 runs of each time-get test at `f0c7d81edd1204efba23485e463fbf577321737c`. The current head includes further test coverage that checks `_Getcat` preserves the existing facet pointer and leaves its ownership untouched. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
PrivacyOnion commented 2026-11-17 19:04:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-17T19:04:12Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against a324ee95b4:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_libc_internal_time_get_fields_tests built cleanly.
  • CTest (guest_libc_internal_time_get_fields):
    1/1 Test #4244: guest_libc_internal_time_get_fields ...   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceLibcInternal/InventoryExports.cpp, core/libs/prx/libSceLibcInternal/TimeGetFields.cpp, core/libs/prx/libSceLibcInternal/include/InventoryExports.hpp, core/libs/prx/libSceLibcInternal/include/TimeGetFields.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Checked TimeGetFields.cpp:MakeFacetHeader to ensure 64-bit reference counter unpacking preserves low and high 32-bit components accurately for GuestLocale::Facet.
    • Verified wide time_get constructors (C1/C2 from refs and Locinfo) properly check for null self/info pointers via RequireArgument and initialize the 0x30 byte layout.
    • Verified time_get<wchar_t>::_Getcat correctly returns category mask 5, checks locale nullness, safely manages temporary memory allocation with FacetGuard, and does not leak on construction exceptions.
    • Verified deleting destructors D0 for time_get<wchar_t> and time_put delegate to their respective deallocators, and that time_put::_Init correctly populates time names without mutating the facet header.
    • Inspected docs/dev/debt/changes/feat-libcinternal-time-facet-ctors.md and confirmed proper removal of implemented NIDs and debt documentation matching AGENTS.md rules.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5944783775 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22528#pullrequestreview-5944783775). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-17T19:04:12Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `a324ee95b4`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `guest_libc_internal_time_get_fields_tests` built cleanly. - **CTest** (`guest_libc_internal_time_get_fields`): ``` 1/1 Test #4244: guest_libc_internal_time_get_fields ... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceLibcInternal/InventoryExports.cpp`, `core/libs/prx/libSceLibcInternal/TimeGetFields.cpp`, `core/libs/prx/libSceLibcInternal/include/InventoryExports.hpp`, `core/libs/prx/libSceLibcInternal/include/TimeGetFields.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Checked TimeGetFields.cpp:MakeFacetHeader to ensure 64-bit reference counter unpacking preserves low and high 32-bit components accurately for GuestLocale::Facet. - Verified wide time_get constructors (C1/C2 from refs and Locinfo) properly check for null self/info pointers via RequireArgument and initialize the 0x30 byte layout. - Verified time_get<wchar_t>::_Getcat correctly returns category mask 5, checks locale nullness, safely manages temporary memory allocation with FacetGuard, and does not leak on construction exceptions. - Verified deleting destructors D0 for time_get<wchar_t> and time_put<char> delegate to their respective deallocators, and that time_put<char>::_Init correctly populates time names without mutating the facet header. - Inspected docs/dev/debt/changes/feat-libcinternal-time-facet-ctors.md and confirmed proper removal of implemented NIDs and debt documentation matching AGENTS.md rules. Looks Good To Me
MarcZX10 commented 2026-11-17 19:19:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T19:19:55Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

  • Head: a324ee95b4d22f45bb4e74b8844e95bfee7fc1cf. I did not build or run tests, and I did not check the merge against main.
  • I read the description, the commit list, the manifest and the full diff (513 lines), then checked head code with the reader.
python3 repo_read.py search TimeFieldsDelete
python3 repo_read.py search Inventory_186_nid
python3 repo_read.py search Inventory_192_nid
python3 repo_read.py search J2xO4cttypo
python3 repo_read.py search EEEC2EPKcm_nid_postfix
python3 repo_read.py cat core/libs/prx/libSceLibcInternal/TimeGetFields.cpp 425 450

Results

Check Result Note
Diff read passed 8 files, 513 lines
Removed stubs still referenced passed none at head; control name found
Helpers used by new code passed defined in TimeGetFields.cpp
Build and ctest not run author reports 2/2 on Linux
Export mapping to NIDs not verified see Not verified

Findings

Blocking

None.

Non-blocking

  • core/libs/prx/libSceLibcInternal/TimeGetFields.cpp:531 — ConstructWideTimeGetFromLocinfo checks that info is not null and then never reads it. The two _Locinfo constructors therefore accept any locale and return C-locale data without an error. ConstructWideTimeGetFacet at line 527 rejects a non-C name through ScopedClassicLocinfo, so the two paths behave differently. The debt fragment says the facets "use C-locale data" but does not say that a non-C _Locinfo is accepted silently. Smallest fix: throw for a non-C locale if LocinfoStorage exposes the name, or state in the fragment that these constructors ignore the locale. No test covers a non-C _Locinfo.

Sources

Not verified

  • Build, ctest, the negative control, Windows and console behaviour were not run. The 2/2 result and the negative control are the author's report, not mine.
  • I read the diff hunks of the eight changed files, not their full text. files.json was not read.
  • How the new mangled functions are exported under their NIDs. The new definitions have no APS5_EXPORT line, and neither does the existing wide constructor at TimeGetFields.cpp:550. I did not trace the export generation, and the author's public-header audit was not re-run.
  • The test's dlopen and LoadLibraryA path assumes libSceLibcInternal is a loadable shared module. I did not check the CMake target type.
  • The git merge-tree check against main claimed in the description.

To get this to a good state

Nothing is required.

Optional: decide how the _Locinfo constructors should treat a non-C locale (see the finding above) and record the choice in the debt fragment.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5945028320 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22528#pullrequestreview-5945028320). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-17T19:19:55Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. ## What I ran - Head: `a324ee95b4d22f45bb4e74b8844e95bfee7fc1cf`. I did not build or run tests, and I did not check the merge against `main`. - I read the description, the commit list, the manifest and the full diff (513 lines), then checked head code with the reader. ``` python3 repo_read.py search TimeFieldsDelete python3 repo_read.py search Inventory_186_nid python3 repo_read.py search Inventory_192_nid python3 repo_read.py search J2xO4cttypo python3 repo_read.py search EEEC2EPKcm_nid_postfix python3 repo_read.py cat core/libs/prx/libSceLibcInternal/TimeGetFields.cpp 425 450 ``` ## Results | Check | Result | Note | |---|---|---| | Diff read | passed | 8 files, 513 lines | | Removed stubs still referenced | passed | none at head; control name found | | Helpers used by new code | passed | defined in TimeGetFields.cpp | | Build and ctest | not run | author reports 2/2 on Linux | | Export mapping to NIDs | not verified | see Not verified | ## Findings **Blocking** None. **Non-blocking** - `core/libs/prx/libSceLibcInternal/TimeGetFields.cpp:531` — `ConstructWideTimeGetFromLocinfo` checks that `info` is not null and then never reads it. The two `_Locinfo` constructors therefore accept any locale and return C-locale data without an error. `ConstructWideTimeGetFacet` at line 527 rejects a non-C name through `ScopedClassicLocinfo`, so the two paths behave differently. The debt fragment says the facets "use C-locale data" but does not say that a non-C `_Locinfo` is accepted silently. Smallest fix: throw for a non-C locale if `LocinfoStorage` exposes the name, or state in the fragment that these constructors ignore the locale. No test covers a non-C `_Locinfo`. ## Sources - Locinfo constructors: https://github.com/boykopovar/AnyPS5/blob/a324ee95b4d22f45bb4e74b8844e95bfee7fc1cf/core/libs/prx/libSceLibcInternal/TimeGetFields.cpp#L531-L533 - Locale check in `_Getcat` path: https://github.com/boykopovar/AnyPS5/blob/a324ee95b4d22f45bb4e74b8844e95bfee7fc1cf/core/libs/prx/libSceLibcInternal/TimeGetFields.cpp#L527 - Debt fragment: https://github.com/boykopovar/AnyPS5/blob/a324ee95b4d22f45bb4e74b8844e95bfee7fc1cf/docs/dev/debt/changes/feat-libcinternal-time-facet-ctors.md#L12 ## Not verified - Build, `ctest`, the negative control, Windows and console behaviour were not run. The 2/2 result and the negative control are the author's report, not mine. - I read the diff hunks of the eight changed files, not their full text. `files.json` was not read. - How the new mangled functions are exported under their NIDs. The new definitions have no `APS5_EXPORT` line, and neither does the existing wide constructor at `TimeGetFields.cpp:550`. I did not trace the export generation, and the author's public-header audit was not re-run. - The test's `dlopen` and `LoadLibraryA` path assumes libSceLibcInternal is a loadable shared module. I did not check the CMake target type. - The `git merge-tree` check against `main` claimed in the description. ## To get this to a good state Nothing is required. Optional: decide how the `_Locinfo` constructors should treat a non-C locale (see the finding above) and record the choice in the debt fragment.
PrivacyOnion commented 2026-11-17 19:43:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-17T19:43:16Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against f0c7d81edd:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_libc_internal_time_get_fields_tests built cleanly.
  • CTest (guest_libc_internal_time_get_fields):
    1/1 Test #4245: guest_libc_internal_time_get_fields ...   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceLibcInternal/InventoryExports.cpp, core/libs/prx/libSceLibcInternal/TimeGetFields.cpp, core/libs/prx/libSceLibcInternal/include/InventoryExports.hpp, core/libs/prx/libSceLibcInternal/include/TimeGetFields.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified MakeFacetHeader unpacking in core/libs/prx/libSceLibcInternal/TimeGetFields.cpp:511 properly splits std::size_t refs into low and high 32-bit components across both LP64 and LLP64
    • Verified null pointer validation via RequireArgument for all constructors, _Init, and deleting destructors D0 in TimeGetFields.cpp, ensuring NotImplemented_nid_no_patch is called when invalid arguments are provided
    • Verified _ZNSt8time_getIw...E7_Getcat facet allocation semantics and exception safety using FacetGuard to prevent memory leaks if ConstructWideTimeGetFacet throws
    • Verified deleting destructors D0 for time_get<wchar_t> and time_put delegate correctly to their respective deallocators TimeFieldsDeleteWideTimeGet_nid_no_patch and TimeFieldsDeleteFacet_nid_no_patch
    • Verified NID export removals in InventoryExports.cpp and debt fragment docs/dev/debt/changes/feat-libcinternal-time-facet-ctors.md conform strictly to AGENTS.md rules

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5945371090 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22528#pullrequestreview-5945371090). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-17T19:43:16Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `f0c7d81edd`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `guest_libc_internal_time_get_fields_tests` built cleanly. - **CTest** (`guest_libc_internal_time_get_fields`): ``` 1/1 Test #4245: guest_libc_internal_time_get_fields ... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceLibcInternal/InventoryExports.cpp`, `core/libs/prx/libSceLibcInternal/TimeGetFields.cpp`, `core/libs/prx/libSceLibcInternal/include/InventoryExports.hpp`, `core/libs/prx/libSceLibcInternal/include/TimeGetFields.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified MakeFacetHeader unpacking in core/libs/prx/libSceLibcInternal/TimeGetFields.cpp:511 properly splits std::size_t refs into low and high 32-bit components across both LP64 and LLP64 - Verified null pointer validation via RequireArgument for all constructors, _Init, and deleting destructors D0 in TimeGetFields.cpp, ensuring NotImplemented_nid_no_patch is called when invalid arguments are provided - Verified _ZNSt8time_getIw...E7_Getcat facet allocation semantics and exception safety using FacetGuard to prevent memory leaks if ConstructWideTimeGetFacet throws - Verified deleting destructors D0 for time_get<wchar_t> and time_put<char> delegate correctly to their respective deallocators TimeFieldsDeleteWideTimeGet_nid_no_patch and TimeFieldsDeleteFacet_nid_no_patch - Verified NID export removals in InventoryExports.cpp and debt fragment docs/dev/debt/changes/feat-libcinternal-time-facet-ctors.md conform strictly to AGENTS.md rules Looks Good To Me
MarcZX10 commented 2026-11-18 00:46:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T00:46:44Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the points below are optional.

What I ran

Reviewed head f0c7d81edd1204efba23485e463fbf577321737c using the prepared diff and the pinned repository reader (repo_read.py). No commands or tests were run; Linux test results and the negative control below were reported by the author.

Results

Check Result Note
Source and tests passed Reviewed all seven changed files
Build and test suite not run Author reports Linux 2/2 tests passed
Console behavior not run Author confirms it is unverified

Findings

Blocking

None.

Non-blocking

None.

Not verified

Did not run the build, tests, negative control, Windows checks, or console behavior. The author reports Linux x86-64 GCC 15.2.0 Release/Ninja tests passed, including a negative control, but these results were not independently verified. No changed files were excluded: all seven files listed in the review manifest were read.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5949104953 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22528#pullrequestreview-5949104953). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T00:46:44Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the points below are optional. ## What I ran Reviewed head `f0c7d81edd1204efba23485e463fbf577321737c` using the prepared diff and the pinned repository reader (`repo_read.py`). No commands or tests were run; Linux test results and the negative control below were reported by the author. ## Results | Check | Result | Note | |---|---|---| | Source and tests | passed | Reviewed all seven changed files | | Build and test suite | not run | Author reports Linux 2/2 tests passed | | Console behavior | not run | Author confirms it is unverified | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Did not run the build, tests, negative control, Windows checks, or console behavior. The author reports Linux x86-64 GCC 15.2.0 Release/Ninja tests passed, including a negative control, but these results were not independently verified. No changed files were excluded: all seven files listed in the review manifest were read. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-18 09:31:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T09:31:20Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed change at fd3891035ddeaa83d18d0e780efe373abc649587 has no verified blocking defects; tests and console behavior were not independently checked.

What I ran

Read the prepared diff and targeted changed source at the pinned head. No commands or tests were run.

Results

Check Result Note
Diff and targeted source review passed Core implementations inspected
Build and tests not run Results in the PR description are author reported
Console behavior not run Not independently verified

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full changed-file contents were not read; review/files contained no files, and repository files were only inspected in targeted ranges. Specifically, InventoryExports.cpp, InventoryExports.hpp, and GuestLibcInternalTimeGetFields.cpp were not read. The test/build claims, repository-wide export and debt checks, and console behavior were not independently verified. The manifest lists five changed files, all marked included; the diff also contains the debt fragment. No files were excluded in the manifest.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5953877351 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22528#pullrequestreview-5953877351). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T09:31:20Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed change at `fd3891035ddeaa83d18d0e780efe373abc649587` has no verified blocking defects; tests and console behavior were not independently checked. ## What I ran Read the prepared diff and targeted changed source at the pinned head. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Core implementations inspected | | Build and tests | not run | Results in the PR description are author reported | | Console behavior | not run | Not independently verified | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full changed-file contents were not read; `review/files` contained no files, and repository files were only inspected in targeted ranges. Specifically, `InventoryExports.cpp`, `InventoryExports.hpp`, and `GuestLibcInternalTimeGetFields.cpp` were not read. The test/build claims, repository-wide export and debt checks, and console behavior were not independently verified. The manifest lists five changed files, all marked included; the diff also contains the debt fragment. No files were excluded in the manifest. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-18 10:02:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T10:02:02Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the points below are optional.

What I ran

Reviewed head 2711ac42bafbbd4cf48a9bf228fb2ae54b596ff9 using repo_read.py search and file reads. No build or tests were run in this review.

Results

Check Result Note
Changed code review passed Implementation, layouts, allocators, and test registration inspected
Build and tests not run Results in the PR description are author-reported
Console behavior not run No console evidence supplied

Findings

Blocking

None.

Non-blocking

  • time_get<wchar_t> constructors taking _Locinfo validate the pointer but initialize the C-locale fields without reading it (core/libs/prx/libSceLibcInternal/TimeGetFields.cpp:769). This matches the stated C-locale limitation; consider retaining that limitation in user-facing documentation if callers can pass other locales.

Not verified

The full texts of all six changed files were marked included in the manifest; targeted reads covered the changed implementation and test regions, export definitions, declarations, guest facet layouts, and CMake test registration. The entire contents of InventoryExports.cpp, InventoryExports.hpp, and the test source were not read. files.json was not available through the reader. No build, test, negative control, merge-preview, or console run was performed here. The description reports Linux build/tests and a negative control; those results were not independently verified.

To get this to a good state

Nothing is required. Optionally document or test the behavior of _Locinfo constructors when given non-C locale data.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5954381587 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22528#pullrequestreview-5954381587). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T10:02:02Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the points below are optional. ## What I ran Reviewed head `2711ac42bafbbd4cf48a9bf228fb2ae54b596ff9` using `repo_read.py` search and file reads. No build or tests were run in this review. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Implementation, layouts, allocators, and test registration inspected | | Build and tests | not run | Results in the PR description are author-reported | | Console behavior | not run | No console evidence supplied | ## Findings ### Blocking None. ### Non-blocking - `time_get<wchar_t>` constructors taking `_Locinfo` validate the pointer but initialize the C-locale fields without reading it (`core/libs/prx/libSceLibcInternal/TimeGetFields.cpp:769`). This matches the stated C-locale limitation; consider retaining that limitation in user-facing documentation if callers can pass other locales. ## Not verified The full texts of all six changed files were marked included in the manifest; targeted reads covered the changed implementation and test regions, export definitions, declarations, guest facet layouts, and CMake test registration. The entire contents of `InventoryExports.cpp`, `InventoryExports.hpp`, and the test source were not read. `files.json` was not available through the reader. No build, test, negative control, merge-preview, or console run was performed here. The description reports Linux build/tests and a negative control; those results were not independently verified. ## To get this to a good state Nothing is required. Optionally document or test the behavior of `_Locinfo` constructors when given non-C locale data.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!22528
No description provided.