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 V1_NR_DZONES   7
#define V1_NR_TZONES   9
#define V2_NR_DZONES   7
#define V2_NR_TZONES   10
#define NR_FILPS   256
#define NR_INODES   256
#define NR_SUPERS   12
#define NR_LOCKS   8
#define usizeof(t)   ((unsigned) sizeof(t))
#define SUPER_MAGIC   0x137F
#define SUPER_REV   0x7F13
#define SUPER_V2   0x2468
#define SUPER_V2_REV   0x6824
#define SUPER_V3   0x4d5a
#define V1   1
#define V2   2
#define V3   3
#define SU_UID   ((uid_t) 0)
#define SERVERS_UID   ((uid_t) 11)
#define SYS_UID   ((uid_t) 0)
#define SYS_GID   ((gid_t) 0)
#define NORMAL   0
#define NO_READ   1
#define PREFETCH   2
#define XPIPE   (-NR_TASKS-1)
#define XLOCK   (-NR_TASKS-2)
#define XPOPEN   (-NR_TASKS-3)
#define XSELECT   (-NR_TASKS-4)
#define NO_BIT   ((bit_t) 0)
#define DUP_MASK   0100
#define LOOK_UP   0
#define ENTER   1
#define DELETE   2
#define IS_EMPTY   3
#define WMAP_FREE   (1 << 0)
#define PATH_TRANSPARENT   000
#define PATH_PENULTIMATE   001
#define PATH_OPAQUE   002
#define PATH_NONSYMBOLIC   004
#define PATH_STRIPDOT   010
#define EAT_PATH   PATH_TRANSPARENT
#define EAT_PATH_OPAQUE   PATH_OPAQUE
#define LAST_DIR   PATH_PENULTIMATE
#define LAST_DIR_NOTDOT   PATH_PENULTIMATE | PATH_STRIPDOT
#define LAST_DIR_EATSYM   PATH_NONSYMBOLIC
#define SYMLOOP   16
#define CLEAN   0
#define DIRTY   1
#define ATIME   002
#define CTIME   004
#define MTIME   010
#define BYTE_SWAP   0
#define END_OF_FILE   (-104)
#define ROOT_INODE   1
#define BOOT_BLOCK   ((block_t) 0)
#define SUPER_BLOCK_BYTES   (1024)
#define START_BLOCK   2
#define DIR_ENTRY_SIZE   usizeof (struct direct)
#define NR_DIR_ENTRIES(b)   ((b)/DIR_ENTRY_SIZE)
#define SUPER_SIZE   usizeof (struct super_block)
#define PIPE_SIZE(b)   (V1_NR_DZONES*(b))
#define FS_BITMAP_CHUNKS(b)   ((b)/usizeof (bitchunk_t))
#define FS_BITCHUNK_BITS   (usizeof(bitchunk_t) * CHAR_BIT)
#define FS_BITS_PER_BLOCK(b)   (FS_BITMAP_CHUNKS(b) * FS_BITCHUNK_BITS)
#define V1_ZONE_NUM_SIZE   usizeof (zone1_t)
#define V1_INODE_SIZE   usizeof (d1_inode)
#define V1_INDIRECTS   (_STATIC_BLOCK_SIZE/V1_ZONE_NUM_SIZE)
#define V1_INODES_PER_BLOCK   (_STATIC_BLOCK_SIZE/V1_INODE_SIZE)
#define V2_ZONE_NUM_SIZE   usizeof (zone_t)
#define V2_INODE_SIZE   usizeof (d2_inode)
#define V2_INDIRECTS(b)   ((b)/V2_ZONE_NUM_SIZE)
#define V2_INODES_PER_BLOCK(b)   ((b)/V2_INODE_SIZE)


Define Documentation

#define ATIME   002
 

Definition at line 69 of file const.h.

#define BOOT_BLOCK   ((block_t) 0)
 

Definition at line 78 of file const.h.

Referenced by Block_Type().

#define BYTE_SWAP   0
 

Definition at line 73 of file const.h.

Referenced by read_super().

#define CLEAN   0
 

Definition at line 67 of file const.h.

Referenced by rw_block(), and rw_inode().

#define CTIME   004
 

Definition at line 70 of file const.h.

Referenced by do_chmod(), do_chown(), do_link(), do_pipe(), do_utime(), read_write(), search_dir(), unlink_file(), update_times(), and wipe_inode().

#define DELETE   2
 

Definition at line 49 of file const.h.

#define DIR_ENTRY_SIZE   usizeof (struct direct)
 

Definition at line 82 of file const.h.

#define DIRTY   1
 

Definition at line 68 of file const.h.

Referenced by alloc_bit(), do_chmod(), do_chown(), do_link(), do_mkdir(), do_rename(), do_sync(), do_utime(), flushall(), free_bit(), get_block(), new_node(), put_block(), put_inode(), read_write(), rw_chunk(), rw_inode(), search_dir(), truncate_inode(), unlink_file(), wipe_inode(), write_map(), zero_block(), and zeroblock_range().

#define DUP_MASK   0100
 

Definition at line 45 of file const.h.

Referenced by do_dup().

