summaryrefslogtreecommitdiff
path: root/LibC/utsname.cpp
blob: 7b03cc1ae7a8295b07483218b73a932555842ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <Kernel/Syscall.h>
#include <errno.h>
#include <sys/utsname.h>

extern "C" {

int uname(struct utsname* buf)
{
    int rc = syscall(SC_uname, buf);
    __RETURN_WITH_ERRNO(rc, rc, -1);
}
}