diff --git a/.vscode/cspell.dictionaries/acronyms+names.wordlist.txt b/.vscode/cspell.dictionaries/acronyms+names.wordlist.txt index 53307bf35..81bc3bc5f 100644 --- a/.vscode/cspell.dictionaries/acronyms+names.wordlist.txt +++ b/.vscode/cspell.dictionaries/acronyms+names.wordlist.txt @@ -48,6 +48,7 @@ EditorConfig FreeBSD Gmail GNU +Illumos Irix MS-DOS MSDOS diff --git a/docs/compiles_table.py b/docs/compiles_table.py index aa1b8703c..e2c4c0a8d 100644 --- a/docs/compiles_table.py +++ b/docs/compiles_table.py @@ -40,6 +40,8 @@ TARGETS = [ "x86_64-linux-android", # Solaris "x86_64-sun-solaris", + # Illumos + "x86_64-unknown-illumos", # WASM "wasm32-wasi", # Redox diff --git a/src/uucore/src/lib/features/fsext.rs b/src/uucore/src/lib/features/fsext.rs index b8207d68c..cf17067e8 100644 --- a/src/uucore/src/lib/features/fsext.rs +++ b/src/uucore/src/lib/features/fsext.rs @@ -90,6 +90,8 @@ pub use libc::statfs as StatFs; target_os = "netbsd", target_os = "bitrig", target_os = "dragonfly", + target_os = "illumos", + target_os = "solaris", target_os = "redox" ))] pub use libc::statvfs as StatFs; @@ -100,13 +102,15 @@ pub use libc::statvfs as StatFs; target_os = "android", target_os = "freebsd", target_os = "openbsd", + target_os = "redox" ))] pub use libc::statfs as statfs_fn; #[cfg(any( target_os = "netbsd", target_os = "bitrig", - target_os = "dragonfly", - target_os = "redox" + target_os = "illumos", + target_os = "solaris", + target_os = "dragonfly" ))] pub use libc::statvfs as statfs_fn; @@ -476,7 +480,7 @@ pub fn read_fs_list() -> Vec { } mounts } - #[cfg(target_os = "redox")] + #[cfg(any(target_os = "redox", target_os = "illumos", target_os = "solaris"))] { // No method to read mounts, yet Vec::new()