9a9b91c940
It's finally done.. Signed-off-by: kaguya <vpshinomiya@protonmail.com>
10 lines
160 B
C++
10 lines
160 B
C++
#include <errno.h>
|
|
#include <sys/reboot.h>
|
|
#include <sys/syscall.h>
|
|
|
|
int reboot(int what) {
|
|
int ret, errno;
|
|
SYSCALL2(SYSCALL_REBOOT, what, 0);
|
|
return ret;
|
|
}
|