For /dev/mem, map in memory to be copied to memory's own address space
[minix3.git] / lib / other / _reboot.c
blob8e87b6958d597976aec9bf5b18a668d7dfdd3f37
1 /* reboot.c - Systemcall interface to mm/signal.c::do_reboot()
3 author: Edvard Tuinder v892231@si.hhs.NL
4 */
6 #include <lib.h>
7 #define reboot _reboot
8 #include <unistd.h>
9 #include <stdarg.h>
11 int reboot(int how, ...)
13 message m;
14 va_list ap;
16 va_start(ap, how);
17 if ((m.m1_i1 = how) == RBT_MONITOR) {
18 m.m1_p1 = va_arg(ap, char *);
19 m.m1_i2 = va_arg(ap, size_t);
21 va_end(ap);
23 return _syscall(MM, REBOOT, &m);