Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ reboot(2) — DG/UX 5.4R3.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

halt(1M)

reboot(1M)



reboot(2)                      DG/UX 5.4R3.00                      reboot(2)


NAME
       reboot - reboot halts and optionally reboots the system processor(s)

SYNOPSIS
       #include <sys/reboot.h>

       int  reboot (howto)
       int  howto;

   where:
       howto     A mask of options specifying the type of shutdown to
                 perform

DESCRIPTION
       The reboot system call halts the system processor(s).  The howto mask
       specifies the type of shutdown to perform.  The possible values of
       howto are:

       RB_HALT        The processor(s) is (are) simply halted.  Use with
                      caution.

       RB_SHUTDOWN    The system is shut down and the processor(s) is (are)
                      halted.  All user processes are killed, and the buffer
                      cache is flushed.

       RB_AUTOBOOT    The system is shut down and the processor(s) is (are)
                      halted.  All user processes are killed, and the buffer
                      cache is flushed.  The system is then rebooted using
                      the current boot path (the default is the boot path
                      used when the system was last booted).  Use the
                      dgsysctl(2) system call to alter the current boot
                      path.

ACCESS CONTROL
       Only the superuser may halt the system processor(s).

RETURN VALUE
       If successful, this call never returns.  Otherwise, a -1 is returned,
       and errno is set to return the error.

DIAGNOSTICS
       Errno may be set to one of the following error codes:

       EPERM     The caller is not superuser.

       EINVAL    The option specified in howto was not RB_HALT or
                 RB_SHUTDOWN.

SEE ALSO
       dgsysctl(1M), halt(1M), reboot(1M), dgsysctl(2).







Licensed material--property of copyright holder(s)                         1


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