minix/include/minix/reboot.h
David van Moolenbroek 50e46307de Move MINIX reboot definitions into minix/reboot.h
Also fix a buffer overflow in commands/reboot/sh_wall.c.

Change-Id: I3a61057c4f0221d1700e14d44520b4ad17f1dbe1
2013-03-20 16:50:01 +00:00

16 lines
516 B
C

#ifndef _MINIX_REBOOT_H
#define _MINIX_REBOOT_H
/* How to exit the system. */
#define RBT_HALT 0 /* shut down the system */
#define RBT_REBOOT 1 /* reboot the system */
#define RBT_PANIC 2 /* the system panics */
#define RBT_POWEROFF 3 /* power off, reset if not possible */
#define RBT_RESET 4 /* hard reset the system */
#define RBT_DEFAULT 5 /* perform the default action du jour */
#define RBT_INVALID 6 /* first invalid reboot flag */
int reboot(int);
#endif /* _MINIX_REBOOT_H */