projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
debloat src/thread tree but putting lots of junk in one file
[oweals/musl.git]
/
src
/
linux
/
reboot.c
diff --git
a/src/linux/reboot.c
b/src/linux/reboot.c
index 68830d8e588e73192f6fb9de391bd0780abf2535..7f12af79bc1ba13220cfca6f0c48357546019246 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, 0xfee1dead, 672274793, type);
}