Skip to content

Add overloads to cover dup3 and pipe2 POSIX APIs#266

Closed
jakepetroules wants to merge 6 commits into
release/1.7.0from
dup3-pipe2
Closed

Add overloads to cover dup3 and pipe2 POSIX APIs#266
jakepetroules wants to merge 6 commits into
release/1.7.0from
dup3-pipe2

Conversation

@jakepetroules
Copy link
Copy Markdown
Member

@jakepetroules jakepetroules commented Oct 2, 2025

This follows the existing pattern of wrapping dup/dup2 and pipe with FileDescriptor.duplicate and FileDescriptor.pipe, with additional overloads for passing the O_CLOEXEC and similar flags.

Forums pitch: https://forums.swift.org/t/pitch-swiftsystem-dup3-and-pipe2-cover-apis/

Addresses: #228

@jakepetroules jakepetroules force-pushed the dup3-pipe2 branch 2 times, most recently from 3d98a84 to c69bf50 Compare October 2, 2025 21:20
@jakepetroules
Copy link
Copy Markdown
Member Author

@swift-ci test

Copy link
Copy Markdown
Contributor

@glessard glessard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this contribution!

Comment thread Sources/System/FileOperations.swift
Comment thread Sources/System/FileOperations.swift
Comment thread Sources/System/FileOperations.swift Outdated
Comment thread Sources/System/FileOperations.swift Outdated
Comment thread Sources/System/FileOperations.swift Outdated
jakepetroules and others added 5 commits May 20, 2026 09:58
This follows the existing pattern of wrapping dup/dup2 and pipe with FileDescriptor.duplicate and FileDescriptor.pipe, with additional overloads for passing the O_CLOEXEC and similar flags.
@glessard
Copy link
Copy Markdown
Contributor

@swift-ci please test

@glessard glessard changed the base branch from main to release/1.7.0 May 26, 2026 23:14
@glessard
Copy link
Copy Markdown
Contributor

Will reopen as a new pull request to clear stale GitHub actions.

@glessard glessard closed this May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants