feat(libkernel_sys): implement POSIX file operations #12687
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12687"
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 xdCloudy on 2026-10-29T02:18:16Z.
What
Implement the
pwrite,futimesatandsymlinkatexports inlibkernel_sys.pwriteforwards to libkernel's existing positioned-write implementation.futimesatresolves paths with the supplied directory descriptor and uses libkernel's native timestamp implementation.symlinkatshares the existingsymlinkimplementation and path resolution.Firmware 13.60 evidence:
pwriteatlibkernel_sysVA0x13630passes the four POSIX arguments to syscall 476. FreeBSD 11.4 syscall definitions support thefutimesatandsymlinkatprototypes. The currentsymlinklimitations remain: absolute targets and targets containing..throw as unimplemented. Directory-relative host paths also do not model guest aliases or constrain..to the guest root. Console results remain unverified; details are recorded indocs/dev/debt/libkernel_sys.md.Tested
Windows with WinLibs GCC 15.2: configured the full project, built
guest_kernel_sys_tests, and passedctest --test-dir build-win -R '^guest_kernel_sys$' --output-on-failure. The test covers all three exports and error cases.python3 tools/check_conventions.py --base origin/mainpassed.python3 tools/pr_overlap.py --branch feat/libkernel-sys-posix-file-opsscanned 1,410 open PRs and found no overlap. Linux was not tested.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)Pull request closed