X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Flinux%2Freboot.c;h=240dac5aee1c56817648c8881a2327e728da3724;hp=68830d8e588e73192f6fb9de391bd0780abf2535;hb=4f5ba9211e2b8e176ff9dfee3bdb0453cbc4d59b;hpb=4717bfec708d264111f70f37850ffc09238c4bd5 diff --git a/src/linux/reboot.c b/src/linux/reboot.c index 68830d8e..240dac5a 100644 --- a/src/linux/reboot.c +++ b/src/linux/reboot.c @@ -1,8 +1,7 @@ #include -#include +#include "syscall.h" int reboot(int type) { - errno = ENOSYS; - return -1; + return syscall(SYS_reboot, type); }