14 lines
240 B
C++
14 lines
240 B
C++
|
#include <bits/errno-return.h>
|
||
|
#include <sys/syscall.h>
|
||
|
#include <sys/utsname.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
extern "C"
|
||
|
{
|
||
|
int uname(struct utsname* buf)
|
||
|
{
|
||
|
long rc = syscall(SYS_uname, buf);
|
||
|
__errno_return(rc, int);
|
||
|
}
|
||
|
}
|