Repository navigation
Conversation
…sed and replaced ids
…elative name An absolute host temp path is not mapped by the Linux guest resolver. Found by xXPBSXx on boykopovar#9097.
…lative name An absolute host temp path is not mapped by the Linux guest resolver. Found by xXPBSXx on boykopovar#9097.
The PS5 3.20 export lists have ksem_* in libkernel as well as libkernel_sys, and on Windows a libkernel import never reaches libkernel_sys, so titles importing them from libkernel did not find them. Following pipe1os's review on boykopovar#9284, also: ENOSPC from ksem_init when no descriptor is left, the SEM_MAX limit of 30 with ENOSPC, and dup/dup2 from a ksem id throwing as for a kqueue.
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Exports with a name or library/NID already present in
|
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
Builds on boykopovar#9297 and implements
kmq_notifyregistration inlibkernel_sys/Mqueue.cpp, following FreeBSD 11sys/kern/uipc_mqueue.c(kern_kmq_notify,mqueue_send_notification). Until boykopovar#9297 (and boykopovar#9284 under it) merges, this PR's diff also shows their commits. This PR's own change is the last three commits.sigev_notifyother thanSIGEV_NONE,SIGEV_SIGNALorSIGEV_THREAD_IDgivesEINVAL, and for the two signal forms asigev_signooutside 1..128 givesEINVAL.EBADF, for a NULLsigeventas well.sigevent: removes only the calling descriptor's own registration; from another descriptor it does nothing and returns 0.EBUSY, even from the same descriptor.mqueue_senddoes.SIGEV_NONEis fully implemented.SIGEV_SIGNALandSIGEV_THREAD_IDregistrations throw, because delivering a guest signal with itssigev_valueis not modelled. A debt line records that.Tested
Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release. This is a CPU-side export, so no GPU is involved.
guest_kernel_sys_mqueuegainsNotify():EINVALkind, includingEINVALwinning over a bad descriptor;EBADF, andEBUSYfrom both descriptors of the queue;kmq_notify_nid_postfix not implemented. On this branch it passes, 3 of 3 runs.guest_kernel_sys_ksemstill passes, andtools/check_conventions.pypasses.tools/pr_overlap.pycrashes on this machine's partial clone, so it was replaced by a check against an index of every open PR's diff plusgit merge-tree. This branch merges cleanly withmainand with feat(libkernel_sys): identify the initial pthread boykopovar/AnyPS5#9160, feat(libkernel_sys): implement uuidgen boykopovar/AnyPS5#9195, feat(libkernel_sys): implement wait3 and wait4 boykopovar/AnyPS5#9162, feat(libkernel): implement four pthread_attr forms boykopovar/AnyPS5#9156, feat(libkernel): implement getlogin boykopovar/AnyPS5#9171, feat(libkernel): implement pselect over select boykopovar/AnyPS5#9273, feat(libkernel): implement tcgetsid boykopovar/AnyPS5#9242, feat(libkernel_sys): implement the scePthread scope, atfork and setconcurrency forms boykopovar/AnyPS5#9141, feat(libkernel_sys): implement chown, lchown, fchownat and linkat boykopovar/AnyPS5#9103 and feat(libkernel_sys): implement the scePthreadBarrier, cpuclockid, concurrency and msync forms boykopovar/AnyPS5#8987.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)