From ed6a9d4c57f8d03a5c030b63f569302d7b32a40f Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 6 Aug 2021 13:32:33 -0600 Subject: [PATCH] tail: remove unused redox platform --- src/uu/tail/src/platform/mod.rs | 6 ------ src/uu/tail/src/platform/redox.rs | 25 ------------------------- 2 files changed, 31 deletions(-) delete mode 100644 src/uu/tail/src/platform/redox.rs diff --git a/src/uu/tail/src/platform/mod.rs b/src/uu/tail/src/platform/mod.rs index 4a8982713..7b7fd6fa3 100644 --- a/src/uu/tail/src/platform/mod.rs +++ b/src/uu/tail/src/platform/mod.rs @@ -14,14 +14,8 @@ pub use self::unix::{stdin_is_pipe_or_fifo, supports_pid_checks, Pid, ProcessChe #[cfg(windows)] pub use self::windows::{supports_pid_checks, Pid, ProcessChecker}; -#[cfg(target_os = "redox")] -pub use self::redox::{supports_pid_checks, Pid, ProcessChecker}; - #[cfg(unix)] mod unix; #[cfg(windows)] mod windows; - -#[cfg(target_os = "redox")] -mod redox; diff --git a/src/uu/tail/src/platform/redox.rs b/src/uu/tail/src/platform/redox.rs deleted file mode 100644 index bc6fb5220..000000000 --- a/src/uu/tail/src/platform/redox.rs +++ /dev/null @@ -1,25 +0,0 @@ -// spell-checker:ignore (ToDO) ENOSYS EPERM - -use self::syscall::{Error, ENOSYS, EPERM}; - -pub type Pid = usize; - -pub struct ProcessChecker { - pid: self::Pid, -} - -impl ProcessChecker { - pub fn new(process_id: self::Pid) -> ProcessChecker { - ProcessChecker { pid: process_id } - } - - // Borrowing mutably to be aligned with Windows implementation - pub fn is_dead(&mut self) -> bool { - let res = syscall::kill(self.pid, 0); - res != Ok(0) && res != Err(Error::new(EPERM)) - } -} - -pub fn supports_pid_checks(pid: self::Pid) -> bool { - true -}