Lionel Sambuc 433d6423c3 New sources layout
Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9
2014-07-31 16:00:30 +02:00

22 lines
349 B
C

/* reboot.c
author: Edvard Tuinder v892231@si.hhs.NL
*/
#include <sys/cdefs.h>
#include <lib.h>
#include <unistd.h>
#include "namespace.h"
#include <string.h>
#include <sys/reboot.h>
int reboot(int how, char *bootstr)
{
message m;
memset(&m, 0, sizeof(m));
m.m_lc_pm_reboot.how = how;
return _syscall(PM_PROC_NR, PM_REBOOT, &m);
}