osf1 man page for reboot

Query: reboot

OS: osf1

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

reboot(2)							System Calls Manual							 reboot(2)

NAME
reboot - Reboots system or halts processor
SYNOPSIS
#include <sys/reboot.h> void reboot( int howto );
PARAMETERS
Specifies a mask of options.
DESCRIPTION
The reboot() function restarts the system. The startup is automatic and brings up /vmunix in the normal, nonmaintenance mode. The calling process must have superuser privilege to run this function successfully. However, a reboot is invoked automatically in the event of unre- coverable system failures. The following options, defined in the sys/reboot.h include file are passed to the new kernel or the new bootstrap and init programs. They are supplied as values to the howto parameter. The default, causing the system to reboot in its usual fashion. Dump kernel memory before rebooting; see the savecore command for more information. The processor is simply halted; no reboot takes place. The disks are not sync'd before the processor is halted or rebooted. Normally, the disks are sync'd (see the sync() command) before the processor is halted or rebooted. Because the disks are not sync'd with the RB_NOSYNC option, loss of data may result from using it. When no options are given (that is, RB_AUTOBOOT is used), the system is rebooted from file vmunix in the root file system of unit 0 (zero) of a disk chosen in a processor-specific way. (see the fsck command).
RETURN VALUES
If successful, this call does not return. Otherwise, a -1 is returned and errno is set to indicate the error.
ERRORS
If the reboot() function fails, errno may be set to the following value: The calling process does not have appropriate privilege.
RELATED INFORMATION
Commands: crashdc(8), halt(8), init(8), reboot(8), savecore(8) delim off reboot(2)
Related Man Pages
reboot(2) - freebsd
reboot(2) - bsd
reboot(2) - ultrix
fastboot(8) - osf1
reboot(3c) - sunos
Similar Topics in the Unix Linux Community
soft rebooting
how to pre-determine if a reboot is required?
Corrupted disk on reboot
Update kernel Linux without reboot?!
Can I trace who asked for reboot