reboot - close down the system or reboot
#define _MINIX_SOURCE 1
int reboot(int how, ...)
Reboot() is used to close down the system. It allows several ways of
shutting down depending on how:
Halt the system and return to the monitor prompt.
Reboot the system by letting the monitor execute the "boot" command.
Cause a system panic. This is not normally done from user mode, but
by servers using the sys_abort() kernel call.
reboot(RBT_MONITOR, code, length)
Halt the system and let the monitor execute the given code of the
given length. (code is of type char * and length of type size_t.)
Reboot the system with a hardware reset.
Reboot() may only be executed by the super-user.
If the call succeeds, it never returns. If something went wrong, the
return value is -1 and an error is indicated by errno.
shutdown(8), reboot(8), halt(8), sync(2).
Minix can not return to the monitor if running in real mode. This means
that most of the reboot functions will change to a system reset.
Edvard Tuinder (email@example.com.NL)