Add sys$uname() and a /bin/uname utility.

This commit is contained in:
Andreas Kling 2018-10-26 14:56:21 +02:00
commit 1c45b28da6
Notes: sideshowbarker 2024-07-19 18:38:17 +09:00
15 changed files with 129 additions and 10 deletions

14
LibC/utsname.cpp Normal file
View file

@ -0,0 +1,14 @@
#include "utsname.h"
#include "errno.h"
#include <Kernel/Syscall.h>
extern "C" {
int uname(struct utsname* buf)
{
int rc = Syscall::invoke(Syscall::PosixUname, (dword)buf);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}