REBOOT(2)
NAME
reboot − reboot system or halt processor
USAGE
#include <sys/reboot.h>
reboot(howto) int howto;
DESCRIPTION
The reboot call is normally invoked in the event of unrecoverable system failures. The howto parameter is a mask of options passed to the bootstrap program. The bits of howto contain RB_HALT, which causes the processor to halt with no reboot taking place. Currently, the system call interface only permits RB_HALT to be passed to the reboot program.
RETURN VALUES
A successful call never returns. A failed call returns -1 and sets errno as indicated below.
ERRORS
[EPERM] The caller is not the super-user.