8 #include <klibc/extern.h>
9 #include <linux/reboot.h>
11 /* glibc names these constants differently; allow both versions */
13 #define RB_AUTOBOOT LINUX_REBOOT_CMD_RESTART
14 #define RB_HALT_SYSTEM LINUX_REBOOT_CMD_HALT
15 #define RB_ENABLE_CAD LINUX_REBOOT_CMD_CAD_ON
16 #define RB_DISABLE_CAD LINUX_REBOOT_CMD_CAD_OFF
17 #define RB_POWER_OFF LINUX_REBOOT_CMD_POWER_OFF
19 /* glibc-ish one-argument version */
20 __extern int reboot(int);
22 /* Native four-argument system call */
23 __extern int __reboot(int, int, int, void *);
25 #endif /* _SYS_REBOOT_H */