reboot(2) DG/UX 4.30 reboot(2)
NAME
reboot - Reboot halts the system processor(s).
SYNOPSIS
#include <sys/reboot.h>
int reboot (howto)
int howto;
PARAMETERS
howto A mask of options specifying the type of
shutdown to perform.
DESCRIPTION
The reboot system call halts the system processor(s). The
howto mask specifies the type of shutdown to perform. The
possible values of howto are:
RB_HALT
The processor(s) is (are) simply halted. Use with
caution.
RB_SHUTDOWN
The system is shut down and the processor(s) is (are)
halted. All user processes are killed, and the buffer
cache is flushed.
RB_AUTOBOOT
The system is shut down and the processor(s) is (are)
halted. All user processes are killed, and the buffer
cache is flushed. The system is then rebooted using
the same boot flags as when it was last booted.
ACCESS CONTROL
Only the super-user may halt the system processor(s).
RETURN VALUE
If successful, this call never returns. Otherwise, a -1 is
returned, and errno is set to return the error.
EXCEPTIONS
Errno may be set to one of the following error codes:
EPERM The caller is not super-user.
EINVAL The option specified in howto was not RB_HALT
or RB_SHUTDOWN.
Licensed material--property of copyright holder(s) Page 1