libkernel_sys: pathconf is absent, first stop of Porpoise on main; fix branch ready #3502
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-11T12:00:24Z.
libkernel_sys does not export
pathconf(NIDoc98+zOImus). On currentmain0f863c10Porpoise (PPSA99764) stops on it as its first stop (fresh Windows relink,--windows --registry unused-filter=0):Fix branch ready:
screamm:feat/libkernel-pathconf(d93d0e58, one commit onmain0f863c10). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is. No PR exists for it (Amoenus mentioned a local placeholder in #1578 that was never pushed).std::int64_t pathconf(const char* path, int name)inlibkernel_sys/Export.cppnext tolink/readlink, following FreeBSD 11.0kern_pathconf/namei(671fb7df): the path is resolved first through the guest resolver, links followed, nullEFAULT, empty or missingENOENT, 1024 bytes or more and a component over 255 bytesENAMETOOLONG(the latter only when the parent exists, as FreeBSD orders it). Values are FreeBSD 11 UFSufs_pathconfconstants (LINK_MAX32767,NAME_MAX255,PATH_MAX1024,PIPE_BUF512,CHOWN_RESTRICTED1,NO_TRUNC1,FILESIZEBITS64,SYMLINK_MAX1024,PRIO_IO0,SYNC_IO0,REC_MAX_XFER_SIZE-1 without errno). Names whose value depends on the mount, kernel options or page size (ALLOC_SIZE_MIN,REC_INCR/MIN_XFER_SIZE,MIN_HOLE_SIZE, the ACL and MAC names,REC_XFER_ALIGN) and the four where UFS andvop_stdpathconfdisagree (MAX_CANON,MAX_INPUT,VDISABLE,ASYNC_IO) throw; every other name isEINVAL. TechnicalDebt records that the console's filesystem values (PFS on/app0) are unverified.guest_kernel_sysgains every implemented name on a file and a directory,EINVALnames, the thirteen throwing names,ENOENT/EFAULT/ENAMETOOLONGcases.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs:guest_kernel_sys3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"533/534, the one failure beingwindows_exceptions(#3411); withmain'sExport.cppthe extended test fails;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux, no title run.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T13:08:53Z.
Independent verification on Linux: CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON.d93d0e588onto currentmain: one conflict inlibkernel_sys/Export.cpp(main's newer Windows privilege constant kept alongside this branch's pathconf constants).tools/check_conventions.py --base origin/mainandgit diff --checkpass.The rebased branch is available at
blawesom:verify/3502for anyone carrying — the commit is otherwise unchanged.Imported from boykopovar/AnyPS5. Originally posted by nicolasfalesy on 2026-10-11T14:14:11Z.
Carried in #3611 with all local and CI intake/conventions checks passing.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-12T21:01:48Z.
Fixed by #3611:
pathconf(oc98+zOImus) is now exported from libkernel_sys; whether Porpoise boots past it is not verified here.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T02:07:42Z.
Closing: fixed by #3611;
pathconfis exported from libkernel_sys. Open a new issue for Porpoise's next stop.