Skip to content

Implement Windows anonymous pipes and handle duplication #430

Open

Description

@LunaStev

Summary

The Windows filesystem provider already carries native HANDLE values through the portable descriptor layer, but pipe, dup2, and fcntl currently return -ENOSYS. This blocks portable pipe-based I/O and process output capture.

Related issue

Scope

Implement anonymous pipes and the handle-duplication behavior needed by std::io and the Windows process layer. Map only operations with a well-defined portable meaning; do not invent a broad fcntl emulation.

Acceptance criteria

  • io_pipe creates readable and writable endpoints on Windows.
  • Duplicating or replacing standard input/output/error handles follows documented ownership rules.
  • Closing either endpoint does not leak or double-close native handles.
  • Unsupported fcntl commands remain explicit and deterministic.
  • Windows-native tests cover a round trip, EOF after writer close, and standard-handle redirection.
  • Existing Unix behavior is unchanged.

Activity

  1. added
    enhancement
    help wanted
    needs testing
    os compatibility
    on Aug 29, 2026
  2. self-assigned this
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wantedneeds testingos compatibility

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions