feat(libc): _Cnd_init_with_default_name_override (PPSA34015) #6088

Merged
notaxeltv merged 1 commit from upstream-pr/6088 into main 2026-10-18 15:22:56 +00:00
notaxeltv commented 2026-10-14 21:35:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by notaxeltv on 2026-10-14T21:35:45Z.


What

tools/import_audit.py lists absent libc.prx import jBOZAv6CwkM (_Cnd_init_with_default_name_override) for PPSA34015 and PPSA03541. Forwards to _Cnd_init and ignores the debug name, matching Ampr _Cnd_init_with_name.

Tested

Windows 10, WinLibs GCC 15.2.0, guest_libc_cnd_init_default_name passes. tools/check_conventions.py --base upstream/main passes.
PPSA03541 (UFC 5): without this export, app.exe fails at load with FAIL: unresolved ELF import jBOZAv6CwkM from libc.prx / GetLastError: 127. With it, the title loads Engine.Render.Core2.PlatformPs5, creates Vulkan/swapchain, then hits the known Job0 null call (#3123).

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 under Silent stubs in their library's technical debt file
  • 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 (none)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: PPSA34015, PPSA03541 (absent libc import jBOZAv6CwkM)
  • GPUs tested: n/a
  • AI-assisted: yes

Made with Cursor

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4864867927 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6088). Originally posted by [notaxeltv](https://github.com/notaxeltv) on 2026-10-14T21:35:45Z. --- ### What `tools/import_audit.py` lists absent `libc.prx` import `jBOZAv6CwkM` (`_Cnd_init_with_default_name_override`) for PPSA34015 and PPSA03541. Forwards to `_Cnd_init` and ignores the debug name, matching Ampr `_Cnd_init_with_name`. ### Tested Windows 10, WinLibs GCC 15.2.0, `guest_libc_cnd_init_default_name` passes. `tools/check_conventions.py --base upstream/main` passes. PPSA03541 (UFC 5): without this export, `app.exe` fails at load with `FAIL: unresolved ELF import jBOZAv6CwkM from libc.prx` / `GetLastError: 127`. With it, the title loads `Engine.Render.Core2.PlatformPs5`, creates Vulkan/swapchain, then hits the known Job0 null call (#3123). ### 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 (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [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 (none) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: PPSA34015, PPSA03541 (absent libc import `jBOZAv6CwkM`) - [x] GPUs tested: n/a - [x] AI-assisted: yes Made with [Cursor](https://cursor.com)
github-actions[bot] commented 2026-10-14 21:36:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T21:36:20Z.


Progress report (3f0936a → e90616b)

📈 System libraries: 88.7% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libc _Cnd_init_with_default_name_override_nid_postfix
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6179031191 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6088#issuecomment-6179031191). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T21:36:20Z. --- <!-- progress-report --> ### Progress report (3f0936a → e90616b) 📈 **System libraries**: 88.7% (+0.01%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libc | `_Cnd_init_with_default_name_override_nid_postfix` | </details>
github-actions[bot] commented 2026-10-15 12:14:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:14:31Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1835 core/libs/prx/libc/src/Threads.cpp
PR 5021 core/libs/prx/libc/CMakeLists.txt
core/libs/prx/libc/src/Threads.cpp
PR 6044 core/libs/prx/libc/CMakeLists.txt
PR 6222 core/libs/prx/libc/CMakeLists.txt
core/libs/prx/libc/src/Threads.cpp
PR 6334 core/libs/prx/libc/CMakeLists.txt
PR 6879 core/libs/prx/libc/src/Threads.cpp
PR 7084 core/libs/prx/libc/CMakeLists.txt
PR 7201 core/libs/prx/libc/CMakeLists.txt
core/libs/prx/libc/src/Threads.cpp
PR 7447 core/libs/prx/libc/CMakeLists.txt
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191792263 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6088#issuecomment-6191792263). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:14:31Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1835](https://www.github.com/boykopovar/AnyPS5/pull/1835) | `core/libs/prx/libc/src/Threads.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libc/CMakeLists.txt`<br>`core/libs/prx/libc/src/Threads.cpp` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libc/CMakeLists.txt` | | [PR 6222](https://www.github.com/boykopovar/AnyPS5/pull/6222) | `core/libs/prx/libc/CMakeLists.txt`<br>`core/libs/prx/libc/src/Threads.cpp` | | [PR 6334](https://www.github.com/boykopovar/AnyPS5/pull/6334) | `core/libs/prx/libc/CMakeLists.txt` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/libs/prx/libc/src/Threads.cpp` | | [PR 7084](https://www.github.com/boykopovar/AnyPS5/pull/7084) | `core/libs/prx/libc/CMakeLists.txt` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libc/CMakeLists.txt`<br>`core/libs/prx/libc/src/Threads.cpp` | | [PR 7447](https://www.github.com/boykopovar/AnyPS5/pull/7447) | `core/libs/prx/libc/CMakeLists.txt` |
coltken95 commented 2026-10-15 21:24:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-15T21:24:25Z.


Tested on Linux x86-64 (Release build), with e90616b16 merged into main e16b2bcce:

  • With the PR: guest_libc_cnd_init_default_name passes.
  • With main's libc sources (keeping this PR's test and its CMake registration): the test doesn't link (undefined reference to '_Cnd_init_with_default_name_override_nid_postfix').

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6202592195 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6088#issuecomment-6202592195). Originally posted by [coltken95](https://github.com/coltken95) on 2026-10-15T21:24:25Z. --- Tested on Linux x86-64 (Release build), with e90616b16 merged into main e16b2bcce: - With the PR: `guest_libc_cnd_init_default_name` passes. - With main's libc sources (keeping this PR's test and its CMake registration): the test doesn't link (`undefined reference to '_Cnd_init_with_default_name_override_nid_postfix'`). AI-assisted: yes (Claude Code)
adriadam10 commented 2026-10-16 22:45:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T22:45:43Z.


Checked the NID (jBOZAv6CwkM), the forward to _Cnd_init (null handle still throws), the new test (fails to link without the change, passes with it) and the PR's ctest on Linux; merging once the full Build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6226109023 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6088#issuecomment-6226109023). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T22:45:43Z. --- Checked the NID (`jBOZAv6CwkM`), the forward to `_Cnd_init` (null handle still throws), the new test (fails to link without the change, passes with it) and the PR's ctest on Linux; merging once the full Build is green.
oneandonlydean commented 2026-10-18 15:23:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T15:23:29Z.


Merged while @adriadam10 is away: the review passed and full CI is green on this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6251634553 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6088#issuecomment-6251634553). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-18T15:23:29Z. --- Merged while @adriadam10 is away: the review passed and full CI is green on this head.
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!6088
No description provided.