diff --git a/.vscode/cspell.dictionaries/workspace.wordlist.txt b/.vscode/cspell.dictionaries/workspace.wordlist.txt index bee22c2d0..049025d43 100644 --- a/.vscode/cspell.dictionaries/workspace.wordlist.txt +++ b/.vscode/cspell.dictionaries/workspace.wordlist.txt @@ -9,6 +9,7 @@ aho-corasick backtrace blake2b_simd bstr +bytecount byteorder chacha chrono diff --git a/src/uu/wc/src/count_fast.rs b/src/uu/wc/src/count_fast.rs index deaa890fd..b4078d6be 100644 --- a/src/uu/wc/src/count_fast.rs +++ b/src/uu/wc/src/count_fast.rs @@ -21,6 +21,7 @@ use nix::fcntl::{splice, SpliceFFlags}; use nix::unistd::pipe; const BUF_SIZE: usize = 16 * 1024; +#[cfg(any(target_os = "linux", target_os = "android"))] const SPLICE_SIZE: usize = 128 * 1024; /// Splice wrapper which handles short writes diff --git a/tests/by-util/test_wc.rs b/tests/by-util/test_wc.rs index 7274c5888..c567c0dd5 100644 --- a/tests/by-util/test_wc.rs +++ b/tests/by-util/test_wc.rs @@ -1,6 +1,6 @@ use crate::common::util::*; -// spell-checker:ignore (flags) lwmcL clmwL ; (path) bogusfile emptyfile manyemptylines moby notrailingnewline onelongemptyline onelongword +// spell-checker:ignore (flags) lwmcL clmwL ; (path) bogusfile emptyfile manyemptylines moby notrailingnewline onelongemptyline onelongword weirdchars #[test] fn test_count_bytes_large_stdin() {