diff options
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r-- | Kernel/Syscalls/uname.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/Syscalls/uname.cpp b/Kernel/Syscalls/uname.cpp index dc8e002ca0..c0ca490632 100644 --- a/Kernel/Syscalls/uname.cpp +++ b/Kernel/Syscalls/uname.cpp @@ -23,7 +23,12 @@ KResultOr<FlatPtr> Process::sys$uname(Userspace<utsname*> user_buf) memcpy(buf.sysname, "SerenityOS", 11); memcpy(buf.release, "1.0-dev", 8); memcpy(buf.version, "FIXME", 6); +#if ARCH(I386) memcpy(buf.machine, "i686", 5); +#else + memcpy(buf.machine, "x86_64", 7); +#endif + memcpy(buf.nodename, g_hostname->characters(), g_hostname->length() + 1); if (!copy_to_user(user_buf, &buf)) |