Skip to content

port: util/pipe-windows.c to obs-util #258

Closed

Description

@b7216309-jpg

Tracking the Windows half of the pipe port (from #153; the POSIX half was #78).

Plan:

  1. C characterization: Windows process cases in test/cmocka/test_pipe.c (cmd /c children). Covers read and write modes, stderr, exit codes, type handling, nulls, a missing binary, and how os_process_pipe_create2 quotes arguments into one command line (visible through cmd /c echo).
  2. Oracle and RED: pipe-windows.c compiled into obs-c-oracle on Windows. Tier 3 parity tests against todo!() shims.
  3. GREEN: a Rust core that calls Win32 directly (CreatePipe, CreateProcessW with a NULL application name, ReadFile/WriteFile, WaitForSingleObject), not std::process::Command. Command resolves the program itself, can't set STARTF_FORCEOFFFEEDBACK, and limits which handles are inherited, so its observable behavior differs from the C. The command-line quoting becomes a safe, platform-neutral function tested on every OS.
  4. Wiring: util/pipe-windows.c behind ENABLE_RUST_LIBOBS in os-windows.cmake, and the unix markers dropped from rust-exports.d/obs-util-pipe.txt.

I'm on Windows and can build and run the C side locally with MSVC, but Windows CI is the gate.

Activity

  1. added 2 commits that reference this issue on Oct 11, 2026
    306ec7a
    dce8d4c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions