feat(libkernel_sys): implement pathconf #4503
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4503"
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-12T13:45:10Z.
What
Fixes #3502.
Carries screamm@d93d0e588 rebased onto
main.libkernel_sysdoes not exportpathconf(NIDoc98+zOImus), which causes Porpoise 2.7 (PPSA99764) to fail to load onmain.Implements
pathconffollowing FreeBSD 11kern_pathconfand UFSufs_pathconfconstants. Links are followed, path >= 1024 bytes or component > 255 fails withENAMETOOLONG, missing path withENOENT. Unsupported/kernel-dependent options throw or fail withEINVAL, and technical debt is documented inTechnicalDebt.md.Tested
core/libs/tests/GuestKernelSys.cppchecking valid pathconf queries, error codes, and name limits.python tools/check_conventions.py --base origin/mainpassed cleanly with 0 errors.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 fma-rc on 2026-10-12T13:46:34Z.
@jagrat04 Please use the PR template here and in other PRs.
Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-12T13:51:55Z.
@fma-rc ok, sorry forgot
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T13:59:28Z.
Progress report (
682ef0c→dad7f9e)📈 System libraries: 86.37% (+0.01%, +1 implemented functions)
✅ 1 implemented
pathconf_nid_postfixImported from boykopovar/AnyPS5. Originally posted by Nixitov on 2026-10-12T16:46:50Z.
Verified on Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release: the branch builds (patched
libkernel_sys.prx).mainit stops atFAIL: unresolved ELF import oc98+zOImus (pathconf) from libkernel_sys.prx; with this change it passespathconfand stops at6n23e0gIJ9s(nearbyintl).mainit stops atoc98+zOImus(pathconf); with this change it stops atAKknh8Cx-V8(chroot).Note: #3611 implements
pathconftoo and isCONFLICTING; this one is the clean branch.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-12T23:02:34Z.
Closing as pathconf has already been merged into main via #3611.
Pull request closed