de.h File Reference

#include <stdio.h>
#include <dirent.h>

Include dependency graph for de.h:

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

Go to the source code of this file.

Data Structures

struct  de_state

Defines

#define MAX_STRING   60
#define MAX_PREV   8
#define SEARCH_BUFFER   (4*K)
#define TMP   "/tmp"
#define DEV   "/dev"
#define A_OUT   0x0301
#define SPLIT   0x0420
#define A_OUT   0x0301
#define SPLIT   0x0B20
#define A_OUT   0x0301
#define SPLIT   0x0B20
#define K   1024
#define K_MASK   (~(K-1))
#define K_SHIFT   10
#define PAGE_MASK   0x1f
#define PAGE_SHIFT   5
#define MAP_BITS_PER_BLOCK   (8 * K)
#define MAP_MASK   0xff
#define CTRL_D   '\004'
#define BELL   '\007'
#define BS   '\010'
#define CTRL_U   '\025'
#define ESCAPE   '\033'
#define DEL   '\177'
#define ESC_HOME   ('H' + 0x80)
#define ESC_UP   ('A' + 0x80)
#define ESC_PGUP   ('V' + 0x80)
#define ESC_LEFT   ('D' + 0x80)
#define ESC_5   ('G' + 0x80)
#define ESC_RIGHT   ('C' + 0x80)
#define ESC_END   ('Y' + 0x80)
#define ESC_DOWN   ('B' + 0x80)
#define ESC_PGDN   ('U' + 0x80)
#define ESC_PLUS   ('T' + 0x80)
#define ESC_MINUS   ('S' + 0x80)
#define BOX_CLR   ' '
#define BOX_ALL   '\333'
#define BOX_TOP   '\337'
#define BOX_BOT   '\334'
#define BOX_CLR   ' '
#define BOX_ALL   '='
#define BOX_TOP   '-'
#define BOX_BOT   '_'
#define BOX_CLR   ' '
#define BOX_ALL   '='
#define BOX_TOP   '-'
#define BOX_BOT   '_'
#define STATUS_COLUMN   2
#define STATUS_LINE   0
#define BLOCK_COLUMN   4
#define BLOCK_LINE   4
#define INFO_COLUMN   30
#define INFO_LINE   BLOCK_LINE
#define PROMPT_COLUMN   0
#define PROMPT_LINE   23
#define WARNING_COLUMN   5
#define WARNING_LINE   10
#define OK   0
#define REDRAW   1
#define REDRAW_POINTERS   2
#define ERROR   3
#define WORD   1
#define BLOCK   2
#define MAP   3
#define I_MAP_SLOTS   8
#define Z_MAP_SLOTS   (sizeof(char *) == 2 ? 16 : 128)
#define FORWARD

Typedefs

typedef unsigned short word_t
typedef int Word_t

Functions

 _PROTOTYPE (void main,(int argc, char *argv[]))
 _PROTOTYPE (int Process,(de_state *s, int c))
void Error ()
 _PROTOTYPE (int In_Use,(bit_t bit, bitchunk_t *map))
 _PROTOTYPE (ino_t Find_Inode,(de_state *s, char *filename))
 _PROTOTYPE (void Save_Term,(void))
 _PROTOTYPE (int Get_Char,(void))
 _PROTOTYPE (char *Get_Line,(void))
 _PROTOTYPE (int Arrow_Esc,(int c))
 _PROTOTYPE (void Draw_Help_Screen,(de_state *s))
 _PROTOTYPE (void Draw_Prompt,(char *string))
 _PROTOTYPE (void Print_Ascii,(int c))
 _PROTOTYPE (void Goto,(int column, int line))
 _PROTOTYPE (void Draw_Block,(char *block))
 _PROTOTYPE (void Draw_Map,(char *block, int max_bits))
 _PROTOTYPE (void Word_Pointers,(off_t old_addr, off_t new_addr))
 _PROTOTYPE (void Print_Number,(Word_t number, int output_base))
 _PROTOTYPE (void Draw_Zone_Numbers,(de_state *s, struct inode *inode, int zindex, int zrow))
