1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

tail: add equivalent of stdin_is_pipe_or_fifo() for Windows

* add support to determine if stdin is readable on Windows
This commit is contained in:
Jan Scheer 2022-05-19 22:55:47 +02:00
parent 6a1cf72316
commit 84480f892d
No known key found for this signature in database
GPG key ID: C62AD4C29E2B9828
4 changed files with 12 additions and 5 deletions

View file

@ -11,7 +11,9 @@ extern crate tail;
use crate::common::util::*;
use std::char::from_digit;
use std::io::{Read, Write};
#[cfg(unix)]
use std::io::Read;
use std::io::Write;
use std::process::Stdio;
#[cfg(unix)]
use std::thread::sleep;