minix/lib/libc/sys-minix/reboot.c
Lionel Sambuc 70a744da37 Message type for PM_REBOOT
Change-Id: I8de1b0de1a4c79f60a7df4720943ed9d0a19725c
2014-07-28 17:05:36 +02:00

21 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);
}