Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

halt(8)

reboot(8)

shutdown(8)



REBOOT(2)               COMMAND REFERENCE               REBOOT(2)



NAME
     reboot - reboot system or halt processor

SYNOPSIS
     #include <sys/reboot.h>

     reboot(howto)
     int howto;

DESCRIPTION
     Reboot reboots or halts the system.  Various system
     utilities use it.

     When RB_AUTOBOOT is given (no bit is set in the mask), the
     system is shutdown cleanly, including syncing the disks,
     then the system is booted as if power had been pulled and
     then resupplied.

     Only the following bit of howto, defined in <sys/reboot.h>,
     is allowed:

          RB_HALT      The processor is halted normally; no
                       reboot takes place.

     Only the superuser may reboot a machine.

DIAGNOSTICS
     [EPERM]      The caller is not the superuser.

RETURN VALUE
     If successful, this call never returns.  Otherwise, a -1 is
     returned and an error is returned in the global variable
     errno.

CAVEATS
     This system call is for the use of system utilities which
     handle system shutdown.  It is not intended for customer
     use, and the ramifications of its use are not all obvious.

SEE ALSO
     halt(8), reboot(8), and shutdown(8).














Printed 4/6/89                                                  1



%%index%%
na:288,92;
sy:380,595;
de:975,779;
di:1754,174;
rv:1928,273;
ca:2201,268;
se:2469,174;
%%index%%000000000120

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