2018-11-09 07:24:41 -02:00
|
|
|
#include <sys/utsname.h>
|
|
|
|
|
#include <errno.h>
|
2018-10-26 09:56:21 -03:00
|
|
|
#include <Kernel/Syscall.h>
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
|
|
int uname(struct utsname* buf)
|
|
|
|
|
{
|
2018-11-06 10:23:22 -02:00
|
|
|
int rc = Syscall::invoke(Syscall::SC_uname, (dword)buf);
|
2018-10-26 09:56:21 -03:00
|
|
|
__RETURN_WITH_ERRNO(rc, rc, -1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|