Repository navigation
feat(libkernel): implement pthread_condattr_getclock - #8010
Conversation
|
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.
|
|
The overlap scan flags the |
|
@MarcZX10 Recorded the proposed landing order in this PR's description and checklist: #9500 first, then #8010 ( |
41e1024 to
f5fa61d
Compare
f5fa61d to
fd54e49
Compare
|
The post-#9500 refresh is pushed at Windows verification on this head: all patched libraries rebuilt; all five focused runtime tests passed; registration (1396 executables), public-header audit (368 libraries / 12235 exports), conventions including PR metadata, and whitespace checks passed. The description includes the overlap scan's incomplete comparisons and the exact tested base. Please trigger the full upstream Linux/Windows Build workflow for PR 8010 and review the refreshed diff. A maintainer with write access can run: gh workflow run build.yml --repo boykopovar/AnyPS5 --ref main --field pr=8010This account has no upstream write permission to dispatch that workflow. Full CI remains pending. AI-assisted. |
|
Checked the NID, the signature and |
What
Add the missing libkernel
pthread_condattr_getclockexport (NIDcTDYxTUNPhM). A live initialized attribute reports its stored signed 32-bit clock ID without changing the attribute or guest errno. Declare the getter in the shared libkernel API header and use the shared libc declarations in its regression test.The signature and opaque handle follow the public PS5 payload SDK's pthread.h and _pthreadtypes.h; sys/_types.h supplies the 32-bit clock type. Valid-input behavior follows FreeBSD 11.4 libthr. This is public SDK/reference evidence; no PS5 hardware verification is claimed.
Null attribute pointers, null handles and null outputs call
NotImplemented_nid_no_patch; their console error/fault behavior remains unverified. Inaccessible non-null pointers and copied dangling handles are not validated, and concurrent mutation/destruction is not synchronized. These gaps remain indocs/dev/debt/libkernel.md.Getter regression coverage checks initialized defaults, both setters using clocks
{0, 1, 2, Monotonic}, independent attributes, output canaries, unchanged handles/errno, and refusal of null arguments and original handles cleared by both destroy functions. Main's rejected-clock cases and SCE/POSIX pshared checks are preserved. After each rejected SCE and POSIX setter, the getter must report the previously storedMonotonicclock.Dependency #9500 is merged. This branch is rebased onto main with its
{0, 1, 2, 4}setter allowlist and rejection tests; the setter implementation is unchanged by this PR.Depends on: #9500records the completed landing order.Related prior work: closed, unmerged #3930 proposed this getter alongside additional SCE/pshared exports. This PR is limited to the POSIX getter.
Tested
Verified on 2026-10-26: Windows 11 Pro 10.0.26300, supported WinLibs MinGW-w64 GCC 15.2.0 r7 (
x86_64-ucrt-posix-seh), Ninja, Release,BUILD_TESTING=ON,ANYPS5_RELINKER_ONLY=OFF. Headfd54e493dd4873e5d63bddbb614b6613637027ebis rebased onto main518d36eaec0ac37870a17b465bedb5551be91b42, which includes #9500.patched_libraries,guest_cond_timedwait,guest_pthread_condattr,guest_cond_recursive_mutex,guest_cond_unowned_mutex.427dd36164bbc1e7960c85c8e84dca75017c88f8. Its duplicate getter finding is this PR's previous head. Comparisons involving 35 other PRs' shared debt/header files could not complete because those PRs conflict with main; no clean-overlap claim is made.The current refresh was not tested on Linux, on a PS5, or with a title; the full test suite was not run. No performance or game-unblocking claim is made. Full upstream Linux/Windows CI requires a maintainer-triggered Build workflow for PR 8010. The post-#9500 rebase and rejected-setter preservation checks are complete.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)