/scheme/sys/uname: include the "version" info

With this change, we use the recently-added `COOKBOOK_TIME_IDENT`
environment variable at compile time to get the "version" info for the
uname scheme. This field is unspecified by POSIX what it should have,
but most kernels (including Linux, XNU, NetBSD, etc.) put the build
time here.
This commit is contained in:
Connor-GH
2026-03-15 15:53:02 -05:00
parent 44b6a58032
commit ea47151757
+3 -2
View File
@@ -3,9 +3,10 @@ use alloc::vec::Vec;
pub fn resource(_token: &mut CleanLockToken) -> Result<Vec<u8>> {
Ok(format!(
"Redox\n\n{}\n\n{}\n",
"Redox\n{}\n{}\n{}\n",
env!("CARGO_PKG_VERSION"),
env!("TARGET").split('-').next().unwrap()
env!("TARGET").split('-').next().unwrap(),
env!("COOKBOOK_TIME_IDENT")
)
.into_bytes())
}