File: reboot.h

package info (click to toggle)
dietlibc 0.12-2.5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,620 kB
  • ctags: 12,123
  • sloc: ansic: 32,297; asm: 5,648; makefile: 428; perl: 62; sh: 61
file content (19 lines) | stat: -rw-r--r-- 551 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _SYS_REBOOT_H
#define _SYS_REBOOT_H

#define	LINUX_REBOOT_MAGIC1	0xfee1dead
#define	LINUX_REBOOT_MAGIC2	672274793
#define	LINUX_REBOOT_MAGIC2A	85072278
#define	LINUX_REBOOT_MAGIC2B	369367448

#define	LINUX_REBOOT_CMD_RESTART	0x01234567
#define	LINUX_REBOOT_CMD_HALT		0xCDEF0123
#define	LINUX_REBOOT_CMD_CAD_ON		0x89ABCDEF
#define	LINUX_REBOOT_CMD_CAD_OFF	0x00000000
#define	LINUX_REBOOT_CMD_POWER_OFF	0x4321FEDC
#define	LINUX_REBOOT_CMD_RESTART2	0xA1B2C3D4

/* Reboot or halt the system.  */
int reboot (int flag);

#endif	/* _SYS_REBOOT_H */