Repository navigation
feat(libkernel): implement pthread_condattr_setpshared - #7225
Merged
oneandonlydean merged 1 commit intoOct 17, 2026
Merged
oneandonlydean merged 1 commit into
oneandonlydean merged 1 commit into
Conversation
PSFlyCast (PPSA99247) imports pthread_condattr_setpshared (3BpP850hBT4) from libkernel and fails to load without it: "./app.elf: symbol lookup error: ./app.elf: undefined symbol: 3BpP850hBT4". The attribute stores PTHREAD_PROCESS_PRIVATE (0) or PTHREAD_PROCESS_SHARED (1); a null or uninitialized attribute and any other value return EINVAL without changing it, following FreeBSD 11 libthr thr_condattr.c and pthread_mutexattr_setpshared here. Sharing across processes is not modeled, as for mutexes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sovthwyu4H63RMbRVha2Sy
|
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.
|
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Implements
pthread_condattr_setpshared(3BpP850hBT4) in libkernel. PSFlyCast (PPSA99247) imports it and fails to load on currentmain(66702f1):The attribute stores
PTHREAD_PROCESS_PRIVATE(0) orPTHREAD_PROCESS_SHARED(1). A null or uninitialized attribute and any other value returnEINVALwithout changing it, following FreeBSD 11 libthrthr_condattr.cand this repo'spthread_mutexattr_setpshared. Sharing across processes is not modeled, as for mutexes (technical debt entry added). #3930 had this function but was closed by its author for lack of a title log; this PR has one.Tested
Arch Linux, Intel Core Ultra X7 358H + Intel Arc (Mesa ANV), on
main66702f1.guest_pthread_condattrpasses, with new cases for null/uninitialized attributes, 0 and 1 accepted, -1 and 2 rejected.--to-intel: onmainit stops at load with the line above; with this PR it runs 40 s and shows its "Your library is empty" screen.tools/check_conventions.py --base upstream/mainpasses.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)🤖 Generated with Claude Code
https://claude.ai/code/session_01Sovthwyu4H63RMbRVha2Sy