Add reboot(2)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
#include <ygg/reboot.h>
|
||||
|
||||
int reboot(int magic, int magic2, unsigned int cmd, void *arg);
|
||||
@@ -0,0 +1,8 @@
|
||||
#include <_libc/syscalls.h>
|
||||
#include <ygg/syscall.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <errno.h>
|
||||
|
||||
int reboot(int magic, int magic2, unsigned int cmd, void *arg) {
|
||||
return SET_ERRNO(int, __syscall4(SYSCALL_NR_REBOOT, magic, magic2, cmd, (long) arg));
|
||||
}
|
||||
Reference in New Issue
Block a user