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