void Warning ()
 _PROTOTYPE (void Read_Disk,(de_state *s, off_t block_addr, char *buffer))
 _PROTOTYPE (void Read_Block,(de_state *s, char *buffer))
 _PROTOTYPE (off_t Search,(de_state *s, char *string))
 _PROTOTYPE (void Write_Word,(de_state *s, Word_t word))
 _PROTOTYPE (int Path_Dir_File,(char *path_name, char **dir_name, char **file_name))
 _PROTOTYPE (char *File_Device,(char *file_name))
 _PROTOTYPE (ino_t Find_Deleted_Entry,(de_state *s, char *path_name))
 _PROTOTYPE (off_t Recover_Blocks,(de_state *s))


Define Documentation

#define A_OUT   0x0301
 

Definition at line 94 of file de.h.

#define A_OUT   0x0301
 

Definition at line 94 of file de.h.

#define A_OUT   0x0301
 

Definition at line 94 of file de.h.

Referenced by main().

#define BELL   '\007'
 

Definition at line 115 of file de.h.

Referenced by Get_Char(), t_bell(), ts_init(), and Warning().

#define BLOCK   2
 

Definition at line 190 of file de.h.

Referenced by cmp(), Draw_Help_Screen(), Draw_Pointers(), Draw_Screen(), and Process().

#define BLOCK_COLUMN   4
 

Definition at line 168 of file de.h.

Referenced by Block_Pointers(), Draw_Block(), Draw_Map(), Draw_Words(), Map_Pointers(), and Word_Pointers().

#define BLOCK_LINE   4
 

Definition at line 169 of file de.h.

Referenced by Block_Pointers(), Draw_Block(), Draw_Map(), Draw_Words(), Map_Pointers(), and Word_Pointers().

#define BOX_ALL   '='
 

Definition at line 159 of file de.h.

#define BOX_ALL   '='
 

Definition at line 159 of file de.h.

#define BOX_ALL   '\333'
 

Definition at line 159 of file de.h.

Referenced by Draw_Map().

#define BOX_BOT   '_'
 

Definition at line 161 of file de.h.

#define BOX_BOT   '_'
 

Definition at line 161 of file de.h.

#define BOX_BOT   '\334'
 

Definition at line 161 of file de.h.

Referenced by Draw_Map().

#define BOX_CLR   ' '
 

Definition at line 158 of file de.h.

#define BOX_CLR   ' '
 

Definition at line 158 of file de.h.

#define BOX_CLR   ' '
 

Definition at line 158 of file de.h.

Referenced by Draw_Map().

#define BOX_TOP   '-'
 

Definition at line 160 of file de.h.

#define BOX_TOP   '-'
 

Definition at line 160 of file de.h.

#define BOX_TOP   '\337'
 

Definition at line 160 of file de.h.

Referenced by Draw_Map().

#define BS   '\010'
 

Definition at line 116 of file de.h.

#define CTRL_D   '\004'
 

Definition at line 114 of file de.h.

Referenced by Process().

#define CTRL_U   '\025'
 

Definition at line 117 of file de.h.

#define DEL   '\177'
 

Definition at line 119 of file de.h.

Referenced by delimbuild(), ed_dorep(), Get_Line(), main(), Print_Ascii(), prntln(), TTYshow(), and TTYspecial().

#define DEV   "/dev"
 

Definition at line 78 of file de.h.

Referenced by File_Device().

#define ERROR   3
 

Definition at line 184 of file de.h.

Referenced by buf_read(), buf_write(), build_field(), check_file(), closeit(), DecodeError(), Get_Base(), getnak(), getzrxinit(), isInBuffer(), ListHosts(), main(), merge(), mode(), new_field(), print(), print_table(), Process(), procheader(), read_line(), rzfile(), rzfiles(), skip_lines(), sort(), tryz(), uniq_lines(), wcreceive(), wcrx(), wcrxpn(), wcs(), wcsend(), wctx(), wctxpn(), zdlread(), zgeth1(), zgethdr(), zrdat32(), zrdata(), zsendcmd(), zsendfdata(), and zsendfile().

#define ESC_5   ('G' + 0x80)
 

Definition at line 129 of file de.h.

#define ESC_DOWN   ('B' + 0x80)
 

Definition at line 132 of file de.h.

Referenced by Arrow_Esc(), and Process().

#define ESC_END   ('Y' + 0x80)
 

Definition at line 131 of file de.h.

Referenced by main(), and Process().

#define ESC_HOME   ('H' + 0x80)
 

Definition at line 125 of file de.h.

Referenced by Process().

#define ESC_LEFT   ('D' + 0x80)
 

Definition at line 128 of file de.h.

Referenced by Arrow_Esc(), and Process().

#define ESC_MINUS   ('S' + 0x80)
 

Definition at line 135 of file de.h.

#define ESC_PGDN   ('U' + 0x80)
 

Definition at line 133 of file de.h.

Referenced by Process().

#define ESC_PGUP   ('V' + 0x80)
 

Definition at line 127 of file de.h.

Referenced by Process().

#define ESC_PLUS   ('T' + 0x80)
 

Definition at line 134 of file de.h.

#define ESC_RIGHT   ('C' + 0x80)
 

Definition at line 130 of file de.h.

Referenced by Arrow_Esc(), and Process().

#define ESC_UP   ('A' + 0x80)
 

Definition at line 126 of file de.h.

Referenced by Arrow_Esc().

#define ESCAPE   '\033'
 

Definition at line 118 of file de.h.

Referenced by esc(), Get_Char(), makepat(), and optpat().

#define FORWARD
 

Definition at line 363 of file de.h.

Referenced by change(), match(), and SF().

#define I_MAP_SLOTS   8
 

Definition at line 202 of file de.h.

Referenced by Read_Bit_Maps().

#define INFO_COLUMN   30
 

Definition at line 170 of file de.h.

Referenced by Draw_Info().

#define INFO_LINE   BLOCK_LINE
 

Definition at line 171 of file de.h.

Referenced by Draw_Info(), and Draw_Zone_Numbers().

#define K   1024
 

Definition at line 102 of file de.h.

Referenced by cxsize(), Data_Block(), Draw_Offset(), Draw_Screen(), Indirect(), main(), MakeMove(), Process(), Read_Bit_Maps(), Read_Super_Block(), Recover_Blocks(), and Search().

#define K_MASK   (~(K-1))
 

Definition at line 103 of file de.h.

Referenced by Block_Pointers(), Process(), and Read_Block().

#define K_SHIFT   10
 

Definition at line 104 of file de.h.

Referenced by Data_Block(), Indirect(), and Read_Block().

#define MAP   3
 

Definition at line 191 of file de.h.

#define MAP_BITS_PER_BLOCK   (8 * K)
 

Definition at line 107 of file de.h.

#define MAP_MASK   0xff
 

Definition at line 108 of file de.h.

Referenced by Draw_Screen(), Map_Pointers(), and Process().

#define MAX_PREV   8
 

Definition at line 71 of file de.h.

Referenced by main(), Process(), and Push().

#define MAX_STRING   60
 

Definition at line 70 of file de.h.

Referenced by Get_Line(), main(), and Path_Dir_File().

#define OK   0
 

Definition at line 181 of file de.h.

Referenced by access_standards(), ack_irqs(), adjust(), advance(), at_intr_wait(), atapi_intr_wait(), atapi_open(), atapi_sendpacket(), atapi_transfer(), beep(), beep_x(), blk_ok(), cause_sigalrm(), change(), change_into(), chk_table(), clck_init(), clean_up_the_mess(), clock_time(), clone_opcl(), close_alot(), closeit(), com_out(), com_out_ext(), com_simple(), common_open(), comp_array(), comp_inodes(), complete_bars(), cons_write(), cp_b2u(), cp_u2b(), ctty_io(), ctty_opcl(), determine(), dev_io(), dev_status(), dev_up(), dma_setup(), dmap_unmap_by_endpt(), do_abort(), do_access(), do_allocmem(), do_attr_r16(), do_attr_r32(), do_attr_r8(), do_attr_w16(), do_attr_w32(), do_attr_w8(), do_brk(), do_chdir(), do_chmod(), do_chown(), do_close(), do_creat(), do_devctl(), do_devio(), do_diagnostics(), do_diocntl(), do_down(), do_dup(), do_endksig(), do_exec(), do_exit(), do_fcntl(), do_fkey_ctl(), do_fkey_pressed(), do_fork(), do_freemem(), do_fsync(), do_get_kmess(), do_getksig(), do_getname(), do_getprocnr(), do_getset(), do_getstat(), do_getsysinfo(), do_hard_int(), do_ids(), do_inb(), do_init(), do_inl(), do_int(), do_int86(), do_ioctl(), do_iopenable(), do_irqctl(), do_kill(), do_link(), do_lseek(), do_lstat(), do_memset(), do_mkdir(), do_mknod(), do_mount(), do_new_kmess(), do_newmap(), do_nice(), do_nop(), do_open(), do_outb(), do_outl(), do_piix(), do_pipe(), do_printer_output(), do_privctl(), do_procstat(), do_publish(), do_rdlink(), do_rdwt(), do_read(), do_reboot(), do_refresh(), do_rename(), do_rescan_bus(), do_rescue(), do_retrieve(), do_sdevio(), do_select(), do_set(), do_setalarm(), do_setsid(), do_shutdown(), do_sigaction(), do_sigpending(), do_sigreturn(), do_sigsend(), do_slink(), do_stat(), do_stime(), do_svrctl(), do_sync(), do_time(), do_times(), do_trace(), do_truncate(), do_umap(), do_umount(), do_unlink(), do_unpause(), do_utime(), do_vcopy(), do_vdevio(), do_video(), do_vir_insb(), do_vir_insw(), do_vir_outsb(), do_vir_outsw(), do_vm_map(), do_vm_setbuf(), do_vrdwt(), do_vread(), do_vwrite(), do_write(), dp_getblock(), dp_nic2user(), dp_pio16_nic2user(), dp_pio16_user2nic(), dp_pkt2user(), dp_recv(), dp_user2nic(), driver_task(), dsp_close(), dsp_command(), dsp_init(), dsp_ioctl(), dsp_open(), dsp_reset(), dsp_set_bits(), dsp_set_sign(), dsp_set_size(), dsp_set_speed(), dsp_set_stereo(), dump_core(), ec_init(), ec_nic2user(), ec_user2nic(), endwin(), env_get_param(), eth_check_drivers(), eth_get_stat(), exit_server(), expire_timers(), f_do_open(), f_expire_tmrs(), f_intr_wait(), f_reset(), f_set_timer(), f_transfer(), fdc_command(), fdc_out(), fdc_results(), fdc_transfer(), fetch_name(), fixterm(), floppy_stop(), freesp_inode(), fs_cancel_timer(), fs_expire_timers(), fs_init(), fs_set_timer(), fxp_cu_ptr_cmd(), fxp_do_conf(), fxp_expire_timers(), fxp_getname(), fxp_getstat(), fxp_init_buf(), fxp_init_hw(), fxp_readv(), fxp_ru_ptr_cmd(), fxp_set_timer(), fxp_writev(), gen_io(), gen_opcl(), get_mem_chunks(), get_mem_map(), get_mode(), get_priv(), get_set_input(), get_set_output(), get_set_volume(), get_stack_ptr(), get_time(), get_userdata(), get_work(), gettime(), handle_ksig(), handle_req(), handle_status(), holes_dmp(), hw_init(), image_dmp(), in_byte(), in_word(), inb(), init_params(), init_root(), init_server(), insb(), insw(), inw(), iqp_getc(), iqp_putc(), irqtab_dmp(), isokendpt_f(), kbd_send(), kbd_watchdog(), kenv_dmp(), kmessages_dmp(), ksig_pending(), link_alot(), lock_op(), log_cancel(), log_do_open(), log_transfer(), m_do_open(), m_init(), m_ioctl(), m_transfer(), main(), map_driver(), map_regs(), mem_holes_copy(), memmap_dmp(), mess_reply(), mii_read(), mini_notify(), mini_receive(), mini_send(), mixer_close(), mixer_init(), mixer_open(), mixer_set(), mode(), monparams_dmp(), mvcur(), mvwin(), my_inb(), my_inl(), my_inw(), my_outb(), my_outl(), my_outw(), new_block(), new_mem(), new_node(), nop_cancel(), nop_select(), ok(), osdep_eth_init(), outb(), output_done(), outsb(), outsw(), outw(), pci_inb(), pci_inl(), pci_intel_init(), pci_inw(), pci_outb(), pci_outl(), pci_outw(), pcii_rreg16(), pcii_rreg32(), pcii_rreg8(), pcii_rsts(), pcii_wreg16(), pcii_wreg32(), pcii_wreg8(), pcii_wsts(), pipe_open(), pm_cancel_timer(), pm_exit(), pm_expire_timers(), pm_isokendpt(), pm_set_timer(), prepare_output(), privileges_dmp(), Process(), procheader(), proctab_dmp(), put_file_in_dir(), put_userdata(), putsec(), r_do_open(), r_ioctl(), r_random(), r_transfer(), read_header(), read_id(), read_line(), read_only(), read_standards(), read_super(), read_write(), recalibrate(), remove_dir(), reply(), resetterm(), revive(), rl_check_ints(), rl_clear_rx(), rl_getname(), rl_getstat(), rl_handler(), rl_init_buf(), rl_init_hw(), rl_readv(), rl_reset_hw(), rl_writev(), rw_block(), rw_chunk(), rw_seg(), rzfiles(), save_to_file(), saveoldterm(), saveterm(), savetty(), sb16_inb(), sb16_outb(), sched_dmp(), search_dir(), seek(), select_notified(), select_retry(), sendmask_dmp(), sendzsinit(), sense_request(), set_alarm(), set_leds(), set_timer(), setterm(), settimer(), show_key_mappings(), sig_proc(), sigchar(), sr_put_userdata(), sr_rec(), sr_reply_(), sr_restart_ioctl(), sr_restart_read(), sr_restart_write(), sr_rwio(), sr_status(), start_motor(), start_service(), stop_beep(), stop_motor(), stop_proc(), subread(), subwrite(), sys_call(), sys_memset(), sys_physcopy(), sys_task(), sys_vircopy(), test02(), test05(), test06(), test07(), test08(), test09(), test10(), test11(), test_read(), tickdelay(), timing_dmp(), truncate_inode(), try_close(), tty_reply(), unlink_alot(), unlink_file(), vir2phys(), w_do_close(), w_do_open(), w_hw_int(), w_identify(), w_intr_wait(), w_io_test(), w_other(), w_reset(), w_specify(), w_transfer(), w_waitfor(), w_waitfor_dma(), waddch(), waddstr(), walk_queue(), wclrtobot(), wcreceive(), wcrx(), wcrxpn(), wcs(), wctxpn(), wdelch(), wdeleteln(), wgetstr(), winsertln(), wmove(), write_map(), wsetscrreg(), zsendcmd(), and zsendfdata().

