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
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libc
/
sys
/
reboot.c
blob
54cf580ed65acd18b64e0d27e209bfd7edcc3d4c
1
/* reboot.c
2
3
author: Edvard Tuinder v892231@si.hhs.NL
4
*/
5
6
#include <sys/cdefs.h>
7
#include <lib.h>
8
#include <unistd.h>
9
#include
"namespace.h"
10
11
#include <string.h>
12
#include <sys/reboot.h>
13
14
int
reboot
(
int
how
,
char
*
bootstr
)
15
{
16
message m
;
17
18
memset
(&
m
,
0
,
sizeof
(
m
));
19
m
.
m_lc_pm_reboot
.
how
=
how
;
20
return
_syscall
(
PM_PROC_NR
,
PM_REBOOT
, &
m
);
21
}