Skip to content

fix(libkernel): allow changing O_APPEND with fcntl on Windows - #4954

Closed
MarcZX10 wants to merge 3 commits into
boykopovar:mainfrom
MarcZX10:codex/carry-fcntl-append-4941
Closed

MarcZX10 wants to merge 3 commits into
boykopovar:mainfrom
MarcZX10:codex/carry-fcntl-append-4941

Conversation

@MarcZX10

Copy link
Copy Markdown
Contributor

What

Carry the Windows fcntl(F_SETFL) implementation in #4941. Changing O_APPEND on 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

Checklist

  • Based on current main; no other open PR implements the same behavior
  • One topic per PR
  • No comments in code
  • Generic behavior
  • Depends on: none
  • Unblocks: none
  • AI-assisted: yes

@xXPBSXx

xXPBSXx commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Windows test of this PR.

Environment: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, BUILD_TESTING=ON, -j2, libusb-cmake from a local checkout. Built from main ea2bbefb2 with 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).

@MarcZX10

Copy link
Copy Markdown
Contributor Author

Thanks for the Windows 10 run. I have recorded it as supplemental evidence: the reported guest_kernel_fcntl pass 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.

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
#5020 docs/dev/debt/libkernel.md L165
#5186 docs/dev/debt/libkernel.md L165-166

@oneandonlydean

Copy link
Copy Markdown
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants