const.h File Reference

This graph shows which files directly or indirectly include this file:

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 HZ   60
#define SUPER_USER   (uid_t) 0
#define NULL   ((void *)0)
#define CPVEC_NR   16
#define CPVVEC_NR   64
#define NR_IOREQS   MIN(NR_BUFS, 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 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 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 ALL_MODES   0006777
#define RWX_MODES   0000777
#define R_BIT   0000004
#define W_BIT   0000002
#define X_BIT   0000001
#define I_NOT_ALLOC   0000000
#define MAX_BLOCK_NR   ((block_t) 077777777)
#define HIGHEST_ZONE   ((zone_t) 077777777)
#define MAX_INODE_NR   ((ino_t) 037777777777)
#define MAX_FILE_POS   ((off_t) 037777777777)
#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 Documentation

#define ABS   -999
 

Definition at line 88 of file const.h.

#define ALL_MODES   0006777
 

Definition at line 100 of file const.h.

#define BIOS_SEG   0x0200
 

Definition at line 41 of file const.h.

Referenced by do_first_init(), do_initialize(), do_umap(), dp_getblock(), dp_nic2user(), dp_user2nic(), gettime(), init_params(), scr_init(), and virtual_copy().

#define BYTE   0377
 

Definition at line 55 of file const.h.

#define CLICK_SHIFT   12
 

Definition at line 74 of file const.h.

#define CLICK_SHIFT   12
 

Definition at line 74 of file const.h.

Referenced by addrread(), adjust(), alloc_segments(), disp_maps(), do_allocmem(), do_brk(), do_exec(), do_fork(), do_freemem(), dump_core(), dump_maps(), dump_stack(), holes_dmp(), new_mem(), print_memory(), pstat(), read_header(), read_info(), read_segmap(), rw_seg(), sys_call(), umap_local(), update(), and vm_map_default().

#define CLICK_SIZE   4096
 

Definition at line 73 of file const.h.

#define CLICK_SIZE   4096
 

Definition at line 73 of file const.h.

Referenced by do_allocmem(), do_brk(), do_exec(), do_freemem(), new_mem(), and read_header().

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

Definition at line 81 of file const.h.

Referenced by alloc_segments().

#define CPVEC_NR   16
 

Definition at line 19 of file const.h.

Referenced by cp_b2u(), and cp_u2b().

#define CPVVEC_NR   64
 

Definition at line 20 of file const.h.

#define D   1
 

Definition at line 35 of file const.h.

#define DEAD_CODE   0
 

Definition at line 47 of file const.h.

Referenced by do_fkey_ctl().

#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 48 of file const.h.

#define HAVE_SCATTERED_IO   1
 

Definition at line 60 of file const.h.

#define HCLICK_SHIFT   4
 

Definition at line 78 of file const.h.

#define HCLICK_SIZE   16
 

Definition at line 79 of file const.h.

Referenced by outsegreg(), and phys2seg().

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

Definition at line 85 of file const.h.

Referenced by init_params(), and seg2phys().

#define HIGHEST_ZONE   ((zone_t) 077777777)
 

Definition at line 109 of file const.h.

#define HZ   60
 

Definition at line 14 of file const.h.

Referenced by clock_time(), do_stime(), do_time(), fxp_init(), fxp_watchdog_f(), get_cmostime(), handle_req(), icmp_router_advertisement(), ip_port_arrive(), ipeth_restart_send(), ipeth_update_ttl(), ipr_add_oroute(), ipr_redirect(), kbd_send(), kbd_watchdog(), load_update(), m_read(), main(), make_pack(), oroute_del(), print_conn(), reassemble(), rl_clear_rx(), rl_handler(), rl_init(), rl_reset_hw(), rl_watchdog_f(), seek(), set_alarm(), settimer(), tcp_release_retrans(), tcp_send_timeout(), tcp_set_send_timer(), and w_io_test().

#define I_BLOCK_SPECIAL   0060000
 

Definition at line 94 of file const.h.

Referenced by chkmode(), common_open(), do_close(), do_ioctl(), list(), mode_con(), name_to_dev(), rahead(), read_write(), rw_chunk(), show_info(), stat_inode(), and truncate_inode().

#define I_CHAR_SPECIAL   0020000
 

Definition at line 96 of file const.h.

Referenced by chkmode(), clone_opcl(), common_open(), do_close(), do_ioctl(), list(), mode_con(), read_write(), select_major_match(), show_info(), stat_inode(), and truncate_inode().

#define I_DIRECTORY   0040000
 

Definition at line 95 of file const.h.