#define EAT_PATH   PATH_TRANSPARENT
 

Definition at line 60 of file const.h.

Referenced by eat_path().

#define EAT_PATH_OPAQUE   PATH_OPAQUE
 

Definition at line 61 of file const.h.

Referenced by do_lstat(), and do_rdlink().

#define END_OF_FILE   (-104)
 

Definition at line 75 of file const.h.

Referenced by read_write(), and rw_block().

#define ENTER   1
 

Definition at line 48 of file const.h.

#define FS_BITCHUNK_BITS   (usizeof(bitchunk_t) * CHAR_BIT)
 

Definition at line 88 of file const.h.

Referenced by alloc_bit(), and free_bit().

#define FS_BITMAP_CHUNKS b   )     ((b)/usizeof (bitchunk_t))
 

Definition at line 87 of file const.h.

Referenced by alloc_bit().

#define FS_BITS_PER_BLOCK b   )     (FS_BITMAP_CHUNKS(b) * FS_BITCHUNK_BITS)
 

Definition at line 89 of file const.h.

Referenced by alloc_bit(), bitmapsize(), and free_bit().

#define IS_EMPTY   3
 

Definition at line 50 of file const.h.

Referenced by remove_dir(), and search_dir().

#define LAST_DIR   PATH_PENULTIMATE
 

Definition at line 62 of file const.h.

Referenced by last_dir(), and new_node().

#define LAST_DIR_EATSYM   PATH_NONSYMBOLIC
 

Definition at line 64 of file const.h.

Referenced by new_node().

#define LAST_DIR_NOTDOT   PATH_PENULTIMATE | PATH_STRIPDOT
 

Definition at line 63 of file const.h.

#define LOOK_UP   0
 

Definition at line 47 of file const.h.

#define MTIME   010
 

Definition at line 71 of file const.h.

#define NO_BIT   ((bit_t) 0)
 

Definition at line 43 of file const.h.

Referenced by alloc_bit(), alloc_inode(), alloc_zone(), fillbitmap(), getlist(), getnumber(), and lsi().

#define NO_READ   1
 

Definition at line 35 of file const.h.

Referenced by clear_zone(), new_block(), rw_chunk(), and write_map().

#define NORMAL   0
 

Definition at line 34 of file const.h.

#define NR_DIR_ENTRIES b   )     ((b)/DIR_ENTRY_SIZE)
 

Definition at line 83 of file const.h.

Referenced by chkdirzone(), enter_dir(), print_fs(), and search_dir().

#define NR_FILPS   256
 

Definition at line 7 of file const.h.

Referenced by find_filp(), and release().

#define NR_INODES   256
 

Definition at line 8 of file const.h.

Referenced by do_sync(), get_inode(), and unmount().

#define NR_LOCKS   8
 

Definition at line 10 of file const.h.

Referenced by do_close(), and lock_op().

#define NR_SUPERS   12
 

Definition at line 9 of file const.h.

Referenced by advance(), dev_up(), do_mount(), do_reboot(), forbidden(), get_block_size(), get_super(), init_root(), mounted(), and unmount().

#define PATH_NONSYMBOLIC   004
 

Definition at line 58 of file const.h.

Referenced by parse_path().

#define PATH_OPAQUE   002
 

Definition at line 57 of file const.h.

Referenced by parse_path().

#define PATH_PENULTIMATE   001
 

Definition at line 56 of file const.h.

Referenced by parse_path().

#define PATH_STRIPDOT   010
 

Definition at line 59 of file const.h.

#define PATH_TRANSPARENT   000
 

Definition at line 55 of file const.h.

#define PIPE_SIZE b   )     (V1_NR_DZONES*(b))
 

Definition at line 85 of file const.h.

Referenced by pipe_check(), and truncate_inode().

#define PREFETCH   2
 

Definition at line 36 of file const.h.

Referenced by get_block(), and rahead().

#define ROOT_INODE   1
 

Definition at line 77 of file const.h.

Referenced by advance(), chkentry(), chkinode(), chktree(), do_unlink(), forbidden(), fs_init(), init_root(), readfs(), and remove_dir().

#define SERVERS_UID   ((uid_t) 11)
 

Definition at line 31 of file const.h.

Referenced by do_svrctl().

#define START_BLOCK   2
 

Definition at line 80 of file const.h.

Referenced by alloc_bit(), free_bit(), and r_stat().

#define SU_UID   ((uid_t) 0)
 

Definition at line 30 of file const.h.

Referenced by do_svrctl(), main(), and Recover_Blocks().

#define SUPER_BLOCK_BYTES   (1024)
 

Definition at line 79 of file const.h.

Referenced by df(), fsversion(), get_super_block(), main(), read_super(), Read_Super_Block(), and swapon().

#define SUPER_MAGIC   0x137F
 

Definition at line 19 of file const.h.

Referenced by chksuper(), conv_inode(), Draw_Strings(), Draw_Zone_Numbers(), fsversion(), get_super(), getsuper(), main(), read_super(), Read_Super_Block(), and readfs().

#define SUPER_REV   0x7F13
 

Definition at line 20 of file const.h.

