Skip to content

Add variants of pipe(), and duplicate() that wrap pipe2 and dup3 #228

@jakepetroules

Description

@jakepetroules

pipe2() and dup3() were standardized by POSIX 2024 and are already supported on most platforms (Linux, BSD) outside of macOS.

We should add new overloads of the Swift System functions which accept the flags (like O_CLOEXEC). For Apple platforms, which don't support these calls, we could compile them out for now, throw an error, or add unavailable annotations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions