reboot(2)
_________________________________________________________________
reboot System Call
Reboot halts the system processor(s).
_________________________________________________________________
SYNTAX
#include <sys/reboot.h>
int reboot (howto)
int howto;
PARAMETERS
howto A mask of options specifying the type of shutdown
to perform.
DESCRIPTION
Reboot halts the system processor(s). <Howto> 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 shutdown and the processor(s) is(are) halted.
All user processes are killed, and the buffer cache is
flushed.
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:
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
reboot(2)
EPERM The caller is not super-user.
EINVAL The option specified in <howto> was not RB_HALT or
RB_SHUTDOWN.
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)