Import with #import "std/process_capture_linux".
CapturePointer :: struct { value: *u8; }CaptureArgument :: struct { bytes: [4096]u8; }CaptureFailure :: enum { None = 0; InvalidArguments = 1; InvalidUrl = 2; PipeError = 3; ForkError = 4; ReadError = 5; WaitError = 6; TooLarge = 7; }CaptureResult :: struct { code: s32; length: s32; error: bool; truncated: bool; problem: CaptureFailure; }CaptureOutput :: (arguments: []string, output: []u8) -> CaptureResultCaptureOutputCapped :: (arguments: []string, output: []u8, maximum: s64) -> CaptureResultCapture no more than MAXIMUM bytes. OUTPUT must leave one extra byte so the boundary can distinguish an exact-length body from a longer one.