fix(libkernel): allow changing O_APPEND with fcntl on Windows #4954
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4954"
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 MarcZX10 on 2026-10-13T06:12:44Z.
What
Carry the Windows
fcntl(F_SETFL)implementation in #4941. ChangingO_APPENDon a regular file now updates the CRT descriptors for all tracked aliases of the same open file, so the guest can set or clear append mode and observe it through duplicates. Standard descriptors retain the documented unsupported behavior.The three original commits and David's authorship are preserved; this branch rebases them onto current
main.Tested
guest_kernel_fcntl_tests;guest_kernel_fcntlpassed (1/1).DescriptorControl.cppandGuestKernelFcntl.cpppass-Wall -Wextra -Werror -fsyntax-onlywith_WIN32defined.guest_kernel_fcntlpassed 5/5, with additional descriptor probes and a 1026/1028 full suite. The two failures were reported to reproduce on the unchanged main baseline; these are the contributor's Windows runtime results, not a run on this Linux host.tools/check_test_registration.py, conventions, andgit diff --checkpass.Checklist
main; no other open PR implements the same behaviorImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T07:05:47Z.
Windows test of this PR.
Environment: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release,
BUILD_TESTING=ON,-j2,libusb-cmakefrom a local checkout. Built frommainea2bbefb2with this PR and six other open PRs (#4958, #4956, #4954, #4953, #4946, #4942, #4927) merged together; the merges had no conflict.Result: guest_kernel_fcntl (1 of 1) pass.
Not checked: whether the test fails without the change in the library code; the PR was not tested alone, only in the combined merge (the tests of the other PRs in the batch also pass); no title run; Linux not tested.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T08:11:53Z.
Thanks for the Windows 10 run. I have recorded it as supplemental evidence: the reported
guest_kernel_fcntlpass is from a combined PR build, and it does not include a no-change control. The PR description already distinguishes that from the Linux single-PR run and the Windows 11 source validation.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T08:44:40Z.
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/debt/libkernel.mdL165docs/dev/debt/libkernel.mdL165-166Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:33:12Z.
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