feat(libkernel): export pause, sigwait and sigwaitinfo #3580

Merged
Amr-Youssef merged 1 commit from upstream-pr/3580 into main 2026-10-11 22:11:15 +00:00
Amr-Youssef commented 2026-10-11 13:44:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amr-Youssef on 2026-10-11T13:44:09Z.


What

Carry of the fix branch ready in #3552: export pause, sigwait and sigwaitinfo from libkernel as throwing stubs, following the merged sigtimedwait pattern. Commit kept as-is from screamm:feat/libkernel-sigwait.

Tested

Not run here: no CMake/MinGW toolchain in this environment, so no full build or title run. Local checks passed: git diff --check, tools/check_conventions.py --base origin/main (all passed), tools/pr_overlap.py (no same exports; only a TechnicalDebt proximity note with #3493). The carried commit was tested by its author on Windows 11 Pro, WinLibs MinGW-w64 GCC 15.2.0, Release, BUILD_TESTING=ON with full libs build: guest_sigtimedwait and guest_signals 3/3.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4819498846 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3580). Originally posted by [Amr-Youssef](https://github.com/Amr-Youssef) on 2026-10-11T13:44:09Z. --- ### What Carry of the fix branch ready in #3552: export `pause`, `sigwait` and `sigwaitinfo` from libkernel as throwing stubs, following the merged `sigtimedwait` pattern. Commit kept as-is from `screamm:feat/libkernel-sigwait`. ### Tested Not run here: no CMake/MinGW toolchain in this environment, so no full build or title run. Local checks passed: `git diff --check`, `tools/check_conventions.py --base origin/main` (all passed), `tools/pr_overlap.py` (no same exports; only a TechnicalDebt proximity note with #3493). The carried commit was tested by its author on Windows 11 Pro, WinLibs MinGW-w64 GCC 15.2.0, Release, `BUILD_TESTING=ON` with full `libs` build: `guest_sigtimedwait` and `guest_signals` 3/3. ### 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes
copilot-pull-request-reviewer[bot] commented 2026-10-11 13:44:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-11T13:44:15Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5483526727 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3580#pullrequestreview-5483526727). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-10-11T13:44:15Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
github-actions[bot] commented 2026-10-11 13:46:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T13:46:27Z.


Progress report (4a49ed0 → 059e131)

📉 System libraries: 85.76% (-0.08%, +3 declared functions)

🆕 3 declared as stubs
Library Name
libkernel pause_nid_postfix
libkernel sigwait_nid_postfix
libkernel sigwaitinfo_nid_postfix
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109683057 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3580#issuecomment-6109683057). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T13:46:27Z. --- <!-- progress-report --> ### Progress report (4a49ed0 → 059e131) 📉 **System libraries**: 85.76% (-0.08%, +3 declared functions) <details> <summary>🆕 3 declared as stubs</summary> | Library | Name | | - | - | | libkernel | `pause_nid_postfix` | | libkernel | `sigwait_nid_postfix` | | libkernel | `sigwaitinfo_nid_postfix` | </details>
adriadam10 commented 2026-10-11 21:54:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:54:51Z.


Checked pause, sigwait and sigwaitinfo against the sigtimedwait pattern: all three throw with the documented messages, info/received are left untouched, and the pending-signal case (blocked SIGINT) still reaches the throw. guest_sigtimedwait passes with the full libkernel scope (112 tests green) and fails to link without the change; SIG_BLOCK/SIG_SETMASK values match FreeBSD. The TechnicalDebt entry is in place. Merging once CI is green.

Rebased onto current main (only conflict: adjacent docs/dev/TechnicalDebt.md line from #3493, both kept); no logic changes, guest_sigtimedwait still passes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114226196 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3580#issuecomment-6114226196). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T21:54:51Z. --- Checked `pause`, `sigwait` and `sigwaitinfo` against the `sigtimedwait` pattern: all three throw with the documented messages, `info`/`received` are left untouched, and the pending-signal case (blocked `SIGINT`) still reaches the throw. `guest_sigtimedwait` passes with the full libkernel scope (112 tests green) and fails to link without the change; `SIG_BLOCK`/`SIG_SETMASK` values match FreeBSD. The TechnicalDebt entry is in place. Merging once CI is green. Rebased onto current `main` (only conflict: adjacent `docs/dev/TechnicalDebt.md` line from #3493, both kept); no logic changes, `guest_sigtimedwait` still passes.
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!3580
No description provided.