chiark / gitweb /
[PATCH] add ftruncate to klibc.
[elogind.git] / klibc / klibc / reboot.c
1 /*
2  * reboot.c
3  */
4
5 #include <unistd.h>
6 #include <sys/reboot.h>
7 #include <sys/syscall.h>
8
9 /* This provides the one-argument glibc-ish version of reboot.
10    The full four-argument system call is available as __reboot(). */
11
12 int reboot(int flag)
13 {
14   return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, flag, NULL);
15 }