toaruos/userspace/core/reboot.c
2014-05-11 17:40:16 -07:00

15 lines
209 B
C

/*
* reboot
*
* Reboot the system.
*/
#include <stdio.h>
#include <syscall.h>
int main(int argc, char ** argv) {
if (syscall_reboot() < 0) {
printf("%s: permission denied\n", argv[0]);
}
return 1;
}