mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
Kernel: Report correct architecture for uname()
This commit is contained in:
parent
85561feb40
commit
a5b4b95a76
1 changed files with 5 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue