NAME
reboot - reboot system or halt processor
SYNOPSIS
#include <sys/reboot.h>
reboot(howto)
int howto;
DESCRIPTION
Reboot reboots the system, and is invoked automatically in
the
event of unrecoverable system failures. Howto is a mask of
options
passed to the bootstrap program. The system call interface
permits
only RB_HALT or RB_AUTOBOOT to be passed to the reboot
program; the
other flags are used in scripts stored on the console
storage
media, or used in manual bootstrap procedures. When none of
these
options (e.g. RB_AUTOBOOT) is given, the Macintosh Operating
System
is restarted. The startup application (which can be MachTen)
is
then launched.
A single option (howto bit) is currently recognized:
RB_HALT
the processor is simply halted; no reboot takes place.
RB_HALT should be used with caution.
Only the super-user may reboot a machine.
RETURN VALUES
If successful, this call never returns. Otherwise, a -1 is
returned and an error is returned in the global variable
errno.
ERRORS
[EPERM] The caller is not the super-user.
SEE ALSO
halt(8), init(8), reboot(8)