Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ reboot(2) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

reboot(1M)

shutdown(1M)

sync(2)




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 is 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 sys- tem. RB_UNMOUNT Unmount all mounted file systems before halting the system. RETURN VALUES If successful, this call never returns. Otherwise, a -1 is returned and an error is returned in the global variable errno. ERRORS The following error condition could occur: [EPERM] The caller is not the superuser. April, 1990 1



reboot(2) reboot(2)
SEE ALSO reboot(1M), shutdown(1M), sync(2). 2 April, 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026