aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/sysdeps/ironclad/generic/reboot.cpp
blob: 45e8f03282c07b60883fcdfe2d69c1b3669cbf59 (plain)
1
2
3
4
5
6
7
8
9
#include <errno.h>
#include <sys/reboot.h>
#include <sys/syscall.h>

int reboot(int what) {
	int ret, errno;
	SYSCALL2(SYSCALL_REBOOT, what, 0);
	return ret;
}