feat(libSceLibcInternal): export sys_siglist and sys_nsig #4469

Merged
arcwiser merged 2 commits from upstream-pr/4469 into main 2026-10-14 01:45:41 +00:00
arcwiser commented 2026-10-12 12:46:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by arcwiser on 2026-10-12T12:46:23Z.


What

Export the FreeBSD 11.4 sys_siglist table and sys_nsig count from libSceLibcInternal. The table contains the 32 descriptions from signal 0 through SIGUSR2, matching the ABI imported by PS5CEMU-HAR.

Add a guest regression test that reads both data exports through their NIDs and verifies representative entries and the count.

This carries screamm's signal-list commit from issue #4463 with authorship preserved. A follow-up documentation-only commit places the technical-debt entry beside the existing signal handling entries to avoid an unrelated open-PR conflict.

Addresses the sys_siglist and sys_nsig part of #4463.

Tested

  • Windows 11 build 26200, WinLibs MinGW-w64 GCC 15.2.0 r7, Release, BUILD_TESTING=ON
  • Built guest_signal_list_tests and its 80-step dependency target successfully
  • ctest --test-dir build -R '^guest_signal_list$' --output-on-failure (3/3 passed)
  • python tools/check_conventions.py --base origin/main
  • git diff --check origin/main
  • python tools/check_test_registration.py build (706 executables, none unregistered)
  • Project overlap checker: no overlap with open pull requests
  • Original author additionally reported 607/607 non-GPU full tests on Windows; not rerun in this carry checkout

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; no unimplemented path added
  • No notes, investigation .md files or images added to the repository
  • No third-party code added
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none (PPSA99360 imports these objects, but the stop is predicted rather than runtime-observed)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4829611355 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4469). Originally posted by [arcwiser](https://github.com/arcwiser) on 2026-10-12T12:46:23Z. --- ### What Export the FreeBSD 11.4 `sys_siglist` table and `sys_nsig` count from `libSceLibcInternal`. The table contains the 32 descriptions from signal 0 through `SIGUSR2`, matching the ABI imported by PS5CEMU-HAR. Add a guest regression test that reads both data exports through their NIDs and verifies representative entries and the count. This carries screamm's signal-list commit from issue #4463 with authorship preserved. A follow-up documentation-only commit places the technical-debt entry beside the existing signal handling entries to avoid an unrelated open-PR conflict. Addresses the `sys_siglist` and `sys_nsig` part of #4463. ### Tested - Windows 11 build 26200, WinLibs MinGW-w64 GCC 15.2.0 r7, Release, `BUILD_TESTING=ON` - Built `guest_signal_list_tests` and its 80-step dependency target successfully - `ctest --test-dir build -R '^guest_signal_list$' --output-on-failure` (3/3 passed) - `python tools/check_conventions.py --base origin/main` - `git diff --check origin/main` - `python tools/check_test_registration.py build` (706 executables, none unregistered) - Project overlap checker: no overlap with open pull requests - Original author additionally reported 607/607 non-GPU full tests on Windows; not rerun in this carry checkout ### Checklist - [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 - [x] Unimplemented paths throw; no unimplemented path added - [x] No notes, investigation `.md` files or images added to the repository - [x] No third-party code added - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none (PPSA99360 imports these objects, but the stop is predicted rather than runtime-observed) - [x] AI-assisted: yes
LeandroLP23 commented 2026-10-12 14:19:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-12T14:19:07Z.


On the "predicted" note in the checklist: PS5CEMU-HAR (PPSA99360, catalog 3.5.0) does not stop on these two exports at load on Windows. Windows 11 (26300), WinLibs GCC 15.2.0, Release, relinked with --windows --trap-sdk-syscall-stubs:

  • main c6efe068a + #3787 + screamm's pthread_setaffinity_np commit 018524d52 alone, without sys_siglist/sys_nsig: unresolved ELF import HNnWdT43ues from libSceLibcInternal.prx (swscanf, #4467).
  • main f8dee0595 + #3787 + screamm's whole branch (018524d52 and 827a8c87, the commit this PR carries): the same swscanf stop.

So for this title Unblocks: none is accurate; the order is pthread_setaffinity_np → swscanf → __umodti3. The full chain is in https://github.com/boykopovar/AnyPS5/pull/4467#issuecomment-6125744655.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6126133743 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4469#issuecomment-6126133743). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-12T14:19:07Z. --- On the "predicted" note in the checklist: PS5CEMU-HAR (PPSA99360, catalog 3.5.0) does not stop on these two exports at load on Windows. Windows 11 (26300), WinLibs GCC 15.2.0, Release, relinked with `--windows --trap-sdk-syscall-stubs`: - `main` `c6efe068a` + #3787 + screamm's `pthread_setaffinity_np` commit `018524d52` alone, without `sys_siglist`/`sys_nsig`: `unresolved ELF import HNnWdT43ues from libSceLibcInternal.prx` (`swscanf`, #4467). - `main` `f8dee0595` + #3787 + screamm's whole branch (`018524d52` and `827a8c87`, the commit this PR carries): the same `swscanf` stop. So for this title `Unblocks: none` is accurate; the order is `pthread_setaffinity_np` → `swscanf` → `__umodti3`. The full chain is in https://github.com/boykopovar/AnyPS5/pull/4467#issuecomment-6125744655. AI-assisted: yes (Claude Code)
screamm commented 2026-10-13 10:55:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-13T10:55:48Z.


Windows validation with title evidence (Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, BUILD_TESTING=ON, full build including libs; base main d379bfd0 with #5025 applied for the title runs (without it current main cannot load libkernel_sys.prx on Windows, #4877)): 9732f433 merged onto d379bfd0 (trivial conflicts: the CMakeLists.txt source list now holds both Getopt.cpp and SignalList.cpp, the test block sits after guest_fminf, and the debt bullet moves to docs/dev/debt/libSceLibcInternal.md as the debt-file convention requires). Same lines as my 827a8c87. guest_signal_list 3/3; suite 688/689; conventions and git diff --check pass.

PS5CEMU-HAR (PPSA99360): alone it still stops earlier at 5KWrg7-ZqvE (#4514); on main + #4514 + #4467 without this PR it stops at FAIL: unresolved ELF import yCdGspbNHZ8 from libSceLibcInternal.prx (sys_siglist), so this PR is needed; with all three the title runs the whole minute at FPS: 59.93 (3483).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6143992125 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4469#issuecomment-6143992125). Originally posted by [screamm](https://github.com/screamm) on 2026-10-13T10:55:48Z. --- Windows validation with title evidence (Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, `BUILD_TESTING=ON`, full build including `libs`; base `main` `d379bfd0` with #5025 applied for the title runs (without it current `main` cannot load `libkernel_sys.prx` on Windows, #4877)): `9732f433` merged onto `d379bfd0` (trivial conflicts: the `CMakeLists.txt` source list now holds both `Getopt.cpp` and `SignalList.cpp`, the test block sits after `guest_fminf`, and the debt bullet moves to `docs/dev/debt/libSceLibcInternal.md` as the debt-file convention requires). Same lines as my `827a8c87`. `guest_signal_list` 3/3; suite 688/689; conventions and `git diff --check` pass. PS5CEMU-HAR (PPSA99360): alone it still stops earlier at `5KWrg7-ZqvE` (#4514); on `main` + #4514 + #4467 without this PR it stops at `FAIL: unresolved ELF import yCdGspbNHZ8 from libSceLibcInternal.prx` (sys_siglist), so this PR is needed; with all three the title runs the whole minute at `FPS: 59.93 (3483)`.
p3n1cillin commented 2026-10-13 14:38:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by p3n1cillin on 2026-10-13T14:38:36Z.


Title run with this PR: Windows 11, MinGW GCC 15.2.0 (WinLibs), Release, on main 3faa9cb40 merged with this PR and the other open PRs the catalog titles need; PS5CEMU-HAR (PPSA99360) from its catalog release, converted with --trap-sdk-syscall-stubs (it has a forbidden inline syscall otherwise), eboot.bin kept in app0.

  • With this PR, #4467 and #4514, tools/import_audit.py lists no absent import for PS5CEMU-HAR and it runs the whole 60 s with no exception.
  • This head conflicts with main in core/libs/prx/libSceLibcInternal/CMakeLists.txt (main added Getopt.cpp, Spawn.cpp and the guest_fminf test next to SignalList.cpp and guest_signal_list; keeping both sides builds) and in docs/dev/TechnicalDebt.md (now split into docs/dev/debt/<library>.md).

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6148069187 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4469#issuecomment-6148069187). Originally posted by [p3n1cillin](https://github.com/p3n1cillin) on 2026-10-13T14:38:36Z. --- Title run with this PR: Windows 11, MinGW GCC 15.2.0 (WinLibs), Release, on `main` `3faa9cb40` merged with this PR and the other open PRs the catalog titles need; PS5CEMU-HAR (PPSA99360) from its catalog release, converted with `--trap-sdk-syscall-stubs` (it has a forbidden inline syscall otherwise), `eboot.bin` kept in `app0`. - With this PR, #4467 and #4514, `tools/import_audit.py` lists no absent import for PS5CEMU-HAR and it runs the whole 60 s with no exception. - This head conflicts with `main` in `core/libs/prx/libSceLibcInternal/CMakeLists.txt` (`main` added `Getopt.cpp`, `Spawn.cpp` and the `guest_fminf` test next to `SignalList.cpp` and `guest_signal_list`; keeping both sides builds) and in `docs/dev/TechnicalDebt.md` (now split into `docs/dev/debt/<library>.md`). AI-assisted (Claude Code).
oneandonlydean commented 2026-10-14 01:20:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T01:20:15Z.


Rebased onto main to resolve the conflicts in core/libs/prx/libSceLibcInternal/CMakeLists.txt after #4592 and in docs/dev/TechnicalDebt.md after #4411 (the entry is now in docs/dev/debt/libSceLibcInternal.md); no other change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6158736181 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4469#issuecomment-6158736181). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T01:20:15Z. --- Rebased onto main to resolve the conflicts in `core/libs/prx/libSceLibcInternal/CMakeLists.txt` after #4592 and in `docs/dev/TechnicalDebt.md` after #4411 (the entry is now in `docs/dev/debt/libSceLibcInternal.md`); no other change.
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!4469
No description provided.