retire BIOS_SEG and umap_bios
[minix3.git] / lib / libc / sys-minix / reboot.c
blob7b81b9d43736b03b6e5edbd070ea10df39b7e0ed
1 /* reboot.c - Systemcall interface to mm/signal.c::do_reboot()
3 author: Edvard Tuinder v892231@si.hhs.NL
4 */
6 #include <sys/cdefs.h>
7 #include <lib.h>
8 #include "namespace.h"
10 #include <unistd.h>
11 #include <sys/reboot.h>
12 #include <stdarg.h>
14 int reboot(int how, ...)
16 message m;
17 va_list ap;
19 va_start(ap, how);
20 if ((m.m1_i1 = how) == RBT_MONITOR) {
21 m.m1_p1 = va_arg(ap, char *);
22 m.m1_i2 = va_arg(ap, size_t);
24 va_end(ap);
26 return _syscall(PM_PROC_NR, REBOOT, &m);