Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/include/sys/reboot.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 603 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

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 */