summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/reboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/reboot.c')
-rw-r--r--libc/sysdeps/linux/common/reboot.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/reboot.c b/libc/sysdeps/linux/common/reboot.c
new file mode 100644
index 000000000..40529c530
--- /dev/null
+++ b/libc/sysdeps/linux/common/reboot.c
@@ -0,0 +1,16 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * _reboot() for uClibc
+ *
+ * Copyright (C) 2000-2004 by Erik Andersen <andersen@codpoet.org>
+ *
+ * GNU Library General Public License (LGPL) version 2 or later.
+ */
+
+#include "syscalls.h"
+#define __NR__reboot __NR_reboot
+static inline _syscall3(int, _reboot, int, magic, int, magic2, int, flag);
+int reboot(int flag)
+{
+ return (_reboot((int) 0xfee1dead, 672274793, flag));
+}