summaryrefslogtreecommitdiff
path: root/LibC/utsname.cpp
blob: d01232704a1f37f7acb72f7ae212eae403cf14ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
}

}