#define PAGE_MASK   0x1f
 

Definition at line 105 of file de.h.

Referenced by Draw_Words(), Process(), Recover_Blocks(), and Word_Pointers().

#define PAGE_SHIFT   5
 

Definition at line 106 of file de.h.

Referenced by Draw_Info().

#define PROMPT_COLUMN   0
 

Definition at line 172 of file de.h.

Referenced by Draw_Pointers(), Draw_Prompt(), and Erase_Prompt().

#define PROMPT_LINE   23
 

Definition at line 173 of file de.h.

Referenced by Draw_Pointers(), Draw_Prompt(), and Erase_Prompt().

#define REDRAW   1
 

Definition at line 182 of file de.h.

Referenced by Get_Base(), and Process().

#define REDRAW_POINTERS   2
 

Definition at line 183 of file de.h.

Referenced by Process().

#define SEARCH_BUFFER   (4*K)
 

Definition at line 72 of file de.h.

Referenced by Search().

#define SPLIT   0x0B20
 

Definition at line 95 of file de.h.

#define SPLIT   0x0B20
 

Definition at line 95 of file de.h.

#define SPLIT   0x0420
 

Definition at line 95 of file de.h.

#define STATUS_COLUMN   2
 

Definition at line 166 of file de.h.

Referenced by Block_Type(), Draw_Offset(), and Draw_Strings().

