From 7029621374308533a679c6f2545120d5a6760936 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Tue, 30 Jan 2007 22:30:01 +0000 Subject: [PATCH] Added forgotten space between kernel build date and time. Also prepare uname to return the build SVN revision number, which will work only if I could figure out how to define it from Jamfile. Or, better, in build/jam/BuildSetup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20023 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/sys/uname.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/system/libroot/posix/sys/uname.c b/src/system/libroot/posix/sys/uname.c index 86a07afd59..03fe729b3b 100644 --- a/src/system/libroot/posix/sys/uname.c +++ b/src/system/libroot/posix/sys/uname.c @@ -26,7 +26,13 @@ uname(struct utsname *info) get_system_info(&systemInfo); strlcpy(info->sysname, "Haiku", sizeof(info->sysname)); - strlcpy(info->version, systemInfo.kernel_build_date, sizeof(info->version)); + + info->version[0] = '\0'; +#ifdef HAIKU_REVISION + snprintf(info->version, sizeof(info->version), "r%d ", HAIKU_REVISION); +#endif + strlcat(info->version, systemInfo.kernel_build_date, sizeof(info->version)); + strlcat(info->version, " ", sizeof(info->version)); strlcat(info->version, systemInfo.kernel_build_time, sizeof(info->version)); snprintf(info->release, sizeof(info->release), "%lld", systemInfo.kernel_version);