repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libc, libutil: remove compat hacks
[minix.git]
/
lib
/
libc
/
sys-minix
/
reboot.c
blob
393757b3c811b4ca6d588adac653bdcdb54b3f2a
1
/* reboot.c - Systemcall interface to mm/signal.c::do_reboot()
2
3
author: Edvard Tuinder v892231@si.hhs.NL
4
*/
5
6
#include <sys/cdefs.h>
7
#include <lib.h>
8
#include
"namespace.h"
9
10
#include <unistd.h>
11
#include <sys/reboot.h>
12
#include <stdarg.h>
13
14
int
reboot
(
int
how
)
15
{
16
message m
;
17
18
m
.
m1_i1
=
how
;
19
return
_syscall
(
PM_PROC_NR
,
REBOOT
, &
m
);
20
}