feat(libc,libSceLibcInternal): wire the ctype<char> facet vtable #21537

Merged
Herolias merged 5 commits from upstream-pr/21537 into main 2026-11-16 19:13:05 +00:00
Herolias commented 2026-11-16 11:15:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Herolias on 2026-11-16T11:15:55Z.


What

libc exports the ctype<char> vtable (_ZTVSt5ctypeIcE, NID GKWcAz6-G7k) as fourteen uintptr_t slots, and on main all fourteen are zero. This change fills slots 2 to 13. To do that, libc gains the four ctype<char> case maps and the two destructors that the console's libc.prx exports, and libSceLibcInternal's exports of the same NIDs forward to them.

How code reaches the vtable: Dinkumware defines ctype<char>::_Getcat inside the class (crt.vc12 xlocale line 2468), and no module exports it (its NID SlxGzFV6+04 is not in ps5rs libc.txt). So use_facet<ctype<char>> constructs the facet in the caller's own code, on the exported vtable. libc's classic locale holds no facets (g_classicFacets[1]{}), so that path is taken. use_facet then calls _Incref on the new facet (microsoft/STL xlocale line 453), which is slot 4, a zero on main.

Which titles this serves: the executables of Minecraft Legends (PPSA05510, #268), Deathloop (PPSA01670, #272), Dreaming Sarah (PPSA02929, #265) and Astro Bot (PPSA21564, #271) import ctype<char>::id (Cv+zC4EjGMA), which only use_facet<ctype<char>> and has_facet read. However, bundled modules come before AnyPS5's libraries when an import is looked up (ARCHITECTURE.md, Overview). Deathloop (#11484), Dreaming Sarah (#3018) and Astro Bot (#357) ship their own libc.prx, so their ctype<char> imports go to that module, not to this code. This change matters where a ctype<char> import reaches AnyPS5's libc: a title without a bundled libc.prx, or one whose copy does not export the symbol. It also matters for imports of the libSceLibcInternal NIDs, which try the host modules first. I know of no title in either situation that calls use_facet<ctype<char>>, so this PR claims no unblocked title. It completes the exported vtable from sourced code, as #21170 did for messages<char>.

  • Vtable: slots 2 to 13 hold the complete and deleting destructors, RetainFacet and ReleaseFacet (the _Incref/_Decref of libc's other facets), and then do_tolower, do_tolower (range), do_toupper, do_toupper (range), do_widen, do_widen (range), do_narrow and do_narrow (range). That is the declaration order in Dinkumware's ctype<char> (microsoft/STL xlocale lines 2777-2843, crt.vc12 xlocale lines 2492-2566), and the order GuestLocale::CtypeVtable already records for widen and narrow. Offset-to-top and typeinfo stay zero, as in the collate, messages and num_put vtables. The destructor and case-map slots point at libc's Ctype*_nid_no_patch bodies (below), as the messages vtable points at libc's own functions rather than at exports.
  • do_tolower and do_toupper (WXOoCK+kqwY, 2w+4Mo2DPro, mnq3tbhCs34, 7glioH0t9HM): the console's libc.prx exports them (ps5rs libc.txt), but on main only libSceLibcInternal had them (#19547). Among AnyPS5's libraries, a libc.prx import is looked up only in libc (WindowsEntryStubBuilder.cpp lines 180-215: other modules fall back to libc, not the reverse). I moved the code from libSceLibcInternal/CtypeCase.cpp into libc's LocaleSupport.cpp without changing its behaviour. Only the helpers were renamed, to CtypeFieldAddress, MapCtypeCharacter and MapCtypeRange, and std::bit_cast<char> became static_cast<char>. The bodies live in CtypeDoTolower_nid_no_patch, CtypeDoTolowerRange_nid_no_patch, CtypeDoToupper_nid_no_patch and CtypeDoToupperRange_nid_no_patch (declared in GuestLocale.hpp), and the _nid_postfix exports call them.
  • Destructors (tPsGA6EzNKA complete, p8-44cVeO84 deleting): these follow ~ctype and _Tidy in both sources (microsoft/STL lines 2777-2793, crt.vc12 lines 2492-2510). The classification table goes to free when deleteTable (_Delfl) is positive and to delete[] when it is negative; a zero leaves it alone. The deleting destructor then frees the facet with operator delete. The bodies are CtypeDestroy_nid_no_patch and CtypeDelete_nid_no_patch, which the two exports call. The table and flag are the classification and deleteTable fields of GuestLocale::CtypeFacet, from #19547. Both sources also free _Ctype._LocaleName, a Windows field that this layout has no room for, so that step is left out. The lower and upper tables are never freed, because neither source frees them.
  • libSceLibcInternal: the PS5 3.20 export inventory lists all six NIDs for libSceLibcInternal as well. CtypeCase.cpp now holds six forwarders exported by NID, the pattern Numpunct.cpp uses. They call libc's six _nid_no_patch bodies, not its exports, as 6c5bee0282 (#13730) made Numpunct.cpp do: after NID patching, a forwarder that imports libc's export imports the NID it also exports, and can bind to itself. patched_self_imports (core/libs/tests/PatchedSelfImports.cpp, also from #13730) failed for all six NIDs when this branch's first two commits were merged with main, and passes with the third. The two destructor NIDs were whole-body NotImplemented_nid_no_patch inventory stubs (libSceLibcInternalInventory_064 and _065). They are removed from InventoryExports.cpp/.hpp, as 8e6b7e1524 did for the entries it implemented.

What still throws, and why:

  • A null facet passed to either destructor throws std::invalid_argument, where the console would fault. This is the same host-safety policy as the facet base's DeleteCollate.
  • The case maps keep their existing std::invalid_argument throws for unusable memory, null tables and inverted ranges.
  • No path calls NotImplemented_nid_no_patch.

Debt: docs/dev/debt/changes/feat-ctype-char-vtable.md.

  • In libc.md it changes the ctype<char> vtable entry and the ctype<char> do_widen and do_narrow entry, which said the vtable stays zeroed.
  • It moves the libSceLibcInternal "ctype character case conversion" entry to libc.md as "ctype do_tolower and do_toupper", text unchanged apart from the link and the facet-construction caveat this PR resolves.
  • It adds a "ctype destructors" entry to libc.md.
  • In libSceLibcInternal.md it removes the _ZNSt5ctypeIcED0Ev/D1Ev rows from "Additional callable exports" and adds a Functional entry for the forwarders.
  • Every entry is under 1000 characters.

Overlap:

  • tools/pr_overlap.py --names for the 17 ctype<char> and numpunct<char> names found that:
    • #13449 adds ctype<char>::table_size and _ZTSSt5ctypeIcE, so both stay out of this PR;
    • #17300 renames the two destructor stubs. It also renames a do_toupper stub (mnq3tbhCs34) in InventoryExports2.cpp, which #19547 already replaced on main. This branch does not change that file, so #17300's conflict there is the same against main and against this branch;
    • no open PR touches the vtable or libc's ctype<char> members.
  • git log -G over the fetched open-PR heads found no other change to the destructor or case-map names.
  • #17300 (a rename of libSceLibcInternal inventory stubs, opened 2026-11-08) renames libSceLibcInternalInventory_064/_065 to _ZNSt5ctypeIcED0Ev/D1Ev stubs. pr_overlap --branch lists it under "Same exports" because those stubs carry the NIDs the new forwarders export. #17300 already conflicts with main in 8 places in InventoryExports.cpp. With this branch it has one more there, plus a wider one in InventoryExports.hpp. On a rebase it would drop those two renamed stubs.
  • tools/pr_overlap.py --branch exits 2 because 11 PRs that share files already conflict with main. On 10d0f25e12 I ran git merge-tree of each against main (a7b44b7125) and against this branch and compared the conflict hunks in every file both change:
  • #13730 (merged) moved the numpunct<char> bodies that libSceLibcInternal forwards to into _nid_no_patch functions. This branch follows it for ctype<char> and adds its six declarations after #13730's in GuestLocale.hpp.
  • #21220 (mine, open) fills the num_put<char> and codecvt<char> vtables further down the same block of LocaleSupport.cpp. Unchanged lines separate the hunks.

Not in this PR:

  • ctype<char>'s typeinfo _ZTISt5ctypeIcE, which main does not export; slot 1 stays zero.
  • ctype<char>::table_size and _ZTSSt5ctypeIcE (#13449).
  • The ctype<wchar_t> vtable (qdHsu+gIxRo, 18 zeroed slots). PPSA02929 imports ctype<wchar_t>::id. Its virtuals are split: libc has the classification and do_toupper (#17836), and libSceLibcInternal has do_tolower, do_widen and do_narrow. Its destructor would need the wide facet's layout, which no source here gives.
  • The numpunct<char> vtable. libc's _Getcat installs its own vtable, and the exported numpunct<char> constructors are absent, so nothing builds a facet on the exported object yet.

Tested

Fedora 44 x86-64, GCC 16.2.1, GNU ld 2.46.1, CMake 4.3.0, Ninja 1.13.2, Release with -DBUILD_TESTING=ON. The branch merges main at a7b44b7125 (10d0f25e12), and the results below are for that merge, unless they name another commit. 10d0f25e12 only merges main: no Build run started for f5531db33d, and a push is the only way to start one. I ran no title, homebrew or console, because I have none. Nothing was run on Windows or macOS; the MinGW compile check is below.

  • cmake --build build built the whole tree.

  • The selection from tools/select_tests.py (BUILD.md, "Selective test builds") was 5732 tests. 5668 passed, 62 skipped themselves and 2 failed: agc_driver_image_table_packed_guards ("invalid format" write-backs) and guest_http. Both also fail with main's (a7b44b7125) copies of this branch's nine source files in place, which I checked out, rebuilt the tests against, ran and then restored. This branch touches neither AGC nor libSceHttp.

  • patched_self_imports failed on the merge before f5531db33d, once for each of the six NIDs ("libSceLibcInternal.prx imports WXOoCK+kqwY, a name it also exports, so the import can bind to its own export"), and passes on f5531db33d and on 10d0f25e12.

  • guest_locale checks that the exported ctype<char> vtable is 112 bytes, that slots 0 and 1 are zero and that slots 2 to 13 are set. It then calls every slot on a facet built from the classic tables:

    • retain and release;
    • tolower, toupper and their range forms on "Mixed Case 42!";
    • widen, narrow and their range forms;
    • the complete destructor, the deleting destructor on a facet from operator new, and a null this, which throws.

    Like the collate, messages and num_put vtable checks in the same file, it does not compare slots with &function taken in the test. On Windows, libc.prx is a DLL, and there the test's &function is the executable's import thunk, not the address stored in the vtable. A MinGW DLL and executable run under wine showed the two differ. The calls tell every slot apart except the single-character do_widen and do_narrow (slots 10 and 12). Both return the character unchanged, so their order is not tested.

  • guest_ctype_case runs all of its case-conversion checks through libc's exports and through libSceLibcInternal's. It registers a recording heap and checks the destructors through both libraries' exports and through slots 2 and 3 of the exported vtable:

    • flag 0 releases nothing;
    • flags 1, 2 and INT32_MAX, then -1 and INT32_MIN, release the classification table and nothing else;
    • the lower and upper tables are never released;
    • the deleting destructor releases the table and then the facet with flag -1, and only the facet with flag 0;
    • a null facet throws std::invalid_argument.

    libc's free, operator delete and operator delete[] all release through the application heap, so the test sees which pointers are released but cannot tell whether free or delete[] released them.

  • guest_libc_internal_ctype (unchanged) passes.

  • Negative controls, on f5531db33d: I made 18 one-line changes, rebuilt the three tests, ran them and restored the files. Each change made at least one test fail:

    • in the vtable: tolower and toupper slots swapped, destructor slots swapped, the retain slot empty, the narrow range slot empty, and the whole vtable left zeroed as on main;
    • in the destructors: an unowned table freed, a negative flag ignored, the lower table freed, the deleting destructor keeping the facet, and the deleting destructor skipping the table;
    • in the case maps: libc's tolower reading the upper table;
    • in the libSceLibcInternal forwarders: tolower forwarding to toupper, the toupper range to the tolower range, the complete destructor deleting, and the deleting destructor only destroying;
    • in libc's exports: do_tolower mapping through toupper, the complete destructor deleting, and the deleting destructor only destroying.

    With the files restored, the three tests pass.

  • Windows:

    • The first Windows check, on 70ba5d5e95, failed to compile GuestCtypeCase.cpp. That file includes windows.h on Windows, and its recording heap's HeapFree collided with the Win32 function, so it is now HeapRelease.
    • The second, on 34bdcbb151 merged with main at e4caa07950, passed guest_locale, guest_ctype_case and guest_libc_internal_ctype. It failed only guest_multibyte_locale ("wcstombs fills the capacity mid-character"), which #21244 broke on main and #21567 reverted (cc1c20e0dd) after that run had started.
    • Fedora's x86_64-w64-mingw32-g++ 16.2.1 with UCRT headers (-D_UCRT -D__MSVCRT_VERSION__=0xE00 -fsyntax-only) reproduces the first check's error on 70ba5d5e95, and compiles the five changed sources on 10d0f25e12. That is not the WinLibs toolchain CI uses, and nothing was linked or run on Windows.
  • tools/check_conventions.py --base origin/main reports "All conventions checks passed."

  • tools/debt_fold.py --check fails on main at a7b44b7125, on main's own docs-nkwebkit-drop-readded-count-lines.md line 5. In a git archive copy of this branch without that one fragment, it passes with this branch's fragment.

  • tools/pr_overlap.py --branch feat/ctype-char-vtable: see Overlap above.

Sources

Behaviour Source
Slot count and header: 14 slots, with offset-to-top, typeinfo, two destructors and _Incref/_Decref first st_size 112 measured on PPSA16833's libc.prx, recorded in the libc.md "ctype vtable" entry (#9735)
Order of the destructor and the eight virtuals microsoft/STL 219514876e stl/inc/xlocale lines 2777-2843; ganboing/crt.vc12 f1d47126bf src/xlocale lines 2492-2566
Destructors release the classification table with free for a positive flag and delete[] for a negative one; the deleting destructor then frees the facet ~ctype and _Tidy: microsoft/STL lines 2777-2793, crt.vc12 lines 2492-2510
Facet fields classification, lower, upper and deleteTable GuestLocale::CtypeFacet in core/libs/prx/libc/include/GuestLocale.hpp, from #19547 (SDK 10.00 headers)
do_tolower/do_toupper behaviour (moved unchanged) the "ctype character case conversion" entry of #19547 (SDK 10.00 libc.prx disassembly)
_Getcat is defined in the class, so the guest builds the facet crt.vc12 xlocale lines 2468-2474; NID SlxGzFV6+04 is absent from ps5rs libc.txt
use_facet registers and _Increfs a lazily built facet microsoft/STL xlocale lines 427-461
libc exports do_tolower, do_toupper, both destructors, the vtable and id claimore22/ps5rs 2304be5131 data/stubs/by_library/libc.txt lines 242, 465, 703, 860, 1573, 2346, 2443, 2630
libSceLibcInternal exports the same six DNNDHH/PS5-3.20_Libs b2a77c09cd libSceLibcInternal.c lines 3119-3140, 6521, 6528
libSceLibcInternal's forwarders call libc's _nid_no_patch bodies, because a patched forwarder that imports the NID it exports can bind to itself 6c5bee0282 (#13730), "fix(prx): keep forwarding exports from binding to themselves on Linux", and its core/libs/tests/PatchedSelfImports.cpp
Among AnyPS5's libraries a libc.prx import resolves only in libc; bundled modules are tried first, except for libSceLibcInternal.prx imports core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp lines 180-215; docs/dev/ARCHITECTURE.md line 47
PPSA05510, PPSA01670, PPSA02929 and PPSA21564 import ctype<char>::id; PPSA01670, PPSA02929 and PPSA21564 ship libc.prx the NID lists in #268, #272, #265 and #271; Game bring-up discussions #11484, #3018 and #357

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:5335965936 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21537). Originally posted by [Herolias](https://github.com/Herolias) on 2026-11-16T11:15:55Z. --- ### What libc exports the `ctype<char>` vtable (`_ZTVSt5ctypeIcE`, NID `GKWcAz6-G7k`) as fourteen `uintptr_t` slots, and on `main` all fourteen are zero. This change fills slots 2 to 13. To do that, libc gains the four `ctype<char>` case maps and the two destructors that the console's `libc.prx` exports, and libSceLibcInternal's exports of the same NIDs forward to them. How code reaches the vtable: Dinkumware defines `ctype<char>::_Getcat` inside the class ([crt.vc12 `xlocale` line 2468](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocale#L2468-L2474)), and no module exports it (its NID `SlxGzFV6+04` is not in ps5rs `libc.txt`). So `use_facet<ctype<char>>` constructs the facet in the caller's own code, on the exported vtable. libc's classic locale holds no facets (`g_classicFacets[1]{}`), so that path is taken. `use_facet` then calls `_Incref` on the new facet ([microsoft/STL `xlocale` line 453](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocale#L427-L461)), which is slot 4, a zero on `main`. Which titles this serves: the executables of Minecraft Legends (PPSA05510, #268), Deathloop (PPSA01670, #272), Dreaming Sarah (PPSA02929, #265) and Astro Bot (PPSA21564, #271) import `ctype<char>::id` (`Cv+zC4EjGMA`), which only `use_facet<ctype<char>>` and `has_facet` read. However, bundled modules come before AnyPS5's libraries when an import is looked up (ARCHITECTURE.md, Overview). Deathloop (#11484), Dreaming Sarah (#3018) and Astro Bot (#357) ship their own `libc.prx`, so their `ctype<char>` imports go to that module, not to this code. This change matters where a `ctype<char>` import reaches AnyPS5's libc: a title without a bundled `libc.prx`, or one whose copy does not export the symbol. It also matters for imports of the libSceLibcInternal NIDs, which try the host modules first. I know of no title in either situation that calls `use_facet<ctype<char>>`, so this PR claims no unblocked title. It completes the exported vtable from sourced code, as #21170 did for `messages<char>`. - **Vtable:** slots 2 to 13 hold the complete and deleting destructors, `RetainFacet` and `ReleaseFacet` (the `_Incref`/`_Decref` of libc's other facets), and then `do_tolower`, `do_tolower` (range), `do_toupper`, `do_toupper` (range), `do_widen`, `do_widen` (range), `do_narrow` and `do_narrow` (range). That is the declaration order in Dinkumware's `ctype<char>` ([microsoft/STL `xlocale` lines 2777-2843](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocale#L2777-L2843), [crt.vc12 `xlocale` lines 2492-2566](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocale#L2492-L2566)), and the order `GuestLocale::CtypeVtable` already records for `widen` and `narrow`. Offset-to-top and typeinfo stay zero, as in the `collate`, `messages` and `num_put` vtables. The destructor and case-map slots point at libc's `Ctype*_nid_no_patch` bodies (below), as the `messages` vtable points at libc's own functions rather than at exports. - **`do_tolower` and `do_toupper` (`WXOoCK+kqwY`, `2w+4Mo2DPro`, `mnq3tbhCs34`, `7glioH0t9HM`):** the console's `libc.prx` exports them (ps5rs `libc.txt`), but on `main` only libSceLibcInternal had them (#19547). Among AnyPS5's libraries, a `libc.prx` import is looked up only in libc (`WindowsEntryStubBuilder.cpp` lines 180-215: other modules fall back to libc, not the reverse). I moved the code from `libSceLibcInternal/CtypeCase.cpp` into libc's `LocaleSupport.cpp` without changing its behaviour. Only the helpers were renamed, to `CtypeFieldAddress`, `MapCtypeCharacter` and `MapCtypeRange`, and `std::bit_cast<char>` became `static_cast<char>`. The bodies live in `CtypeDoTolower_nid_no_patch`, `CtypeDoTolowerRange_nid_no_patch`, `CtypeDoToupper_nid_no_patch` and `CtypeDoToupperRange_nid_no_patch` (declared in `GuestLocale.hpp`), and the `_nid_postfix` exports call them. - **Destructors (`tPsGA6EzNKA` complete, `p8-44cVeO84` deleting):** these follow `~ctype` and `_Tidy` in both sources ([microsoft/STL lines 2777-2793](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocale#L2777-L2793), [crt.vc12 lines 2492-2510](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocale#L2492-L2510)). The classification table goes to `free` when `deleteTable` (`_Delfl`) is positive and to `delete[]` when it is negative; a zero leaves it alone. The deleting destructor then frees the facet with `operator delete`. The bodies are `CtypeDestroy_nid_no_patch` and `CtypeDelete_nid_no_patch`, which the two exports call. The table and flag are the `classification` and `deleteTable` fields of `GuestLocale::CtypeFacet`, from #19547. Both sources also free `_Ctype._LocaleName`, a Windows field that this layout has no room for, so that step is left out. The lower and upper tables are never freed, because neither source frees them. - **libSceLibcInternal:** the PS5 3.20 export inventory lists all six NIDs for libSceLibcInternal as well. `CtypeCase.cpp` now holds six forwarders exported by NID, the pattern `Numpunct.cpp` uses. They call libc's six `_nid_no_patch` bodies, not its exports, as 6c5bee0282 (#13730) made `Numpunct.cpp` do: after NID patching, a forwarder that imports libc's export imports the NID it also exports, and can bind to itself. `patched_self_imports` (`core/libs/tests/PatchedSelfImports.cpp`, also from #13730) failed for all six NIDs when this branch's first two commits were merged with `main`, and passes with the third. The two destructor NIDs were whole-body `NotImplemented_nid_no_patch` inventory stubs (`libSceLibcInternalInventory_064` and `_065`). They are removed from `InventoryExports.cpp`/`.hpp`, as 8e6b7e1524 did for the entries it implemented. What still throws, and why: - A null facet passed to either destructor throws `std::invalid_argument`, where the console would fault. This is the same host-safety policy as the facet base's `DeleteCollate`. - The case maps keep their existing `std::invalid_argument` throws for unusable memory, null tables and inverted ranges. - No path calls `NotImplemented_nid_no_patch`. Debt: `docs/dev/debt/changes/feat-ctype-char-vtable.md`. - In `libc.md` it changes the `ctype<char> vtable` entry and the `ctype<char> do_widen and do_narrow` entry, which said the vtable stays zeroed. - It moves the libSceLibcInternal "ctype character case conversion" entry to `libc.md` as "ctype<char> do_tolower and do_toupper", text unchanged apart from the link and the facet-construction caveat this PR resolves. - It adds a "ctype<char> destructors" entry to `libc.md`. - In `libSceLibcInternal.md` it removes the `_ZNSt5ctypeIcED0Ev`/`D1Ev` rows from "Additional callable exports" and adds a Functional entry for the forwarders. - Every entry is under 1000 characters. Overlap: - `tools/pr_overlap.py --names` for the 17 `ctype<char>` and `numpunct<char>` names found that: - #13449 adds `ctype<char>::table_size` and `_ZTSSt5ctypeIcE`, so both stay out of this PR; - #17300 renames the two destructor stubs. It also renames a `do_toupper` stub (`mnq3tbhCs34`) in `InventoryExports2.cpp`, which #19547 already replaced on `main`. This branch does not change that file, so #17300's conflict there is the same against `main` and against this branch; - no open PR touches the vtable or libc's `ctype<char>` members. - `git log -G` over the fetched open-PR heads found no other change to the destructor or case-map names. - #17300 (a rename of libSceLibcInternal inventory stubs, opened 2026-11-08) renames `libSceLibcInternalInventory_064`/`_065` to `_ZNSt5ctypeIcED0Ev`/`D1Ev` stubs. `pr_overlap --branch` lists it under "Same exports" because those stubs carry the NIDs the new forwarders export. #17300 already conflicts with `main` in 8 places in `InventoryExports.cpp`. With this branch it has one more there, plus a wider one in `InventoryExports.hpp`. On a rebase it would drop those two renamed stubs. - `tools/pr_overlap.py --branch` exits 2 because 11 PRs that share files already conflict with `main`. On 10d0f25e12 I ran `git merge-tree` of each against `main` (a7b44b7125) and against this branch and compared the conflict hunks in every file both change: - #9526 (`LocaleSupport.cpp`, `GuestLocale.cpp`), #11172 and #18135 (`LocaleSupport.cpp`), #13778 and #14834 (`InventoryExports.cpp`/`.hpp`) have identical hunks. - #12184, #12682, #12688, #12700 and #12965 (`Api.hpp`) and #18135 (`Api.hpp`, `GuestLocale.hpp`) merge cleanly in these files both ways. - #13730 (merged) moved the `numpunct<char>` bodies that libSceLibcInternal forwards to into `_nid_no_patch` functions. This branch follows it for `ctype<char>` and adds its six declarations after #13730's in `GuestLocale.hpp`. - #21220 (mine, open) fills the `num_put<char>` and `codecvt<char>` vtables further down the same block of `LocaleSupport.cpp`. Unchanged lines separate the hunks. Not in this PR: - `ctype<char>`'s typeinfo `_ZTISt5ctypeIcE`, which `main` does not export; slot 1 stays zero. - `ctype<char>::table_size` and `_ZTSSt5ctypeIcE` (#13449). - The `ctype<wchar_t>` vtable (`qdHsu+gIxRo`, 18 zeroed slots). PPSA02929 imports `ctype<wchar_t>::id`. Its virtuals are split: libc has the classification and `do_toupper` (#17836), and libSceLibcInternal has `do_tolower`, `do_widen` and `do_narrow`. Its destructor would need the wide facet's layout, which no source here gives. - The `numpunct<char>` vtable. libc's `_Getcat` installs its own vtable, and the exported `numpunct<char>` constructors are absent, so nothing builds a facet on the exported object yet. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Fedora 44 x86-64, GCC 16.2.1, GNU ld 2.46.1, CMake 4.3.0, Ninja 1.13.2, Release with `-DBUILD_TESTING=ON`. The branch merges `main` at a7b44b7125 (10d0f25e12), and the results below are for that merge, unless they name another commit. 10d0f25e12 only merges `main`: no Build run started for f5531db33d, and a push is the only way to start one. I ran no title, homebrew or console, because I have none. Nothing was run on Windows or macOS; the MinGW compile check is below. - `cmake --build build` built the whole tree. - The selection from `tools/select_tests.py` (BUILD.md, "Selective test builds") was 5732 tests. 5668 passed, 62 skipped themselves and 2 failed: `agc_driver_image_table_packed_guards` ("invalid format" write-backs) and `guest_http`. Both also fail with `main`'s (a7b44b7125) copies of this branch's nine source files in place, which I checked out, rebuilt the tests against, ran and then restored. This branch touches neither AGC nor libSceHttp. - `patched_self_imports` failed on the merge before f5531db33d, once for each of the six NIDs ("libSceLibcInternal.prx imports WXOoCK+kqwY, a name it also exports, so the import can bind to its own export"), and passes on f5531db33d and on 10d0f25e12. - `guest_locale` checks that the exported `ctype<char>` vtable is 112 bytes, that slots 0 and 1 are zero and that slots 2 to 13 are set. It then calls every slot on a facet built from the classic tables: - retain and release; - `tolower`, `toupper` and their range forms on "Mixed Case 42!"; - `widen`, `narrow` and their range forms; - the complete destructor, the deleting destructor on a facet from `operator new`, and a null `this`, which throws. Like the `collate`, `messages` and `num_put` vtable checks in the same file, it does not compare slots with `&function` taken in the test. On Windows, `libc.prx` is a DLL, and there the test's `&function` is the executable's import thunk, not the address stored in the vtable. A MinGW DLL and executable run under wine showed the two differ. The calls tell every slot apart except the single-character `do_widen` and `do_narrow` (slots 10 and 12). Both return the character unchanged, so their order is not tested. - `guest_ctype_case` runs all of its case-conversion checks through libc's exports and through libSceLibcInternal's. It registers a recording heap and checks the destructors through both libraries' exports and through slots 2 and 3 of the exported vtable: - flag 0 releases nothing; - flags 1, 2 and `INT32_MAX`, then -1 and `INT32_MIN`, release the classification table and nothing else; - the `lower` and `upper` tables are never released; - the deleting destructor releases the table and then the facet with flag -1, and only the facet with flag 0; - a null facet throws `std::invalid_argument`. libc's `free`, `operator delete` and `operator delete[]` all release through the application heap, so the test sees which pointers are released but cannot tell whether `free` or `delete[]` released them. - `guest_libc_internal_ctype` (unchanged) passes. - Negative controls, on f5531db33d: I made 18 one-line changes, rebuilt the three tests, ran them and restored the files. Each change made at least one test fail: - in the vtable: `tolower` and `toupper` slots swapped, destructor slots swapped, the retain slot empty, the `narrow` range slot empty, and the whole vtable left zeroed as on `main`; - in the destructors: an unowned table freed, a negative flag ignored, the `lower` table freed, the deleting destructor keeping the facet, and the deleting destructor skipping the table; - in the case maps: libc's `tolower` reading the `upper` table; - in the libSceLibcInternal forwarders: `tolower` forwarding to `toupper`, the `toupper` range to the `tolower` range, the complete destructor deleting, and the deleting destructor only destroying; - in libc's exports: `do_tolower` mapping through `toupper`, the complete destructor deleting, and the deleting destructor only destroying. With the files restored, the three tests pass. - Windows: - The first Windows check, on 70ba5d5e95, failed to compile `GuestCtypeCase.cpp`. That file includes `windows.h` on Windows, and its recording heap's `HeapFree` collided with the Win32 function, so it is now `HeapRelease`. - The second, on 34bdcbb151 merged with `main` at e4caa07950, passed `guest_locale`, `guest_ctype_case` and `guest_libc_internal_ctype`. It failed only `guest_multibyte_locale` ("wcstombs fills the capacity mid-character"), which #21244 broke on `main` and #21567 reverted (cc1c20e0dd) after that run had started. - Fedora's `x86_64-w64-mingw32-g++` 16.2.1 with UCRT headers (`-D_UCRT -D__MSVCRT_VERSION__=0xE00 -fsyntax-only`) reproduces the first check's error on 70ba5d5e95, and compiles the five changed sources on 10d0f25e12. That is not the WinLibs toolchain CI uses, and nothing was linked or run on Windows. - `tools/check_conventions.py --base origin/main` reports "All conventions checks passed." - `tools/debt_fold.py --check` fails on `main` at a7b44b7125, on `main`'s own `docs-nkwebkit-drop-readded-count-lines.md` line 5. In a `git archive` copy of this branch without that one fragment, it passes with this branch's fragment. - `tools/pr_overlap.py --branch feat/ctype-char-vtable`: see Overlap above. ### Sources | Behaviour | Source | | --- | --- | | Slot count and header: 14 slots, with offset-to-top, typeinfo, two destructors and `_Incref`/`_Decref` first | `st_size` 112 measured on PPSA16833's `libc.prx`, recorded in the `libc.md` "ctype<char> vtable" entry (#9735) | | Order of the destructor and the eight virtuals | [microsoft/STL 219514876e `stl/inc/xlocale` lines 2777-2843](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocale#L2777-L2843); [ganboing/crt.vc12 f1d47126bf `src/xlocale` lines 2492-2566](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocale#L2492-L2566) | | Destructors release the classification table with `free` for a positive flag and `delete[]` for a negative one; the deleting destructor then frees the facet | `~ctype` and `_Tidy`: [microsoft/STL lines 2777-2793](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocale#L2777-L2793), [crt.vc12 lines 2492-2510](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocale#L2492-L2510) | | Facet fields `classification`, `lower`, `upper` and `deleteTable` | `GuestLocale::CtypeFacet` in `core/libs/prx/libc/include/GuestLocale.hpp`, from #19547 (SDK 10.00 headers) | | `do_tolower`/`do_toupper` behaviour (moved unchanged) | the "ctype character case conversion" entry of #19547 (SDK 10.00 `libc.prx` disassembly) | | `_Getcat` is defined in the class, so the guest builds the facet | [crt.vc12 `xlocale` lines 2468-2474](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocale#L2468-L2474); NID `SlxGzFV6+04` is absent from ps5rs `libc.txt` | | `use_facet` registers and `_Incref`s a lazily built facet | [microsoft/STL `xlocale` lines 427-461](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocale#L427-L461) | | libc exports `do_tolower`, `do_toupper`, both destructors, the vtable and `id` | [claimore22/ps5rs 2304be5131 `data/stubs/by_library/libc.txt`](https://github.com/claimore22/ps5rs/blob/2304be5131221bae0dac24b9767cabffda33f747/data/stubs/by_library/libc.txt) lines 242, 465, 703, 860, 1573, 2346, 2443, 2630 | | libSceLibcInternal exports the same six | [DNNDHH/PS5-3.20_Libs b2a77c09cd `libSceLibcInternal.c`](https://github.com/DNNDHH/PS5-3.20_Libs/blob/b2a77c09cd71c01f34c790cfbe98c751a13262ad/libSceLibcInternal.c) lines 3119-3140, 6521, 6528 | | libSceLibcInternal's forwarders call libc's `_nid_no_patch` bodies, because a patched forwarder that imports the NID it exports can bind to itself | 6c5bee0282 (#13730), "fix(prx): keep forwarding exports from binding to themselves on Linux", and its `core/libs/tests/PatchedSelfImports.cpp` | | Among AnyPS5's libraries a `libc.prx` import resolves only in libc; bundled modules are tried first, except for `libSceLibcInternal.prx` imports | `core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp` lines 180-215; `docs/dev/ARCHITECTURE.md` line 47 | | PPSA05510, PPSA01670, PPSA02929 and PPSA21564 import `ctype<char>::id`; PPSA01670, PPSA02929 and PPSA21564 ship `libc.prx` | the NID lists in #268, #272, #265 and #271; Game bring-up discussions #11484, #3018 and #357 | ### 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-16 11:22:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T11:22:40Z.

Review: APPROVED


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

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: guest_ctype_case_tests, guest_locale_tests built cleanly.
  • CTest (guest_locale, guest_ctype_case):
    1/2 Test #1335: guest_locale .....................   Passed    0.01 sec
    2/2 Test #4116: guest_ctype_case .................   Passed    0.03 sec
    100% tests passed, 0 tests failed out of 2
    
  • Negative control: with core/libs/prx/libSceLibcInternal/CtypeCase.cpp, core/libs/prx/libSceLibcInternal/InventoryExports.cpp, core/libs/prx/libSceLibcInternal/include/Ctype.hpp, core/libs/prx/libSceLibcInternal/include/InventoryExports.hpp, core/libs/prx/libc/include/Api.hpp, core/libs/prx/libc/src/LocaleSupport.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libc/src/LocaleSupport.cpp: verified _ZTVSt5ctypeIcE_nid_postfix[14] populates slots 2 through 13 with destructors (_ZNSt5ctypeIcED1Ev_nid_postfix, _ZNSt5ctypeIcED0Ev_nid_postfix), refcount hooks (RetainFacet, ReleaseFacet), case mapping virtuals (do_tolower, do_toupper single and range), and widen/narrow virtuals.
    • core/libs/prx/libc/src/LocaleSupport.cpp: verified CtypeFieldAddress, MapCtypeCharacter, and MapCtypeRange check for null base pointers, uintptr_t addition overflow, invalid range ordering (first > last), and use GuestCopyIn_nid_no_patch/GuestCopyOut_nid_no_patch for guest memory accesses.
    • core/libs/prx/libc/src/LocaleSupport.cpp: verified _ZNSt5ctypeIcED1Ev_nid_postfix checks self == nullptr, frees self->classification via free_nid_postfix when deleteTable > 0 or _ZdaPv_nid_postfix when deleteTable < 0, and _ZNSt5ctypeIcED0Ev_nid_postfix invokes D1 followed by _ZdlPv_nid_postfix(self).
    • core/libs/prx/libSceLibcInternal/CtypeCase.cpp and InventoryExports.cpp: verified all six libSceLibcInternal ctype exports (WXOoCK+kqwY, 2w+4Mo2DPro, mnq3tbhCs34, 7glioH0t9HM, tPsGA6EzNKA, p8-44cVeO84) forward cleanly to the corresponding libc implementations and that duplicate inventory stubs 064 and 065 were removed.
    • docs/dev/debt/changes/feat-ctype-char-vtable.md: verified technical debt fragment documents the Dinkumware ctype vtable and forwarding behavior in compliance with AGENTS.md.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5919160917 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21537#pullrequestreview-5919160917). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-16T11:22:40Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `70ba5d5e95`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `guest_ctype_case_tests`, `guest_locale_tests` built cleanly. - **CTest** (`guest_locale`, `guest_ctype_case`): ``` 1/2 Test #1335: guest_locale ..................... Passed 0.01 sec 2/2 Test #4116: guest_ctype_case ................. Passed 0.03 sec 100% tests passed, 0 tests failed out of 2 ``` - **Negative control**: with `core/libs/prx/libSceLibcInternal/CtypeCase.cpp`, `core/libs/prx/libSceLibcInternal/InventoryExports.cpp`, `core/libs/prx/libSceLibcInternal/include/Ctype.hpp`, `core/libs/prx/libSceLibcInternal/include/InventoryExports.hpp`, `core/libs/prx/libc/include/Api.hpp`, `core/libs/prx/libc/src/LocaleSupport.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libc/src/LocaleSupport.cpp: verified _ZTVSt5ctypeIcE_nid_postfix[14] populates slots 2 through 13 with destructors (_ZNSt5ctypeIcED1Ev_nid_postfix, _ZNSt5ctypeIcED0Ev_nid_postfix), refcount hooks (RetainFacet, ReleaseFacet), case mapping virtuals (do_tolower, do_toupper single and range), and widen/narrow virtuals. - core/libs/prx/libc/src/LocaleSupport.cpp: verified CtypeFieldAddress, MapCtypeCharacter, and MapCtypeRange check for null base pointers, uintptr_t addition overflow, invalid range ordering (first > last), and use GuestCopyIn_nid_no_patch/GuestCopyOut_nid_no_patch for guest memory accesses. - core/libs/prx/libc/src/LocaleSupport.cpp: verified _ZNSt5ctypeIcED1Ev_nid_postfix checks self == nullptr, frees self->classification via free_nid_postfix when deleteTable > 0 or _ZdaPv_nid_postfix when deleteTable < 0, and _ZNSt5ctypeIcED0Ev_nid_postfix invokes D1 followed by _ZdlPv_nid_postfix(self). - core/libs/prx/libSceLibcInternal/CtypeCase.cpp and InventoryExports.cpp: verified all six libSceLibcInternal ctype<char> exports (WXOoCK+kqwY, 2w+4Mo2DPro, mnq3tbhCs34, 7glioH0t9HM, tPsGA6EzNKA, p8-44cVeO84) forward cleanly to the corresponding libc implementations and that duplicate inventory stubs 064 and 065 were removed. - docs/dev/debt/changes/feat-ctype-char-vtable.md: verified technical debt fragment documents the Dinkumware ctype<char> vtable and forwarding behavior in compliance with AGENTS.md. Looks Good To Me
PrivacyOnion commented 2026-11-16 12:22:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T12:22:24Z.

Review: APPROVED


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

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: guest_ctype_case_tests, guest_locale_tests built cleanly.
  • CTest (guest_locale, guest_ctype_case):
    1/2 Test #1335: guest_locale .....................   Passed    0.01 sec
    2/2 Test #4116: guest_ctype_case .................   Passed    0.03 sec
    100% tests passed, 0 tests failed out of 2
    
  • Negative control: with core/libs/prx/libSceLibcInternal/CtypeCase.cpp, core/libs/prx/libSceLibcInternal/InventoryExports.cpp, core/libs/prx/libSceLibcInternal/include/Ctype.hpp, core/libs/prx/libSceLibcInternal/include/InventoryExports.hpp, core/libs/prx/libc/include/Api.hpp, core/libs/prx/libc/src/LocaleSupport.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libc/src/LocaleSupport.cpp: verified _ZTVSt5ctypeIcE_nid_postfix[14] populates slots 2-13 with _ZNSt5ctypeIcED1Ev_nid_postfix, _ZNSt5ctypeIcED0Ev_nid_postfix, RetainFacet, ReleaseFacet, do_tolower (single and range), do_toupper (single and range), do_widen (single and range), and do_narrow (single and range).
    • core/libs/prx/libc/src/LocaleSupport.cpp: verified CtypeFieldAddress, MapCtypeCharacter, and MapCtypeRange validate non-null pointers, guard against uintptr_t addition overflow, enforce first <= last, and read/write guest memory through GuestCopyIn_nid_no_patch and GuestCopyOut_nid_no_patch.
    • core/libs/prx/libc/src/LocaleSupport.cpp: verified _ZNSt5ctypeIcED1Ev_nid_postfix checks self == nullptr (throwing via APS5_INVALID_ARG_EX), frees self->classification with free_nid_postfix when deleteTable > 0 or _ZdaPv_nid_postfix when deleteTable < 0, and _ZNSt5ctypeIcED0Ev_nid_postfix invokes D1 before _ZdlPv_nid_postfix(self).
    • core/libs/prx/libSceLibcInternal/CtypeCase.cpp & InventoryExports.cpp: verified all six libSceLibcInternal exports (WXOoCK+kqwY, 2w+4Mo2DPro, mnq3tbhCs34, 7glioH0t9HM, tPsGA6EzNKA, p8-44cVeO84) forward to the libc implementations and that duplicate unimplemented stubs libSceLibcInternalInventory_064_nid_no_patch and 065 were removed.
    • docs/dev/debt/changes/feat-ctype-char-vtable.md: verified technical debt fragment accurately documents the Dinkumware ctype vtable layout and libSceLibcInternal forwarding in accordance with AGENTS.md.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5919884605 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21537#pullrequestreview-5919884605). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-16T12:22:24Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `34bdcbb151`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `guest_ctype_case_tests`, `guest_locale_tests` built cleanly. - **CTest** (`guest_locale`, `guest_ctype_case`): ``` 1/2 Test #1335: guest_locale ..................... Passed 0.01 sec 2/2 Test #4116: guest_ctype_case ................. Passed 0.03 sec 100% tests passed, 0 tests failed out of 2 ``` - **Negative control**: with `core/libs/prx/libSceLibcInternal/CtypeCase.cpp`, `core/libs/prx/libSceLibcInternal/InventoryExports.cpp`, `core/libs/prx/libSceLibcInternal/include/Ctype.hpp`, `core/libs/prx/libSceLibcInternal/include/InventoryExports.hpp`, `core/libs/prx/libc/include/Api.hpp`, `core/libs/prx/libc/src/LocaleSupport.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libc/src/LocaleSupport.cpp: verified _ZTVSt5ctypeIcE_nid_postfix[14] populates slots 2-13 with _ZNSt5ctypeIcED1Ev_nid_postfix, _ZNSt5ctypeIcED0Ev_nid_postfix, RetainFacet, ReleaseFacet, do_tolower (single and range), do_toupper (single and range), do_widen (single and range), and do_narrow (single and range). - core/libs/prx/libc/src/LocaleSupport.cpp: verified CtypeFieldAddress, MapCtypeCharacter, and MapCtypeRange validate non-null pointers, guard against uintptr_t addition overflow, enforce first <= last, and read/write guest memory through GuestCopyIn_nid_no_patch and GuestCopyOut_nid_no_patch. - core/libs/prx/libc/src/LocaleSupport.cpp: verified _ZNSt5ctypeIcED1Ev_nid_postfix checks self == nullptr (throwing via APS5_INVALID_ARG_EX), frees self->classification with free_nid_postfix when deleteTable > 0 or _ZdaPv_nid_postfix when deleteTable < 0, and _ZNSt5ctypeIcED0Ev_nid_postfix invokes D1 before _ZdlPv_nid_postfix(self). - core/libs/prx/libSceLibcInternal/CtypeCase.cpp & InventoryExports.cpp: verified all six libSceLibcInternal exports (WXOoCK+kqwY, 2w+4Mo2DPro, mnq3tbhCs34, 7glioH0t9HM, tPsGA6EzNKA, p8-44cVeO84) forward to the libc implementations and that duplicate unimplemented stubs libSceLibcInternalInventory_064_nid_no_patch and 065 were removed. - docs/dev/debt/changes/feat-ctype-char-vtable.md: verified technical debt fragment accurately documents the Dinkumware ctype<char> vtable layout and libSceLibcInternal forwarding in accordance with AGENTS.md. Looks Good To Me
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!21537
No description provided.