#define STATUS_LINE   0
 

Definition at line 167 of file de.h.

Referenced by Block_Type(), Draw_Offset(), and Draw_Strings().

#define TMP   "/tmp"
 

Definition at line 77 of file de.h.

#define WARNING_COLUMN   5
 

Definition at line 174 of file de.h.

Referenced by Warning().

#define WARNING_LINE   10
 

Definition at line 175 of file de.h.

Referenced by Warning().

#define WORD   1
 

Definition at line 189 of file de.h.

Referenced by argmatch(), bas_get_instruction(), bas_get_operand(), calloc(), change_file_date(), command(), dec(), displayInfosector(), Draw_Help_Screen(), Draw_Pointers(), Draw_Screen(), evaluate(), exec_one(), explode(), fat_32_read(), file_geom(), findnword(), fs_init(), getvar(), hashfun(), keyword(), main(), makenames(), minfo(), pattern(), prin1(), Process(), Read_Block(), sb_open(), search(), setfiletime(), simple(), synio(), transform(), wordlist(), and yylex().

#define Z_MAP_SLOTS   (sizeof(char *) == 2 ? 16 : 128)
 

Definition at line 203 of file de.h.

Referenced by Read_Bit_Maps().


Typedef Documentation

typedef int Word_t
 

Definition at line 197 of file de.h.

typedef unsigned short word_t
 

Definition at line 193 of file de.h.


Function Documentation

_PROTOTYPE off_t  Recover_Blocks,
(de_state *s
 

_PROTOTYPE ino_t  Find_Deleted_Entry,
(de_state *s, char *path_name) 
 

_PROTOTYPE char *  File_Device,
(char *file_name) 
 

_PROTOTYPE int  Path_Dir_File,
(char *path_name, char **dir_name, char **file_name) 
 

_PROTOTYPE void  Write_Word,
(de_state *s, Word_t word
 

_PROTOTYPE off_t  Search,
(de_state *s, char *string
 

_PROTOTYPE void  Read_Block,
(de_state *s, char *buffer
 

_PROTOTYPE void  Read_Disk,
(de_state *s, off_t block_addr, char *buffer
 

_PROTOTYPE void  Draw_Zone_Numbers,
(de_state *s, struct inode *inode, int zindex, int zrow) 
 

_PROTOTYPE void  Print_Number,
(Word_t number, int output_base) 
 

_PROTOTYPE void  Word_Pointers,
(off_t old_addr, off_t new_addr) 
 

_PROTOTYPE void  Draw_Map,
(char *block, int max_bits) 
 

_PROTOTYPE void  Draw_Block,
(char *block
 

_PROTOTYPE void  Goto,
(int column, int line
 

_PROTOTYPE void  Print_Ascii,
(int c
 

_PROTOTYPE void  Draw_Prompt,
(char *string
 

_PROTOTYPE void  Draw_Help_Screen,
(de_state *s
 

_PROTOTYPE int  Arrow_Esc,
(int c
 

_PROTOTYPE char *  Get_Line,
(void) 
 

_PROTOTYPE int  Get_Char,
(void) 
 

_PROTOTYPE void  Save_Term,
(void) 
 

_PROTOTYPE ino_t  Find_Inode,
(de_state *s, char *filename) 
 

_PROTOTYPE int  In_Use,
(bit_t bit, bitchunk_t *map) 
 

_PROTOTYPE int  Process,
(de_state *s, int c
 

_PROTOTYPE void  main,
(int argc, char *argv[]) 
 

void Error  ) 
 

void Warning  ) 
 

Referenced by Data_Block(), File_Device(), Find_Deleted_Entry(), Find_Inode(), Free_Block(), Get_Filename(), Indirect(), main(), Path_Dir_File(), Process(), Read_Bit_Maps(), Read_Super_Block(), and Recover_Blocks().


Generated on Fri Apr 14 23:02:09 2006 for minix by  doxygen 1.4.6