summaryrefslogtreecommitdiff
path: root/minix/lib/libc/sys/reboot.c
blob: 54cf580ed65acd18b64e0d27e209bfd7edcc3d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 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);
}