projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4717bfe
)
fix stubbed-out reboot call
author
Rich Felker
<dalias@aerifal.cx>
Wed, 3 Aug 2011 01:22:56 +0000
(21:22 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 3 Aug 2011 01:22:56 +0000
(21:22 -0400)
src/linux/reboot.c
patch
|
blob
|
history
diff --git
a/src/linux/reboot.c
b/src/linux/reboot.c
index
68830d8
..
240dac5
100644
(file)
--- a/
src/linux/reboot.c
+++ b/
src/linux/reboot.c
@@
-1,8
+1,7
@@
#include <sys/reboot.h>
-#include
<errno.h>
+#include
"syscall.h"
int reboot(int type)
{
- errno = ENOSYS;
- return -1;
+ return syscall(SYS_reboot, type);
}