Repository navigation
feat(libkernel): implement dup and dup2 - #2478
Conversation
|
Checked: rebased on current main, full build and ctest green ( Added as our own commit on your branch:
Not verified here: Windows runtime behaviour of Merging once CI is green. |
984091a to
5234b19
Compare
|
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes. |
|
Windows runtime check, since the review above left it at code review: this PR (5234b19) merged locally onto
Linux (Ubuntu 24.04, GCC 13) on the same merge gives the same: |
|
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
No title was run. 🤖 Addressed by Claude Code |
Review:
|
|
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.
|
5234b19 to
df131b9
Compare
|
Addressed the review feedback in a new commit and rebased onto latest
|
|
Rechecked the new head (df131b9, with the random device bookkeeping change, based on
Example lines for OpenRCT2: |
|
Two more titles from a triage of the whole homebrew catalog on
The "with this PR" column comes from one build of AI-assisted (Claude Code). |
…ion point boykopovar#2478 adds its own entry after "Thread cancellation", the same anchor this entry used. Two pull requests inserting different lines at one position conflict when either reaches main first, which the overlap report on this pull request flagged. The entry moves to the end of the same "### Functional" section, where it is 145 lines from boykopovar#2478's insertion, so the two no longer share a hunk and will merge in either order. The text is unchanged, and this also keeps the entry away from the other entries in the section, as the review asked.
|
Independent Windows validation on Sonic Unleashed Recompiled (PPSA99902), I replayed the exact delta from head df131b9
Important control: the bundled libc contains a zero-return export shim. With No full ctest suite, Linux run, console behavior check or gameplay is claimed. |
…ion point entry used. Two pull requests inserting different lines at one position conflict when either reaches main first, which the overlap report on this pull request flagged. The entry moves to the end of the same "### Functional" section, where it is 145 lines from boykopovar#2478's insertion, so the two no longer share a hunk and will merge in either order. The text is unchanged, and this also keeps the entry away from the other entries in the section, as the review asked.
What
Implement
dupanddup2inlibkernel.dup/dup2(_dup/_dup2on Windows).GuestSockets::FirstDescriptor) share the underlying socket state.-1withEBADFfor invalid descriptors as in FreeBSDkern_dup.Tested
Full build with
BUILD_TESTING=ON:GuestDuptests pass: pipe duplicate outlives original, dup2 target replacement, invalid descriptors, and socket duplication.tools/check_conventions.py --base upstream/mainpassed.Checklist
main; no other open PR implements the same functions