--- include/linux_reboot.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/include/linux_reboot.h b/include/linux_reboot.h index 7ba4bca..ce7fa68 100644 --- a/include/linux_reboot.h +++ b/include/linux_reboot.h @@ -34,10 +34,6 @@ #include <unistd.h> #include "linux_reboot.h" -#define USE_LIBC - -#ifdef USE_LIBC - /* libc version */ #if defined __GLIBC__ && __GLIBC__ < 2 extern int reboot(int, int, int); @@ -50,23 +46,5 @@ static inline int my_reboot(int cmd) { return REBOOT(cmd); } -#else /* no USE_LIBC */ - -/* direct syscall version */ -#include <linux/unistd.h> - -#ifdef _syscall3 -_syscall3(int, reboot, int, magic, int, magic_too, int, cmd); -#else -/* Let us hope we have a 3-argument reboot here */ -extern int reboot(int, int, int); -#endif - -static inline int my_reboot(int cmd) { - return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd); -} - -#endif - #endif /* _LINUX_REBOOT_H */ -- 2.6.3 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html