minix/lib/libc/sys-minix/reboot.c
Ben Gras 54960d7eb9 switch to netbsd <sys/errno.h>
not entirely clean; _SIGN hack remains for now.  also leave in
minix-specific stuff like minix-specific errno's and OK.

Change-Id: Ibb16d04c4fb65d97faf8a292ee558b13849d68f0
2013-10-24 22:45:53 +00:00

22 lines
376 B
C

/* reboot.c - Systemcall interface to mm/signal.c::do_reboot()
author: Edvard Tuinder v892231@si.hhs.NL
*/
#include <sys/cdefs.h>
#include <lib.h>
#include <unistd.h>
#include "namespace.h"
#include <unistd.h>
#include <sys/reboot.h>
#include <stdarg.h>
int reboot(int how, char *bootstr)
{
message m;
m.m1_i1 = how;
return _syscall(PM_PROC_NR, REBOOT, &m);
}