2014-06-08 10:13:29 +04:00
|
|
|
/* This file is part of ToaruOS and is released under the terms
|
|
|
|
* of the NCSA / University of Illinois License - see LICENSE.md
|
|
|
|
* Copyright (C) 2013-2014 Kevin Lange
|
|
|
|
*/
|
2012-07-07 08:08:28 +04:00
|
|
|
/*
|
|
|
|
* reboot
|
|
|
|
*
|
|
|
|
* Reboot the system.
|
|
|
|
*/
|
2012-01-27 09:11:43 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <syscall.h>
|
|
|
|
|
|
|
|
int main(int argc, char ** argv) {
|
|
|
|
if (syscall_reboot() < 0) {
|
2014-05-12 04:40:16 +04:00
|
|
|
printf("%s: permission denied\n", argv[0]);
|
2012-01-27 09:11:43 +04:00
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|