feat(libkernel_sys): implement fchown #5562
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5562"
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 Nixitov on 2026-10-13T23:57:31Z.
What
Implement
fchownin libkernel_sys. Morrowind (mshivam019/morrowind-ps5) stops at it on currentmain:Ownership is not modelled: the guest's own owner and group (0) and the unchanged value (-1) are accepted, a descriptor that is not open fails with
EBADF, and any other owner or group throws, naming it. The descriptor is read withfstat, ignoring the CRT's invalid-parameter handler on Windows the wayDescriptorControldoes. Recorded indocs/dev/debt/libkernel_sys.md.Tested
Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release.
guest_kernel_sysis extended:fchownaccepts(0, 0)and(-1, -1), fails an invalid descriptor withEBADF, and throws for owner 1 or group 1; it passes.mshivam019/morrowind-ps5, v1.0.1 windows asset),eboot.binunwrapped and relinked with the built relinker--windows: on currentmainit stops atruyD9QkP8dI(fchown); with this change it resolves every start-up import and transfers control to the ELF entry point.python tools/check_conventions.py --base origin/mainpasses.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)mshivam019/morrowind-ps5)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T23:58:12Z.
Progress report (
52d134c→099b8fc)📉 System libraries: 88.17% (-0.02%, +1 declared functions)
🆕 1 declared as stubs
fchown_nid_postfixImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:25:19Z.
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.
Pull request closed