aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/sysdeps/ironclad/generic/reboot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/sysdeps/ironclad/generic/reboot.cpp')
-rw-r--r--lib/mlibc/sysdeps/ironclad/generic/reboot.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/mlibc/sysdeps/ironclad/generic/reboot.cpp b/lib/mlibc/sysdeps/ironclad/generic/reboot.cpp
new file mode 100644
index 0000000..45e8f03
--- /dev/null
+++ b/lib/mlibc/sysdeps/ironclad/generic/reboot.cpp
@@ -0,0 +1,9 @@
+#include <errno.h>
+#include <sys/reboot.h>
+#include <sys/syscall.h>
+
+int reboot(int what) {
+ int ret, errno;
+ SYSCALL2(SYSCALL_REBOOT, what, 0);
+ return ret;
+}