From ea471517574bbac74a187df6f07cc36181594f6a Mon Sep 17 00:00:00 2001 From: Connor-GH Date: Sun, 15 Mar 2026 15:53:02 -0500 Subject: [PATCH] /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. --- src/scheme/sys/uname.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scheme/sys/uname.rs b/src/scheme/sys/uname.rs index 6583252027..7a150f54d0 100644 --- a/src/scheme/sys/uname.rs +++ b/src/scheme/sys/uname.rs @@ -3,9 +3,10 @@ use alloc::vec::Vec; pub fn resource(_token: &mut CleanLockToken) -> Result> { 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()) }