src/include/minix/const.h File Reference

Go to the source code of this file.

Defines

#define EXTERN   extern
#define PRIVATE   static
#define PUBLIC
#define FORWARD   static
#define TRUE   1
#define FALSE   0
#define DEFAULT_HZ   60
#define SUPER_USER   (uid_t) 0
#define NULL   ((void *)0)
#define SCPVEC_NR   64
#define NR_IOREQS   64
#define MESS_SIZE   (sizeof(message))
#define NIL_MESS   ((message *) 0)
#define SEGMENT_TYPE   0xFF00
#define SEGMENT_INDEX   0x00FF
#define LOCAL_SEG   0x0000
#define NR_LOCAL_SEGS   3
#define T   0
#define D   1
#define S   2
#define REMOTE_SEG   0x0100
#define NR_REMOTE_SEGS   3
#define BIOS_SEG   0x0200
#define NR_BIOS_SEGS   3
#define PHYS_SEG   0x0400
#define LOCAL_VM_SEG   0x1000
#define VM_D   (LOCAL_VM_SEG | D)
#define VM_T   (LOCAL_VM_SEG | T)
#define MEM_GRANT   3
#define VM_GRANT   (LOCAL_VM_SEG | MEM_GRANT)
#define DEAD_CODE   0
#define FUTURE_CODE   0
#define TEMP_CODE   1
#define PROC_NAME_LEN   16
#define BYTE   0377
#define READING   0
#define WRITING   1
#define NO_NUM   0x8000
#define NIL_PTR   (char *) 0
#define HAVE_SCATTERED_IO   1
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
#define CLICK_SIZE   4096
#define CLICK_SHIFT   12
#define CLICK_SIZE   4096
#define CLICK_SHIFT   12
#define CLICK_FLOOR(n)   (((vir_bytes)(n) / CLICK_SIZE) * CLICK_SIZE)
#define CLICK_CEIL(n)   CLICK_FLOOR((vir_bytes)(n) + CLICK_SIZE-1)
#define NR_MEMS   8
#define HCLICK_SHIFT   4
#define HCLICK_SIZE   16
#define click_to_hclick(n)   ((n) << (CLICK_SHIFT - HCLICK_SHIFT))
#define hclick_to_physb(n)   ((phys_bytes) (n) << HCLICK_SHIFT)
#define physb_to_hclick(n)   ((n) >> HCLICK_SHIFT)
#define ABS   -999
#define I_TYPE   0170000
#define I_SYMBOLIC_LINK   0120000
#define I_REGULAR   0100000
#define I_BLOCK_SPECIAL   0060000
#define I_DIRECTORY   0040000
#define I_CHAR_SPECIAL   0020000
#define I_NAMED_PIPE   0010000
#define I_SET_UID_BIT   0004000
#define I_SET_GID_BIT   0002000
#define I_SET_STCKY_BIT   0001000
#define ALL_MODES   0007777
#define RWX_MODES   0000777
#define R_BIT   0000004
#define W_BIT   0000002
#define X_BIT   0000001
#define I_NOT_ALLOC   0000000
#define MAX_INODE_NR   ((ino_t) 037777777777)
#define MAX_FILE_POS   ((off_t) 0x7FFFFFFF)
#define MAX_SYM_LOOPS   8
#define NO_BLOCK   ((block_t) 0)
#define NO_ENTRY   ((ino_t) 0)
#define NO_ZONE   ((zone_t) 0)
#define NO_DEV   ((dev_t) 0)
#define SERVARNAME   "cttyline"
#define PROC_FULLVM   0x100
#define PREEMPTIBLE   0x02
#define BILLABLE   0x04
#define DYN_PRIV_ID   0x08
#define SYS_PROC   0x10
#define CHECK_IO_PORT   0x20
#define CHECK_IRQ   0x40
#define CHECK_MEM   0x80


Define Documentation

#define ABS   -999

Definition at line 104 of file const.h.

#define ALL_MODES   0007777

Definition at line 117 of file const.h.

#define BILLABLE   0x04

Definition at line 142 of file const.h.

#define BIOS_SEG   0x0200

Definition at line 40 of file const.h.

#define BYTE   0377

Definition at line 60 of file const.h.

#define CHECK_IO_PORT   0x20

Definition at line 146 of file const.h.

#define CHECK_IRQ   0x40

Definition at line 147 of file const.h.

#define CHECK_MEM   0x80

Definition at line 148 of file const.h.

#define CLICK_CEIL ( n   )     CLICK_FLOOR((vir_bytes)(n) + CLICK_SIZE-1)

Definition at line 84 of file const.h.

#define CLICK_FLOOR ( n   )     (((vir_bytes)(n) / CLICK_SIZE) * CLICK_SIZE)

Definition at line 83 of file const.h.

#define CLICK_SHIFT   12

Definition at line 79 of file const.h.

#define CLICK_SHIFT   12

Definition at line 79 of file const.h.

#define CLICK_SIZE   4096

Definition at line 78 of file const.h.

#define CLICK_SIZE   4096

Definition at line 78 of file const.h.

#define click_to_hclick ( n   )     ((n) << (CLICK_SHIFT - HCLICK_SHIFT))

Definition at line 97 of file const.h.

#define D   1

Definition at line 34 of file const.h.

#define DEAD_CODE   0

Definition at line 52 of file const.h.

#define DEFAULT_HZ   60

Definition at line 14 of file const.h.

#define DYN_PRIV_ID   0x08

Definition at line 143 of file const.h.

#define EXTERN   extern

Definition at line 6 of file const.h.

#define FALSE   0

