src/commands/de/de.h File Reference

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

Go to the source code of this file.

Classes

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.

#define BELL   '\007'

Definition at line 115 of file de.h.

#define BLOCK   2

Definition at line 190 of file de.h.

#define BLOCK_COLUMN   4

Definition at line 168 of file de.h.

#define BLOCK_LINE   4

Definition at line 169 of file de.h.

#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.

#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.

#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.

#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.

#define BS   '\010'

Definition at line 116 of file de.h.

#define CTRL_D   '\004'

Definition at line 114 of file de.h.

#define CTRL_U   '\025'

Definition at line 117 of file de.h.

#define DEL   '\177'

Definition at line 119 of file de.h.

#define DEV   "/dev"

Definition at line 78 of file de.h.

#define ERROR   3

Definition at line 184 of file de.h.

#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.

#define ESC_END   ('Y' + 0x80)

Definition at line 131 of file de.h.

#define ESC_HOME   ('H' + 0x80)

Definition at line 125 of file de.h.

#define ESC_LEFT   ('D' + 0x80)

Definition at line 128 of file de.h.

#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.

#define ESC_PGUP   ('V' + 0x80)

Definition at line 127 of file de.h.

#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.

#define ESC_UP   ('A' + 0x80)

Definition at line 126 of file de.h.

#define ESCAPE   '\033'

Definition at line 118 of file de.h.

#define FORWARD

Definition at line 363 of file de.h.

#define I_MAP_SLOTS   8

Definition at line 202 of file de.h.

#define INFO_COLUMN   30

Definition at line 170 of file de.h.

#define INFO_LINE   BLOCK_LINE

Definition at line 171 of file de.h.

#define K   1024

Definition at line 102 of file de.h.

#define K_MASK   (~(K-1))

Definition at line 103 of file de.h.

#define K_SHIFT   10

Definition at line 104 of file de.h.

#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.

#define MAX_PREV   8

Definition at line 71 of file de.h.

#define MAX_STRING   60

Definition at line 70 of file de.h.

#define OK   0

Definition at line 181 of file de.h.

#define PAGE_MASK   0x1f

Definition at line 105 of file de.h.

#define PAGE_SHIFT   5

Definition at line 106 of file de.h.

#define PROMPT_COLUMN   0

Definition at line 172 of file de.h.

#define PROMPT_LINE   23

Definition at line 173 of file de.h.

#define REDRAW   1

Definition at line 182 of file de.h.

#define REDRAW_POINTERS   2

Definition at line 183 of file de.h.

#define SEARCH_BUFFER   (4*K)

Definition at line 72 of file de.h.

#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.

#define STATUS_LINE   0

Definition at line 167 of file de.h.

#define TMP   "/tmp"

Definition at line 77 of file de.h.

#define WARNING_COLUMN   5

Definition at line 174 of file de.h.

#define WARNING_LINE   10

Definition at line 175 of file de.h.

#define WORD   1

Definition at line 189 of file de.h.

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

Definition at line 203 of file de.h.


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 (  ) 


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