feat(libSceLibcInternal): declare 140 PS5 3.20 pending exports #11751

Merged
oneandonlydean merged 10 commits from upstream-pr/11751 into main 2026-11-04 03:58:20 +00:00
oneandonlydean commented 2026-10-27 06:54:07 +00:00 (Migrated from github.com)

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


What

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

Declares 140 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. 10 of the original 150 are dropped: 2 because main now defines their NIDs (OCbJ96N1utA, YLEc5sPn1Rg), and 8 because open PRs add them to libc: oK6C1fys3dU (_Wctob, #11734) and 4nRn+exUJAM (_WStod), GUuiOcxL-r0 (_WStof), w3gRFGRjpZ4 (_WStold), OmDPJeJXkBM (_WStoll), 9iCP-hTL5z8 (_WStoull), all #11733, and 43PYQ2fMT8k (_WStopfx) and yhbF6MbVuYc (_Stopfx) in #9772.

xdCloudy's commits are kept. On top of them this PR merges current main and removes the exports main or an open libc PR 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 b420417edd (merged with main 81267b2204): 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 eight exports that #11733, #11734 and #9772 implement in libc are 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:5029876150 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11751). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-27T06:54:07Z. --- ### What Based on #9511 by @xdCloudy (closed by the author on 25 Oct). Declares 140 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. 10 of the original 150 are dropped: 2 because `main` now defines their NIDs (`OCbJ96N1utA`, `YLEc5sPn1Rg`), and 8 because open PRs add them to libc: `oK6C1fys3dU` (`_Wctob`, #11734) and `4nRn+exUJAM` (`_WStod`), `GUuiOcxL-r0` (`_WStof`), `w3gRFGRjpZ4` (`_WStold`), `OmDPJeJXkBM` (`_WStoll`), `9iCP-hTL5z8` (`_WStoull`), all #11733, and `43PYQ2fMT8k` (`_WStopfx`) and `yhbF6MbVuYc` (`_Stopfx`) in #9772. xdCloudy's commits are kept. On top of them this PR merges current `main` and removes the exports `main` or an open libc PR 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 `b420417edd` (merged with `main` 81267b2204): 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 eight exports that #11733, #11734 and #9772 implement in libc are 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!11751
No description provided.