Definition at line 12 of file const.h.

#define FORWARD   static

Definition at line 9 of file const.h.

#define FUTURE_CODE   0

Definition at line 53 of file const.h.

#define HAVE_SCATTERED_IO   1

Definition at line 65 of file const.h.

#define HCLICK_SHIFT   4

Definition at line 94 of file const.h.

#define HCLICK_SIZE   16

Definition at line 95 of file const.h.

#define hclick_to_physb ( n   )     ((phys_bytes) (n) << HCLICK_SHIFT)

Definition at line 101 of file const.h.

#define I_BLOCK_SPECIAL   0060000

Definition at line 110 of file const.h.

#define I_CHAR_SPECIAL   0020000

Definition at line 112 of file const.h.

#define I_DIRECTORY   0040000

Definition at line 111 of file const.h.

#define I_NAMED_PIPE   0010000

Definition at line 113 of file const.h.

#define I_NOT_ALLOC   0000000

Definition at line 122 of file const.h.

#define I_REGULAR   0100000

Definition at line 109 of file const.h.

#define I_SET_GID_BIT   0002000

Definition at line 115 of file const.h.

#define I_SET_STCKY_BIT   0001000

Definition at line 116 of file const.h.

#define I_SET_UID_BIT   0004000

Definition at line 114 of file const.h.

#define I_SYMBOLIC_LINK   0120000

Definition at line 108 of file const.h.

#define I_TYPE   0170000

Definition at line 107 of file const.h.

#define LOCAL_SEG   0x0000

Definition at line 31 of file const.h.

#define LOCAL_VM_SEG   0x1000

Definition at line 45 of file const.h.

#define MAX ( a,
b   )     ((a) > (b) ? (a) : (b))

Definition at line 68 of file const.h.

#define MAX_FILE_POS   ((off_t) 0x7FFFFFFF)

Definition at line 126 of file const.h.

#define MAX_INODE_NR   ((ino_t) 037777777777)

Definition at line 125 of file const.h.

#define MAX_SYM_LOOPS   8

Definition at line 128 of file const.h.

#define MEM_GRANT   3

Definition at line 48 of file const.h.

#define MESS_SIZE   (sizeof(message))

Definition at line 24 of file const.h.

#define MIN ( a,
b   )     ((a) < (b) ? (a) : (b))

Definition at line 69 of file const.h.

#define NIL_MESS   ((message *) 0)

Definition at line 25 of file const.h.

#define NIL_PTR   (char *) 0

Definition at line 64 of file const.h.

#define NO_BLOCK   ((block_t) 0)

Definition at line 130 of file const.h.

#define NO_DEV   ((dev_t) 0)

Definition at line 133 of file const.h.

#define NO_ENTRY   ((ino_t) 0)

Definition at line 131 of file const.h.

#define NO_NUM   0x8000

Definition at line 63 of file const.h.

#define NO_ZONE   ((zone_t) 0)

Definition at line 132 of file const.h.

#define NR_BIOS_SEGS   3

Definition at line 41 of file const.h.

#define NR_IOREQS   64

Definition at line 20 of file const.h.

#define NR_LOCAL_SEGS   3

Definition at line 32 of file const.h.

#define NR_MEMS   8

Definition at line 90 of file const.h.

#define NR_REMOTE_SEGS   3

Definition at line 38 of file const.h.

#define NULL   ((void *)0)

Definition at line 18 of file const.h.

#define PHYS_SEG   0x0400

Definition at line 43 of file const.h.

#define physb_to_hclick ( n   )     ((n) >> HCLICK_SHIFT)

Definition at line 102 of file const.h.

#define PREEMPTIBLE   0x02

Definition at line 141 of file const.h.

#define PRIVATE   static

Definition at line 7 of file const.h.

#define PROC_FULLVM   0x100

Definition at line 138 of file const.h.

#define PROC_NAME_LEN   16

Definition at line 57 of file const.h.

#define PUBLIC

Definition at line 8 of file const.h.

#define R_BIT   0000004

Definition at line 119 of file const.h.

#define READING   0

Definition at line 61 of file const.h.

#define REMOTE_SEG   0x0100

Definition at line 37 of file const.h.

#define RWX_MODES   0000777

Definition at line 118 of file const.h.

#define S   2

Definition at line 35 of file const.h.

#define SCPVEC_NR   64

Definition at line 19 of file const.h.

#define SEGMENT_INDEX   0x00FF

Definition at line 29 of file const.h.

#define SEGMENT_TYPE   0xFF00

Definition at line 28 of file const.h.

#define SERVARNAME   "cttyline"

Definition at line 135 of file const.h.

#define SUPER_USER   (uid_t) 0

Definition at line 16 of file const.h.

#define SYS_PROC   0x10

Definition at line 145 of file const.h.

#define T   0

Definition at line 33 of file const.h.

#define TEMP_CODE   1

Definition at line 54 of file const.h.

#define TRUE   1

Definition at line 11 of file const.h.

#define VM_D   (LOCAL_VM_SEG | D)

Definition at line 46 of file const.h.

#define VM_GRANT   (LOCAL_VM_SEG | MEM_GRANT)

Definition at line 49 of file const.h.

#define VM_T   (LOCAL_VM_SEG | T)

Definition at line 47 of file const.h.

#define W_BIT   0000002

Definition at line 120 of file const.h.

#define WRITING   1

Definition at line 62 of file const.h.

#define X_BIT   0000001

Definition at line 121 of file const.h.


Generated on Tue Mar 9 04:36:52 2010 for Minix by  doxygen 1.5.8