feat(libkernel): add process and memory lock exports #3650
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3650"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T14:44:51Z.
What
Carries the three commits from David's ready branch for issue #3628, preserving his authorship. Exports
pthread_atfork,mlockall, andgetdtablesizeso XPSemu and VLC can resolve their imports. Their next startup stops are predicted from registry order and have not been observed in a title run.pthread_atforkrecords prepare, parent, and child handlers in registration order and returnsENOMEMon allocation failure. Handlers are not run becauseforkthrows andvforkis absent; the limitation is documented in TechnicalDebt.mlockallreturnsEINVALfor invalid flags and throws for valid requests because locking the whole host process or all future guest and host mappings is not implemented.getdtablesizethrows because the console'sRLIMIT_NOFILEsoft limit andkern.maxfilesperprocare unknown. Returning a guessed limit would cause callers'closefromloops to close a guessed descriptor range.Semantics are based on FreeBSD 11.4 (
8c639945); the issue body records the source references and title call sites.Tested
guest_pthread_atfork_tests,guest_mlock_tests,guest_getrlimit_tests); CTest passed all three.python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/main...HEADpassed.Checklist
main; no other open PR implements these functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T14:45:14Z.
Progress report (
a11c8f7→028c1b4)📈 System libraries: 85.82% (+0.01%, +3 implemented functions)
✅ 3 implemented
getdtablesize_nid_postfixmlockall_nid_postfixpthread_atfork_nid_postfix⚪ 1 behaviourally empty (constant return or throw)
getdtablesize_nid_postfixImported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T15:19:43Z.
Independent pre-review on Linux (full CI runs only happen on manual trigger, so recording one): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON.tools/check_conventions.py --base origin/mainpasses.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:58:26Z.
Closing:
getdtablesizealways throws,mlockallthrows for every valid flag and thepthread_atforkhandlers are never run, so no title gets further with this. Reopen when a title stops at one of them on main and the call it makes can be answered.Pull request closed