blob: 5795dc3c5f0444fcd6339ca719d245d3782bbf8c [file] [log] [blame]
/*
* reboot.c
*/
#include <unistd.h>
#include <sys/reboot.h>
#include <sys/syscall.h>
/* This provides the one-argument glibc-ish version of reboot.
The full four-argument system call is available as __reboot(). */
int reboot(int flag)
{
return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, flag, NULL);
}