plat/control_stream.rs#
Source: lib/plat/control_stream.rs
Bounded control-channel IO primitives. Only explicitly enabled callers read stdin.
fn read_stdin(bytes: &mut [u8]) -> Result<usize, u32>(Windows) Read bytes from the process standard input. Zero denotes clean EOF. Diagnostics usewrite_stderr; protocol responses usewrite_stdout.fn read_stdin(bytes: &mut [u8]) -> Result<usize, u32>(Linux) Read bytes from the process standard input, retrying interrupted system calls and waiting on a descriptor inherited non-blocking.fn read_stdin(bytes: &mut [u8]) -> Result<usize, u32>(Apple) Read bytes from the process standard input (macOS, iOS), as on Linux: interrupted calls are retried, a descriptor inherited non-blocking is waited on.