feat(libc): implement wide string modifiers and narrow insert #17668
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17668"
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 B-Howell on 2026-11-09T08:48:13Z.
What
Implement seven wide basic_string modifiers and narrow insert in libSceLibcInternal. The guest layouts, allocation rules and error behavior follow the pinned SDK libc ELF described in the library's technical debt. The guest test exercises inline and heap strings, growth, overlapping source ranges, range errors and allocation failure. Native console parity remains unverified. The same eight NIDs are retained and no exports are added.
Tested
On
4e2b02176aa2a4581a5c8522c931f4f4a31945fe, Windows 11 with WinLibs GCC 15.2.0 UCRT passed the basic-string and ConstantMembers guest tests 3/3 each and all 65 public-header checks. Ubuntu WSL2 with GCC 11.4 passed both guest tests 3/3 each and all 65 public-header checks. Both build checkouts restored cleanly. The Windows negative control over75c65bfretained the behavior assertions and used test-local bridges to call the existing named stubs. The focused target built successfully. CTest exited 8 and reported all eight expected throwing stubs onc611532e.Conventions passed. The overlap scan screened 1,956 open PRs, with exact patch checks for all 12 skipped comparisons and eight new or moved heads. #17300 renames three of these throwing stubs and leaves their bodies unchanged. See the coordination comment. If that PR lands first, the three renamed stubs need to be replaced by these implementations. This branch retains #15696's six landed providers and tests.
The pinned tools/progress.py collector counts 12,680 of 37,899 implemented library functions (33.46%), up from 12,672 (33.44%) on
75c65bf. libSceLibcInternal rises from 299 to 307 of 1,137.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)🤖 Generated with Codex