chiark / gitweb /
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.
[elogind.git] / klibc / klibc / include / sys / reboot.h
1 /*
2  * sys/reboot.h
3  */
4
5 #ifndef _SYS_REBOOT_H
6 #define _SYS_REBOOT_H
7
8 #include <klibc/extern.h>
9 #include <linux/reboot.h>
10
11 /* glibc names these constants differently; allow both versions */
12
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
18
19 /* glibc-ish one-argument version */
20 __extern int reboot(int);
21
22 /* Native four-argument system call */
23 __extern int __reboot(int, int, int, void *);
24
25 #endif /* _SYS_REBOOT_H */