Referenced by change_into(), chkinode(), chkmode(), common_open(), do_link(), do_mkdir(), do_rename(), do_unlink(), init_root(), list(), mode_con(), parse_path(), read_write(), search_dir(), show_info(), and zonechk().

#define I_NAMED_PIPE   0010000
 

Definition at line 97 of file const.h.

Referenced by chkmode(), common_open(), do_mknod(), do_pipe(), list(), read_write(), and select_match_pipe().

#define I_NOT_ALLOC   0000000
 

Definition at line 105 of file const.h.

Referenced by chkilist(), counterror(), and put_inode().

#define I_REGULAR   0100000
 

Definition at line 93 of file const.h.

Referenced by allowed(), chkmode(), common_open(), do_fcntl(), do_ftruncate(), do_pipe(), do_truncate(), dump_file(), list(), lock_op(), mode_con(), read_write(), select_match_file(), and stat_inode().

#define I_SET_GID_BIT   0002000
 

Definition at line 99 of file const.h.

Referenced by do_chmod(), do_chown(), do_exec(), list(), mode_con(), and show_info().

#define I_SET_UID_BIT   0004000
 

Definition at line 98 of file const.h.

Referenced by do_chown(), do_exec(), list(), mode_con(), and show_info().

#define I_SYMBOLIC_LINK   0120000
 

Definition at line 92 of file const.h.

Referenced by chkmode(), do_slink(), list(), and zonechk().

#define I_TYPE   0170000
 

Definition at line 91 of file const.h.

Referenced by allowed(), change_into(), chkinode(), chkmode(), common_open(), do_close(), do_fcntl(), do_ftruncate(), do_ioctl(), do_link(), do_mknod(), do_rename(), do_truncate(), do_unlink(), dump_file(), init_root(), list(), lock_op(), name_to_dev(), parse_path(), rahead(), read_write(), rw_chunk(), search_dir(), select_major_match(), show_info(), stat_inode(), truncate_inode(), and zonechk().

#define LOCAL_SEG   0x0000
 

Definition at line 32 of file const.h.

Referenced by do_umap(), and virtual_copy().

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

Definition at line 63 of file const.h.

#define MAX_BLOCK_NR   ((block_t) 077777777)
 

Definition at line 108 of file const.h.

#define MAX_FILE_POS   ((off_t) 037777777777)
 

Definition at line 111 of file const.h.

Referenced by chksuper(), and lock_op().

#define MAX_INODE_NR   ((ino_t) 037777777777)
 

Definition at line 110 of file const.h.

#define MAX_SYM_LOOPS   8
 

Definition at line 113 of file const.h.

#define MESS_SIZE   (sizeof(message))
 

Definition at line 25 of file const.h.

Referenced by get_message(), and sys_call().

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

Definition at line 64 of file const.h.

#define NIL_MESS   ((message *) 0)
 

Definition at line 26 of file const.h.

#define NIL_PTR   (char *) 0
 

Definition at line 59 of file const.h.

#define NO_BLOCK   ((block_t) 0)
 

Definition at line 115 of file const.h.

Referenced by buf_pool(), clear_zone(), do_rdlink(), initvars(), ltraverse(), new_block(), read_ahead(), read_map(), rw_chunk(), search_dir(), and zeroblock_range().

#define NO_DEV   ((dev_t) 0)
 

Definition at line 118 of file const.h.

Referenced by alloc_inode(), buf_pool(), chkspecial(), dev_up(), do_mount(), do_reboot(), do_sync(), do_umount(), get_block(), get_block_size(), get_super(), init_root(), invalidate(), name_to_dev(), put_block(), rahead(), read_super(), read_write(), rw_block(), rw_chunk(), and stat_inode().

#define NO_ENTRY   ((ino_t) 0)
 

Definition at line 116 of file const.h.

Referenced by chkdirzone().

#define NO_NUM   0x8000
 

Definition at line 58 of file const.h.

Referenced by __bad_assertion(), alloc_bit(), allowed(), complete_bars(), dma_setup(), do_fork(), do_init(), do_pipe(), do_slink(), do_unpause(), do_vread(), do_vwrite(), dp_check_ints(), ec_check_ints(), el1_send(), el3_open(), env_panic(), exception(), free_bit(), free_mem(), fs_cancel_timer(), fs_expire_timers(), fs_init(), fs_set_timer(), fxp_cu_ptr_cmd(), fxp_do_conf(), fxp_getstat(), fxp_probe(), fxp_restart_ru(), fxp_ru_ptr_cmd(), fxp_writev(), get_block_size(), get_super(), get_work(), inet_panic(), isokendpt_f(), kbc_read(), lance_probe(), main(), mess_reply(), mii_read(), ns_send(), panic(), pm_cancel_timer(), pm_expire_timers(), pm_set_timer(), rd_indir(), read_exca(), read_super(), read_write(), report(), rl_clear_rx(), rl_handler(), rl_probe(), rl_readv(), rl_reset_hw(), rl_writev(), rtl_probe(), rw_chunk(), search_dir(), sig_proc(), suspend(), vm_init(), vm_map_default(), w_identify(), w_io_test(), w_transfer(), wr_indir(), and zeroblock_range().

