Annotation of 43BSD/sys/h/reboot.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1982, 1986 Regents of the University of California.
                      3:  * All rights reserved.  The Berkeley software License Agreement
                      4:  * specifies the terms and conditions for redistribution.
                      5:  *
                      6:  *     @(#)reboot.h    7.1 (Berkeley) 6/4/86
                      7:  */
                      8: 
                      9: /*
                     10:  * Arguments to reboot system call.
                     11:  * These are passed to boot program in r11,
                     12:  * and on to init.
                     13:  */
                     14: #define        RB_AUTOBOOT     0       /* flags for system auto-booting itself */
                     15: 
                     16: #define        RB_ASKNAME      0x01    /* ask for file name to reboot from */
                     17: #define        RB_SINGLE       0x02    /* reboot to single user only */
                     18: #define        RB_NOSYNC       0x04    /* dont sync before reboot */
                     19: #define        RB_HALT         0x08    /* don't reboot, just halt */
                     20: #define        RB_INITNAME     0x10    /* name given for /etc/init */
                     21: #define        RB_DFLTROOT     0x20    /* use compiled-in rootdev */
                     22: 
                     23: #define        RB_PANIC        0       /* reboot due to panic */
                     24: #define        RB_BOOT         1       /* reboot due to boot() */
                     25: 
                     26: /*
                     27:  * Constants for converting boot-style device number to type,
                     28:  * adaptor (uba, mba, etc), unit number and partition number.
                     29:  * Type (== major device number) is in the low byte
                     30:  * for backward compatibility.  Except for that of the "magic
                     31:  * number", each mask applies to the shifted value.
                     32:  */
                     33: #define        B_ADAPTORSHIFT  24
                     34: #define        B_ADAPTORMASK   0x0f
                     35: #define B_UNITSHIFT    16
                     36: #define B_UNITMASK     0xff
                     37: #define B_PARTITIONSHIFT 8
                     38: #define B_PARTITIONMASK        0xff
                     39: #define        B_TYPESHIFT     0
                     40: #define        B_TYPEMASK      0xff
                     41: #define        B_MAGICMASK     0xf0000000
                     42: #define        B_DEVMAGIC      0xa0000000

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.