diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:21 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:21 +0000 |
commit | 4e8199b572f2035b7749cba276ece3a26630d23e (patch) | |
tree | f09feeed6a0fe39d027b1908aa63ea6b35e4b631 /vendor/sysinfo/src/unknown | |
parent | Adding upstream version 1.66.0+dfsg1. (diff) | |
download | rustc-4e8199b572f2035b7749cba276ece3a26630d23e.tar.xz rustc-4e8199b572f2035b7749cba276ece3a26630d23e.zip |
Adding upstream version 1.67.1+dfsg1.upstream/1.67.1+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/sysinfo/src/unknown')
-rw-r--r-- | vendor/sysinfo/src/unknown/process.rs | 2 | ||||
-rw-r--r-- | vendor/sysinfo/src/unknown/system.rs | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/vendor/sysinfo/src/unknown/process.rs b/vendor/sysinfo/src/unknown/process.rs index c4656d3f5..4a12ec829 100644 --- a/vendor/sysinfo/src/unknown/process.rs +++ b/vendor/sysinfo/src/unknown/process.rs @@ -89,4 +89,6 @@ impl ProcessExt for Process { fn group_id(&self) -> Option<Gid> { None } + + fn wait(&self) {} } diff --git a/vendor/sysinfo/src/unknown/system.rs b/vendor/sysinfo/src/unknown/system.rs index 4603ae737..c205cdf96 100644 --- a/vendor/sysinfo/src/unknown/system.rs +++ b/vendor/sysinfo/src/unknown/system.rs @@ -123,6 +123,13 @@ impl SystemExt for System { &mut [] } + fn sort_disks_by<F>(&mut self, _compare: F) + where + F: FnMut(&Disk, &Disk) -> std::cmp::Ordering, + { + // does nothing. + } + fn uptime(&self) -> u64 { 0 } @@ -159,6 +166,10 @@ impl SystemExt for System { None } + fn distribution_id(&self) -> String { + std::env::consts::OS.to_owned() + } + fn host_name(&self) -> Option<String> { None } |