feat(libSceNKWebKitRequirements): name 122 unknown exports from their NIDs #13745

Merged
CodingBreadd merged 1 commit from upstream-pr/13745 into main 2026-10-31 21:47:03 +00:00
CodingBreadd commented 2026-10-31 03:56:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CodingBreadd on 2026-10-31T03:56:43Z.


What

Names 122 of the 133 sceNKWebKitRequirementsUnknown_*_nid_no_patch exports of libSceNKWebKitRequirements. Each new name is the identifier whose tools/nid_names.py hash equals the stub's NID; candidates were every identifier in the zlib 1.3.1, libjpeg-turbo 3.0.4, libpsl 0.21.5, SQLite 3.46.1 and libxml2 2.13.4 sources: 10 zlib (deflate, inflateInit2_, uncompress, ...), 15 libjpeg (jpeg_read_header, jpeg_std_error, ...), 22 libpsl (psl_builtin, psl_is_public_suffix, ...), 50 SQLite (sqlite3_open_v2, sqlite3_step, ...), 23 libxml2 (xmlParseChunk, xmlSAX2StartDocument, ...) and the two __ubsan_handle_cfi_check_fail handlers.

Every renamed export still throws through NotImplemented_nid_no_patch, keeps the no-parameter import-resolution convention and is declared once in include/Identified.hpp. All carry _nid_postfix, so none collides with the zlib and libjpeg-turbo symbols linked into the build; the two ubsan handlers also carry _nid_disambig1 because libkernel_sys already defines __ubsan_handle_cfi_check_fail_nid_postfix and __ubsan_handle_cfi_check_fail_abort_nid_postfix. Missing-import and unimplemented-call errors now name the function instead of the NID. The debt entry records that a name match does not establish the prototype or behavior.

The other 11 inventory unknowns and the 32 additional exports from #13225 hash to no identifier of those sources or of ICU 76.1, HarfBuzz 10.0.1, cairo 1.18.2, pixman 0.42.2, FreeType 2.13.3, libpng 1.6.44, Expat 2.6.3, libxslt 1.1.42, libwebp 1.4.0, Brotli 1.1.0, WOFF2 1.0.2, curl 8.10.1, Little CMS 2.16, OpenJPEG 2.5.2 and Fontconfig 2.15.0, and stay unchanged.

Tested

Windows 11, WinLibs GCC 15.2.0 (UCRT, POSIX, SEH). Built libSceNKWebKitRequirements and the patched libSceNKWebKitRequirements.prx on main and on this branch; the patched export table holds the same 165 NIDs as on main. ctest -R public_headers: 63 of the 64 public_headers_compile_* batches passed; on this loaded machine the public_headers audit (81 s) and batch 20 (35 s) exceeded their 90 s and 30 s CTest limits, and both passed when run directly with the CTest command lines (393 libraries, 24658 exports verified; 13 units). tools/check_conventions.py --base origin/main passes. No title tested.

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
  • 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

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5094298459 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13745). Originally posted by [CodingBreadd](https://github.com/CodingBreadd) on 2026-10-31T03:56:43Z. --- ### What Names 122 of the 133 `sceNKWebKitRequirementsUnknown_*_nid_no_patch` exports of libSceNKWebKitRequirements. Each new name is the identifier whose `tools/nid_names.py` hash equals the stub's NID; candidates were every identifier in the zlib 1.3.1, libjpeg-turbo 3.0.4, libpsl 0.21.5, SQLite 3.46.1 and libxml2 2.13.4 sources: 10 zlib (`deflate`, `inflateInit2_`, `uncompress`, ...), 15 libjpeg (`jpeg_read_header`, `jpeg_std_error`, ...), 22 libpsl (`psl_builtin`, `psl_is_public_suffix`, ...), 50 SQLite (`sqlite3_open_v2`, `sqlite3_step`, ...), 23 libxml2 (`xmlParseChunk`, `xmlSAX2StartDocument`, ...) and the two `__ubsan_handle_cfi_check_fail` handlers. Every renamed export still throws through `NotImplemented_nid_no_patch`, keeps the no-parameter import-resolution convention and is declared once in `include/Identified.hpp`. All carry `_nid_postfix`, so none collides with the zlib and libjpeg-turbo symbols linked into the build; the two ubsan handlers also carry `_nid_disambig1` because libkernel_sys already defines `__ubsan_handle_cfi_check_fail_nid_postfix` and `__ubsan_handle_cfi_check_fail_abort_nid_postfix`. Missing-import and unimplemented-call errors now name the function instead of the NID. The debt entry records that a name match does not establish the prototype or behavior. The other 11 inventory unknowns and the 32 additional exports from #13225 hash to no identifier of those sources or of ICU 76.1, HarfBuzz 10.0.1, cairo 1.18.2, pixman 0.42.2, FreeType 2.13.3, libpng 1.6.44, Expat 2.6.3, libxslt 1.1.42, libwebp 1.4.0, Brotli 1.1.0, WOFF2 1.0.2, curl 8.10.1, Little CMS 2.16, OpenJPEG 2.5.2 and Fontconfig 2.15.0, and stay unchanged. ### 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. --> Windows 11, WinLibs GCC 15.2.0 (UCRT, POSIX, SEH). Built `libSceNKWebKitRequirements` and the patched `libSceNKWebKitRequirements.prx` on `main` and on this branch; the patched export table holds the same 165 NIDs as on `main`. `ctest -R public_headers`: 63 of the 64 `public_headers_compile_*` batches passed; on this loaded machine the `public_headers` audit (81 s) and batch 20 (35 s) exceeded their 90 s and 30 s CTest limits, and both passed when run directly with the CTest command lines (393 libraries, 24658 exports verified; 13 units). `tools/check_conventions.py --base origin/main` passes. No title tested. ### 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) - [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 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!13745
No description provided.