Back to index

glibc  2.9
Defines | Functions
reboot.h File Reference
#include <features.h>

Go to the source code of this file.

Defines

#define RB_AUTOBOOT   0 /* flags for system auto-booting itself */
#define RB_ASKNAME   0x01 /* -a: ask for file name to reboot from */
#define RB_SINGLE   0x02 /* -s: reboot to single user only */
#define RB_KDB   0x04 /* -d: kernel debugger symbols loaded */
#define RB_HALT   0x08 /* -h: enter KDB at bootup */
#define RB_INITNAME   0x10 /* -i: name given for /etc/init (unused) */
#define RB_DFLTROOT   0x20 /* use compiled-in rootdev */
#define RB_NOBOOTRC   0x20 /* -b: don't run /etc/rc.boot */
#define RB_ALTBOOT   0x40 /* use /boot.old vs /boot */
#define RB_UNIPROC   0x80 /* -u: start only one processor */
#define RB_SHIFT   8 /* second byte is for ux */
#define RB_DEBUGGER
#define B_ADAPTORSHIFT   24
#define B_ADAPTORMASK   0x0f
#define B_ADAPTOR(val)   (((val) >> B_ADAPTORSHIFT) & B_ADAPTORMASK)
#define B_CONTROLLERSHIFT   20
#define B_CONTROLLERMASK   0xf
#define B_CONTROLLER(val)   (((val)>>B_CONTROLLERSHIFT) & B_CONTROLLERMASK)
#define B_UNITSHIFT   16
#define B_UNITMASK   0xf
#define B_UNIT(val)   (((val) >> B_UNITSHIFT) & B_UNITMASK)
#define B_PARTITIONSHIFT   8
#define B_PARTITIONMASK   0xff
#define B_PARTITION(val)   (((val) >> B_PARTITIONSHIFT) & B_PARTITIONMASK)
#define B_TYPESHIFT   0
#define B_TYPEMASK   0xff
#define B_TYPE(val)   (((val) >> B_TYPESHIFT) & B_TYPEMASK)
#define B_MAGICMASK   ((u_int)0xf0000000U)
#define B_DEVMAGIC   ((u_int)0xa0000000U)
#define MAKEBOOTDEV(type, adaptor, controller, unit, partition)

Functions

__BEGIN_DECLS int reboot (int __howto) __THROW

Define Documentation

#define B_ADAPTOR (   val)    (((val) >> B_ADAPTORSHIFT) & B_ADAPTORMASK)

Definition at line 133 of file reboot.h.

#define B_ADAPTORMASK   0x0f

Definition at line 132 of file reboot.h.

#define B_ADAPTORSHIFT   24

Definition at line 131 of file reboot.h.

#define B_CONTROLLER (   val)    (((val)>>B_CONTROLLERSHIFT) & B_CONTROLLERMASK)

Definition at line 136 of file reboot.h.

#define B_CONTROLLERMASK   0xf

Definition at line 135 of file reboot.h.

#define B_CONTROLLERSHIFT   20

Definition at line 134 of file reboot.h.

#define B_DEVMAGIC   ((u_int)0xa0000000U)

Definition at line 148 of file reboot.h.

#define B_MAGICMASK   ((u_int)0xf0000000U)

Definition at line 147 of file reboot.h.

#define B_PARTITION (   val)    (((val) >> B_PARTITIONSHIFT) & B_PARTITIONMASK)

Definition at line 142 of file reboot.h.

#define B_PARTITIONMASK   0xff

Definition at line 141 of file reboot.h.

#define B_PARTITIONSHIFT   8

Definition at line 140 of file reboot.h.

#define B_TYPE (   val)    (((val) >> B_TYPESHIFT) & B_TYPEMASK)

Definition at line 145 of file reboot.h.

#define B_TYPEMASK   0xff

Definition at line 144 of file reboot.h.

#define B_TYPESHIFT   0

Definition at line 143 of file reboot.h.

#define B_UNIT (   val)    (((val) >> B_UNITSHIFT) & B_UNITMASK)

Definition at line 139 of file reboot.h.

#define B_UNITMASK   0xf

Definition at line 138 of file reboot.h.

#define B_UNITSHIFT   16

Definition at line 137 of file reboot.h.

#define MAKEBOOTDEV (   type,
  adaptor,
  controller,
  unit,
  partition 
)
Value:
(((type) << B_TYPESHIFT) | ((adaptor) << B_ADAPTORSHIFT) | \
       ((controller) << B_CONTROLLERSHIFT) | ((unit) << B_UNITSHIFT) | \
       ((partition) << B_PARTITIONSHIFT) | B_DEVMAGIC)

Definition at line 150 of file reboot.h.

#define RB_ALTBOOT   0x40 /* use /boot.old vs /boot */

Definition at line 112 of file reboot.h.

#define RB_ASKNAME   0x01 /* -a: ask for file name to reboot from */

Definition at line 103 of file reboot.h.

#define RB_AUTOBOOT   0 /* flags for system auto-booting itself */

Definition at line 101 of file reboot.h.

#define RB_DEBUGGER
Value:
0x1000 /*     for host_reboot(): enter kernel
                                   debugger from user level */

Definition at line 117 of file reboot.h.

#define RB_DFLTROOT   0x20 /* use compiled-in rootdev */

Definition at line 110 of file reboot.h.

#define RB_HALT   0x08 /* -h: enter KDB at bootup */

Definition at line 106 of file reboot.h.

#define RB_INITNAME   0x10 /* -i: name given for /etc/init (unused) */

Definition at line 109 of file reboot.h.

#define RB_KDB   0x04 /* -d: kernel debugger symbols loaded */

Definition at line 105 of file reboot.h.

#define RB_NOBOOTRC   0x20 /* -b: don't run /etc/rc.boot */

Definition at line 111 of file reboot.h.

#define RB_SHIFT   8 /* second byte is for ux */

Definition at line 115 of file reboot.h.

#define RB_SINGLE   0x02 /* -s: reboot to single user only */

Definition at line 104 of file reboot.h.

#define RB_UNIPROC   0x80 /* -u: start only one processor */

Definition at line 113 of file reboot.h.


Function Documentation

__BEGIN_DECLS int reboot ( int  __howto)

Definition at line 25 of file reboot.c.

{
  __set_errno (ENOSYS);
  return -1;
}