Enlarge stdout pipe buffer on Linux for higher throughput.
Only enlarges stdout (fd 1) when it is actually a pipe.
Tries 8MB first (best for large data), falls back to 1MB then 256KB.
Silently no-ops on non-pipes, non-Linux, or restricted environments.
Format an IO error message without the “(os error N)” suffix.
GNU coreutils prints e.g. “No such file or directory” while Rust’s
Display impl adds “ (os error 2)“. This strips the suffix for compat.
Reset SIGPIPE to default behavior (SIG_DFL) for GNU coreutils compatibility.
Rust sets SIGPIPE to SIG_IGN by default, but GNU tools are killed by SIGPIPE
(exit code 141 = 128 + 13). This must be called at the start of main().