reboot(2) reboot(2)NAME reboot - reboot system or halt processor SYNOPSIS #include <sys/reboot.h> int reboot(howto) int howto; DESCRIPTION reboot halts and restarts the processor and reloads the operating system from the disk file ``unix'' on the root file system of the default boot device. By default, in-core data for mounted file systems are flushed, as in sync(2). Only the superuser may reboot a machine. howto is a mask of options passed to the operating system. One of the following bits must be set in howto: RB_AUTOBOOT Restart the processor and reload the operating system. RB_HALT Halt the processor. No reboot takes place. RB_BUSYLOOP Hang the processor an infinite loop. The following optional behavior may be requested by setting these bits in howto: RB_NOSYNC Do not flush the system buffers to disk. RB_KILLALL Terminate all running processes before halting the system. RB_UNMOUNT Unmount all mounted file systems before halting the system. STATUS MESSAGES AND VALUES If successful, this call never returns. Otherwise, a -1 is returned and an error is returned in the global variable errno. The following error condition could occur: EPERM The caller is not the superuser. January 1992 1
reboot(2) reboot(2)SEE ALSO sync(2) reboot(1M), shutdown(1M) in A/UX System Administrator's Reference 2 January 1992