summaryrefslogtreecommitdiffstats
path: root/usr/klibc/reboot.c
blob: 5aab039044a033636454f33f204d6baa5f7238f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * reboot.c
 */

#include <unistd.h>
#include <sys/reboot.h>
#include <sys/syscall.h>

/* This provides two-argument reboot function (glibc flag plus reboot argument).
   The full four-argument system call is available as __reboot(). */

int reboot(int flag, void *arg)
{
	return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, flag, arg);
}