xref: /minix3/minix/lib/libc/sys/reboot.c (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1 /* reboot.c
2 
3    author: Edvard Tuinder  v892231@si.hhs.NL
4  */
5 
6 #include <sys/cdefs.h>
7 #include <lib.h>
8 #include <unistd.h>
9 #include "namespace.h"
10 
11 #include <string.h>
12 #include <sys/reboot.h>
13 
reboot(int how,char * bootstr)14 int reboot(int how, char *bootstr)
15 {
16   message m;
17 
18   memset(&m, 0, sizeof(m));
19   m.m_lc_pm_reboot.how = how;
20   return _syscall(PM_PROC_NR, PM_REBOOT, &m);
21 }
22