From 523144419b696e189b92c9f98849edee4a060696 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 17 Jan 2005 01:18:56 +0000 Subject: [PATCH] * utsname::sysname is the name of the OS while system_info::kernel_name is the name of the kernel file. Now return "Haiku" as operating system. * Even if we can't fill in utsname::nodename with something useful yet, fill in at least something. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10782 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/sys/uname.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kernel/libroot/posix/sys/uname.c b/src/kernel/libroot/posix/sys/uname.c index 430c5f9191..99b0676372 100644 --- a/src/kernel/libroot/posix/sys/uname.c +++ b/src/kernel/libroot/posix/sys/uname.c @@ -22,12 +22,13 @@ uname(struct utsname *info) get_system_info(&sinfo); - strlcpy(info->sysname, sinfo.kernel_name, B_FILE_NAME_LENGTH); + strcpy(info->sysname, "Haiku"); strlcpy(info->version, sinfo.kernel_build_date, B_OS_NAME_LENGTH); strlcat(info->version, sinfo.kernel_build_time, B_OS_NAME_LENGTH); - sprintf(info->release, "%Ld", sinfo.kernel_version); + sprintf(info->release, "%lld", sinfo.kernel_version); // TODO fill nodename field when we have hostname info + strcpy(info->nodename, "unknown"); return 0; }