#define NO_ZONE   ((zone_t) 0)
 

Definition at line 117 of file const.h.

Referenced by alloc_zone(), chkspecial(), chkzones(), common_open(), Data_Block(), empty_indir(), freesp_inode(), get_block(), Indirect(), new_block(), rd_indir(), read_map(), wipe_inode(), and write_map().

#define NR_BIOS_SEGS   3
 

Definition at line 42 of file const.h.

#define NR_IOREQS   MIN(NR_BUFS, 64)
 

Definition at line 21 of file const.h.

Referenced by do_vrdwt(), rahead(), and rw_scattered().

#define NR_LOCAL_SEGS   3
 

Definition at line 33 of file const.h.

Referenced by dump_all_segs(), dump_core(), dump_maps(), dump_proc_table(), main(), pm_init(), and stack_trace().

#define NR_REMOTE_SEGS   3
 

Definition at line 39 of file const.h.

Referenced by do_segctl(), and umap_remote().

#define NULL   ((void *)0)
 

Definition at line 18 of file const.h.

#define PHYS_SEG   0x0400
 

Definition at line 44 of file const.h.

Referenced by con_loadfont(), do_copy(), do_vcopy(), m_transfer(), rl_readv(), rl_writev(), and virtual_copy().

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

Definition at line 86 of file const.h.

#define PRIVATE   static
 

Definition at line 7 of file const.h.

Referenced by ctermid(), cuserid(), getlogin(), lockpath(), and tgoto().

#define PROC_NAME_LEN   16
 

Definition at line 52 of file const.h.

Referenced by do_getprocnr().

#define PUBLIC
 

Definition at line 8 of file const.h.

#define R_BIT   0000004
 

Definition at line 102 of file const.h.

Referenced by common_open(), dev_up(), do_cancel(), do_close(), do_open(), do_pipe(), do_unpause(), init_root(), lock_op(), pipe_check(), pipe_open(), printperm(), read_write(), and stat_inode().

#define READING   0
 

Definition at line 56 of file const.h.

#define REMOTE_SEG   0x0100
 

Definition at line 38 of file const.h.

Referenced by do_umap(), and virtual_copy().

#define RWX_MODES   0000777
 

Definition at line 101 of file const.h.

Referenced by do_mkdir(), do_slink(), do_umask(), and show_info().

#define S   2
 

Definition at line 36 of file const.h.

Referenced by adjust(), alloc_segments(), CTL(), do_exec(), do_fork(), dump_stack(), LIB(), lookup(), map_addr(), memmap_dmp(), new_mem(), pm_exit(), proctab_dmp(), pstat(), read_info(), read_segmap(), setmap(), sys_call(), umap_local(), update(), and vm_map_default().

#define SEGMENT_INDEX   0x00FF
 

Definition at line 30 of file const.h.

Referenced by do_umap(), and virtual_copy().

#define SEGMENT_TYPE   0xFF00
 

Definition at line 29 of file const.h.

Referenced by do_umap(), and virtual_copy().

#define SUPER_USER   (uid_t) 0
 

Definition at line 16 of file const.h.

Referenced by allowed(), check_sig(), do_getset(), do_getsetpriority(), do_reboot(), and do_stime().

#define T   0
 

Definition at line 34 of file const.h.

#define TEMP_CODE   1
 

Definition at line 49 of file const.h.

#define TRUE   1
 

Definition at line 11 of file const.h.

#define W_BIT   0000002
 

Definition at line 103 of file const.h.

Referenced by common_open(), dev_up(), do_cancel(), do_pipe(), do_rename(), do_unpause(), do_utime(), init_root(), lock_op(), pipe_check(), pipe_open(), printperm(), read_write(), search_dir(), and w_do_open().

#define WRITING   1
 

Definition at line 57 of file const.h.

#define X_BIT   0000001
 

Definition at line 104 of file const.h.

Referenced by allowed(), change_into(), do_exec(), do_rename(), printperm(), and search_dir().


Generated on Fri Apr 14 22:59:32 2006 for minix by  doxygen 1.4.6