feat(libSceLibcInternal): declare 149 PS5 3.20 round three exports #11750

Merged
oneandonlydean merged 7 commits from upstream-pr/11750 into main 2026-11-02 07:54:43 +00:00
oneandonlydean commented 2026-10-27 06:54:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-27T06:54:05Z.


What

Based on #9528 by @xdCloudy (closed by the author on 25 Oct).

Declares 149 libSceLibcInternal exports from the PS5 3.20 export inventory as import-resolution stubs. Each stub takes no parameters and throws through NotImplemented_nid_no_patch, and its debt entry says that signature and behavior are unverified. 1 of the original 150 is dropped: XaSxLBnqcWE (std::collate<char>::transform), which open #11793 adds to libc. main defines none of the other NIDs.

xdCloudy's commits are kept. On top of them this PR merges current main and removes the exports main already has, together with their debt entries. Existing debt entries are left as they are; the imports are appended after them.

Tested

  • Linux, Release build of head 9caee830ad (merged with main ea048ce2c3): full ninja and ninja libs build rc 0; ctest of the 18 tests that link libSceLibcInternal (guest_init_once, guest_statvfs, guest_fstatvfs, guest_fstatvfs_conversion, guest_fdopendir, guest_posix_spawn, guest_err, guest_getopt, guest_inet_address, guest_file_timestamps, guest_filesystem, guest_user_context, guest_user_context_exit, guest_path_*) plus public_headers and public_headers_compile_*: rc 0, 18 of 18 and 65 of 65 passed.
  • Every kept NID was checked against main by name and by NID with tools/nid_names.py, and against the open PRs that touch this library.
  • tools/check_conventions.py and core/libs/tests/test_public_headers.py --audit-only ran on the head; the stubs end in _nid_no_patch, which the audit exempts.
  • Not tested: Windows and macOS (left to CI). The stubs only resolve imports; no title was run.

Checklist

  • Based on current main; no other open PR implements the same functions (the one export that #11793 implements in libc is dropped here)
  • 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 (none added)
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none added)
  • 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:5029875803 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11750). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-27T06:54:05Z. --- ### What Based on #9528 by @xdCloudy (closed by the author on 25 Oct). Declares 149 libSceLibcInternal exports from the PS5 3.20 export inventory as import-resolution stubs. Each stub takes no parameters and throws through `NotImplemented_nid_no_patch`, and its debt entry says that signature and behavior are unverified. 1 of the original 150 is dropped: `XaSxLBnqcWE` (`std::collate<char>::transform`), which open #11793 adds to libc. `main` defines none of the other NIDs. xdCloudy's commits are kept. On top of them this PR merges current `main` and removes the exports `main` already has, together with their debt entries. Existing debt entries are left as they are; the imports are appended after them. ### Tested - Linux, Release build of head `9caee830ad` (merged with `main` ea048ce2c3): full `ninja` and `ninja libs` build rc 0; `ctest` of the 18 tests that link libSceLibcInternal (`guest_init_once`, `guest_statvfs`, `guest_fstatvfs`, `guest_fstatvfs_conversion`, `guest_fdopendir`, `guest_posix_spawn`, `guest_err`, `guest_getopt`, `guest_inet_address`, `guest_file_timestamps`, `guest_filesystem`, `guest_user_context`, `guest_user_context_exit`, `guest_path_*`) plus `public_headers` and `public_headers_compile_*`: rc 0, 18 of 18 and 65 of 65 passed. - Every kept NID was checked against `main` by name and by NID with `tools/nid_names.py`, and against the open PRs that touch this library. - `tools/check_conventions.py` and `core/libs/tests/test_public_headers.py --audit-only` ran on the head; the stubs end in `_nid_no_patch`, which the audit exempts. - Not tested: Windows and macOS (left to CI). The stubs only resolve imports; no title was run. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions (the one export that #11793 implements in libc is dropped here) - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file (none added) - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source (none added) - [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
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!11750
No description provided.