Referenced by conv_inode(), Draw_Strings(), Read_Super_Block(), and readfs().

#define SUPER_SIZE   usizeof (struct super_block)
 

Definition at line 84 of file const.h.

Referenced by fsversion(), read_super(), and rw_super().

#define SUPER_V2   0x2468
 

Definition at line 21 of file const.h.

Referenced by chksuper(), conv_inode(), df(), Draw_Strings(), fsversion(), get_super(), getsuper(), main(), r_stat(), r_super(), read_super(), Read_Super_Block(), and readfs().

#define SUPER_V2_REV   0x6824
 

Definition at line 22 of file const.h.

Referenced by conv_inode(), Draw_Strings(), and Read_Super_Block().

#define SUPER_V3   0x4d5a
 

Definition at line 23 of file const.h.

Referenced by chksuper(), conv_inode(), df(), Draw_Strings(), fsversion(), get_super(), getsuper(), main(), r_stat(), r_super(), read_super(), and Read_Super_Block().

#define SYMLOOP   16
 

Definition at line 65 of file const.h.

Referenced by parse_path().

#define SYS_GID   ((gid_t) 0)
 

Definition at line 33 of file const.h.

Referenced by fs_init().

#define SYS_UID   ((uid_t) 0)
 

Definition at line 32 of file const.h.

Referenced by fs_init().

#define usizeof t   )     ((unsigned) sizeof(t))
 

Definition at line 16 of file const.h.

#define V1   1
 

Definition at line 25 of file const.h.

Referenced by do_link(), do_rename(), empty_indir(), new_node(), rd_indir(), read_super(), rw_inode(), and wr_indir().

#define V1_INDIRECTS   (_STATIC_BLOCK_SIZE/V1_ZONE_NUM_SIZE)
 

Definition at line 96 of file const.h.

Referenced by add_z_1(), empty_indir(), get_fileblock(), Indirect(), old_icopy(), r_super(), read_super(), and Read_Super_Block().

#define V1_INODE_SIZE   usizeof (d1_inode)
 

Definition at line 93 of file const.h.

#define V1_INODES_PER_BLOCK   (_STATIC_BLOCK_SIZE/V1_INODE_SIZE)
 

Definition at line 99 of file const.h.

Referenced by add_z_1(), alloc_inode(), enter_dir(), incr_link(), incr_size(), main(), print_fs(), r_super(), read_super(), Read_Super_Block(), readfs(), and rw_inode().

#define V1_NR_DZONES   7
 

Definition at line 2 of file const.h.

Referenced by add_z_1(), enter_dir(), get_fileblock(), old_icopy(), r_super(), read_super(), and Read_Super_Block().

#define V1_NR_TZONES   9
 

Definition at line 3 of file const.h.

#define V1_ZONE_NUM_SIZE   usizeof (zone1_t)
 

Definition at line 92 of file const.h.

Referenced by Read_Super_Block().

#define V2   2
 

Definition at line 26 of file const.h.

Referenced by read_super().

#define V2_INDIRECTS b   )     ((b)/V2_ZONE_NUM_SIZE)
 

Definition at line 104 of file const.h.

Referenced by add_z_2(), empty_indir(), Indirect(), new_icopy(), r_super(), read_super(), and Read_Super_Block().

#define V2_INODE_SIZE   usizeof (d2_inode)
 

Definition at line 103 of file const.h.

#define V2_INODES_PER_BLOCK b   )     ((b)/V2_INODE_SIZE)
 

Definition at line 105 of file const.h.

Referenced by add_z_2(), alloc_inode(), enter_dir(), incr_link(), incr_size(), main(), print_fs(), r_super(), read_super(), Read_Super_Block(), readfs(), and rw_inode().

#define V2_NR_DZONES   7
 

Definition at line 4 of file const.h.

Referenced by add_z_2(), common_open(), do_close(), enter_dir(), new_icopy(), r_super(), read_super(), and Read_Super_Block().

#define V2_NR_TZONES   10
 

Definition at line 5 of file const.h.

#define V2_ZONE_NUM_SIZE   usizeof (zone_t)
 

Definition at line 102 of file const.h.

Referenced by Read_Super_Block().

#define V3   3
 

Definition at line 27 of file const.h.

Referenced by read_super().

#define WMAP_FREE   (1 << 0)
 

Definition at line 53 of file const.h.

Referenced by freesp_inode(), and write_map().

#define XLOCK   (-NR_TASKS-2)
 

Definition at line 39 of file const.h.

Referenced by do_unpause(), lock_revive(), prrecv(), revive(), and suspend().

#define XPIPE   (-NR_TASKS-1)
 

Definition at line 38 of file const.h.

Referenced by do_unpause(), free_proc(), pipe_check(), prrecv(), read_write(), revive(), and suspend().

#define XPOPEN   (-NR_TASKS-3)
 

Definition at line 40 of file const.h.

Referenced by do_unpause(), free_proc(), pipe_open(), prrecv(), revive(), and suspend().

#define XSELECT   (-NR_TASKS-4)
 

Definition at line 41 of file const.h.

Referenced by do_unpause(), prrecv(), and revive().


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