feat(libs): add underscore Ult, internal Fiber and POSIX rwlockattr exports #3387

Closed
13hourstilliland wants to merge 1 commit from upstream-pr/3387 into main
13hourstilliland commented 2026-10-11 09:40:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by 13hourstilliland on 2026-10-11T09:40:10Z.


What

Declares 12 exports that KytyPS5 binds for PS5 titles and that no AnyPS5 library declared:

  • libSceUlt: _sceUltMutexOptParamInitialize, _sceUltMutexCreate, _sceUltWaitingQueueResourcePoolCreate, _sceUltQueueDataResourcePoolCreate, _sceUltQueueCreate, _sceUltSemaphoreCreate forward to the exports without the underscore, as the existing _sceUltUlthread* exports do.
  • libSceFiber: _sceFiberInitializeWithInternalOptionImpl (nonzero flags throw) and _sceFiberGetThreadFramePointerAddress forward to the existing functions. _sceFiberAttachContextAndRun and _sceFiberAttachContextAndSwitch throw; their signatures are unknown.
  • libkernel: pthread_rwlockattr_init / pthread_rwlockattr_destroy over the existing SCE rwlockattr functions.

Assumptions are recorded in TechnicalDebt. _umtx_op is left to #1482.

Tested

Linux (GCC): guest_ult_*, fiber_* and guest_pthread_rwlock pass; all 12 symbols are present in the built prx files; check_conventions.py passes. Not tested with a title.

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:4818117152 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3387). Originally posted by [13hourstilliland](https://github.com/13hourstilliland) on 2026-10-11T09:40:10Z. --- ### What Declares 12 exports that [KytyPS5](https://github.com/KytyPS5/KytyPS5) binds for PS5 titles and that no AnyPS5 library declared: - libSceUlt: `_sceUltMutexOptParamInitialize`, `_sceUltMutexCreate`, `_sceUltWaitingQueueResourcePoolCreate`, `_sceUltQueueDataResourcePoolCreate`, `_sceUltQueueCreate`, `_sceUltSemaphoreCreate` forward to the exports without the underscore, as the existing `_sceUltUlthread*` exports do. - libSceFiber: `_sceFiberInitializeWithInternalOptionImpl` (nonzero flags throw) and `_sceFiberGetThreadFramePointerAddress` forward to the existing functions. `_sceFiberAttachContextAndRun` and `_sceFiberAttachContextAndSwitch` throw; their signatures are unknown. - libkernel: `pthread_rwlockattr_init` / `pthread_rwlockattr_destroy` over the existing SCE rwlockattr functions. Assumptions are recorded in TechnicalDebt. `_umtx_op` is left to #1482. ### Tested Linux (GCC): `guest_ult_*`, `fiber_*` and `guest_pthread_rwlock` pass; all 12 symbols are present in the built prx files; `check_conventions.py` passes. Not tested with a title. ### 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
github-actions[bot] commented 2026-10-11 09:40:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T09:40:21Z.


Thank you for your contribution! Authors with no pull requests merged into main can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107677098 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3387#issuecomment-6107677098). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T09:40:21Z. --- Thank you for your contribution! Authors with no pull requests merged into `main` can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.

Pull request closed

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!3387
No description provided.