* 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
This commit is contained in:
Ingo Weinhold 2005-01-17 01:18:56 +00:00
parent 08d9a7e92d
commit 523144419b

View File

@ -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;
}