Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ reboot(2) — DG/UX R4.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

halt(1M)

reboot(1M)



reboot(2)                         SDK R4.11                        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
       The calling process must have appropriate privilege to successfully
       execute this system call.  For systems supporting the DG/UX
       Capability Option, appropriate privilege is defined as having one or
       more specific capabilities enabled in the effective capability set of
       the calling process.  See capdefaults(5) for the default capability
       for this system call.

       On systems without the DG/UX Capability Option, appropriate privilege
       means that the process has an effective UID of root.  See the
       appropriateprivilege(5) man page for more information.

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 calling process does not have appropriate privilege.

       EINVAL    The option specified in howto is not supported.

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


Licensed material--property of copyright holder(s)

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