feat(libkernel): implement getsid for calling process #4170
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4170"
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 jagrat04 on 2026-10-12T00:33:46Z.
What
Implement
getsidinlibkernel:pidis0or matchesgetpid(), return the caller's process ID (as the single guest process acts as its own session leader).-1and seterrnotoESRCH(3) following standard FreeBSD semantics.core/libs/tests/GuestParentProcess.cpp.docs/dev/TechnicalDebt.md.Tested
python tools/check_conventions.py --base origin/mainpassed with 0 violations.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T00:34:09Z.
Progress report (
7a84b22→03ec272)📈 System libraries: 86.5% (+0.03%, +1 implemented functions)
✅ 1 implemented
getsid_nid_postfixImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T01:17:54Z.
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.
main)docs/dev/TechnicalDebt.mdL659-662Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T08:28:39Z.
Closing, as with #4168:
getsidthrows on main because sessions aren't modelled, PPSA74126 imports it without calling it, and returning the pid assumes the process leads its own session. Reopen when a title calls it.Pull request closed