1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-14 19:50:59 +00:00
serenity/LibC/utsname.cpp
2018-11-06 13:33:54 +01:00

14 lines
220 B
C++

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