de_stdout.c File Reference

#include <minix/config.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <limits.h>
#include <grp.h>
#include <pwd.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <termcap.h>
#include <time.h>
#include <unistd.h>
#include <minix/const.h>
#include <minix/type.h>
#include "../../servers/fs/const.h"
#include "../../servers/fs/type.h"
#include "../../servers/fs/inode.h"
#include <minix/fslib.h>
#include "de.h"

Include dependency graph for de_stdout.c:

Go to the source code of this file.

Defines

#define major(x)   ( (x>>8) & 0377)
#define minor(x)   (x & 0377)
#define TC_BUFFER   1024
#define TC_STRINGS   200

Functions

 _PROTOTYPE (void Goto,(int column, int line))
 _PROTOTYPE (void Block_Type,(de_state *s))
 _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))
int Init_Termcap ()
void Goto (int column, int line)
void Draw_Help_Screen (de_state *s)
void Wait_For_Key ()
void Draw_Prompt (char *string)
void Erase_Prompt ()
void Draw_Screen (de_state *s)
void Draw_Strings (de_state *s)
void Block_Type (de_state *s)
void Draw_Words (de_state *s)
void Draw_Info (de_state *s)
void Draw_Block (char *block)
void Draw_Map (char *block, int max_bits)
void Draw_Pointers (de_state *s)
void Draw_Offset (de_state *s)
void Word_Pointers (off_t old_addr, off_t new_addr)
void Block_Pointers (off_t old_addr, off_t new_addr)
void Map_Pointers (off_t old_addr, off_t new_addr)
void Print_Number (word_t number, int output_base)
void Print_Ascii (char c)
void Warning (char *text)
void Draw_Zone_Numbers (de_state *s, struct inode *inode, int zindex, int zrow)

Variables

static char * Tmove
static char * Tclr_all
static char * Treverse
static char * Tnormal
char Kup = 0
char Kdown = 0
char Kleft = 0
char Kright = 0
char * super_block_info []


Define Documentation

#define major x   )     ( (x>>8) & 0377)
 

Definition at line 36 of file de_stdout.c.

Referenced by alloc_inode(), alloc_zone(), apply_add(), dev_open(), do_svrctl(), ls_list(), main(), newdevice(), nextdevice(), print1(), select_major_match(), ustar_wr(), and vcpio_wr().

#define minor x   )     (x & 0377)
 

Definition at line 37 of file de_stdout.c.

Referenced by alloc_inode(), alloc_zone(), apply_add(), clone_opcl(), dev_up(), ls_list(), main(), newdevice(), print1(), sr_open(), ustar_wr(), and vcpio_wr().

#define TC_BUFFER   1024
 

Definition at line 45 of file de_stdout.c.

Referenced by init(), Init_Termcap(), and main().

#define TC_STRINGS   200
 

Definition at line 46 of file de_stdout.c.

Referenced by init(), and Init_Termcap().


Function Documentation

_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  Block_Type,
(de_state *s
 

_PROTOTYPE void  Goto,
(int column, int line
 

void Block_Pointers off_t  old_addr,
off_t  new_addr
 

Definition at line 991 of file de_stdout.c.

References BLOCK_COLUMN, BLOCK_LINE, Goto, int(), K_MASK, and putchar.

Referenced by Draw_Pointers().

void Block_Type de_state s  ) 
 

Definition at line 444 of file de_stdout.c.

References BOOT_BLOCK, Goto, In_Use(), printf, STATUS_COLUMN, and STATUS_LINE.

Referenced by Draw_Screen().

void Draw_Block char *  block  ) 
 

Definition at line 720 of file de_stdout.c.

References BLOCK_COLUMN, BLOCK_LINE, c, column, and Goto.

Referenced by Draw_Screen().

void Draw_Help_Screen de_state s  ) 
 

Definition at line 179 of file de_stdout.c.

References BLOCK, printf, right(), Tclr_all, Tnormal, Treverse, and WORD.

Referenced by Process().

void Draw_Info de_state s  ) 
 

Definition at line 542 of file de_stdout.c.

References dev, Goto, i, INFO_COLUMN, INFO_LINE, PAGE_SHIFT, and printf.

Referenced by Draw_Screen().

void Draw_Map char *  block,
int  max_bits
 

Definition at line 795 of file de_stdout.c.

References bit_count(), BLOCK_COLUMN, BLOCK_LINE, BOX_ALL, BOX_BOT, BOX_CLR, BOX_TOP, c, column, Goto, putchar, and shift.

Referenced by Draw_Screen().

void Draw_Offset de_state s  ) 
 

Definition at line 905 of file de_stdout.c.

References Goto, In_Use(), inodes, K, printf, STATUS_COLUMN, and STATUS_LINE.

Referenced by Draw_Pointers().

void Draw_Pointers de_state s  ) 
 

Definition at line 868 of file de_stdout.c.

References BLOCK, Block_Pointers(), Draw_Offset(), Goto, Map_Pointers(), PROMPT_COLUMN, PROMPT_LINE, WORD, and Word_Pointers().

void Draw_Prompt char *  string  ) 
 

Definition at line 255 of file de_stdout.c.

References Goto, printf, PROMPT_COLUMN, PROMPT_LINE, Tnormal, and Treverse.

Referenced by Get_Count(), Get_Filename(), Process(), and Wait_For_Key().

void Draw_Screen de_state s  ) 
 

Definition at line 302 of file de_stdout.c.

References BLOCK, Block_Type(), CHAR_BIT, Draw_Block(), Draw_Info(), Draw_Map(), Draw_Strings(), Draw_Words(), fputs(), int(), K, MAP_MASK, stdout, Tclr_all, and WORD.

void Draw_Strings de_state s  ) 
 

Definition at line 366 of file de_stdout.c.

References Goto, i, O_RDONLY, Print_Ascii(), printf, putchar, STATUS_COLUMN, STATUS_LINE, strlen(), SUPER_MAGIC, SUPER_REV, SUPER_V2, SUPER_V2_REV, and SUPER_V3.

Referenced by Draw_Screen().

void Draw_Words de_state s  ) 
 

Definition at line 490 of file de_stdout.c.

References addr, BLOCK_COLUMN, BLOCK_LINE, Goto, PAGE_MASK, Print_Number(), and printf.

Referenced by Draw_Screen().

void Draw_Zone_Numbers de_state s,
struct inode inode,
int  zindex,
int  zrow
 

Definition at line 1145 of file de_stdout.c.

References Goto, inode::i_zone, INFO_LINE, printf, and SUPER_MAGIC.

void Erase_Prompt  ) 
 

Definition at line 278 of file de_stdout.c.

References Goto, printf, PROMPT_COLUMN, and PROMPT_LINE.

void Goto int  column,
int  line
 

Definition at line 152 of file de_stdout.c.

References fputs(), stdout, tgoto(), and Tmove.

int Init_Termcap  ) 
 

Definition at line 85 of file de_stdout.c.

References getenv(), Kdown, Kleft, Kright, Kup, NULL, s, strings, strlen(), TC_BUFFER, TC_STRINGS, Tclr_all, term, tgetent(), tgetstr(), Tmove, Tnormal, and Treverse.

Referenced by main().

void Map_Pointers off_t  old_addr,
off_t  new_addr
 

Definition at line 1015 of file de_stdout.c.

References BLOCK_COLUMN, BLOCK_LINE, Goto, int(), MAP_MASK, and putchar.

Referenced by Draw_Pointers().

void Print_Ascii char  c  ) 
 

Definition at line 1091 of file de_stdout.c.

References DEL, printf, putchar, Tnormal, and Treverse.

Referenced by Draw_Strings().

void Print_Number word_t  number,
int  output_base
 

Definition at line 1044 of file de_stdout.c.

References Error, pad, printf, and putchar.

Referenced by Draw_Words().

void Wait_For_Key  ) 
 

Definition at line 233 of file de_stdout.c.

References Draw_Prompt(), and Get_Char().

Referenced by Process().

void Warning char *  text  ) 
 

Definition at line 1122 of file de_stdout.c.

References BELL, fflush(), Goto, printf, sleep, stdout, Tclr_all, Tnormal, Treverse, va_end, va_start, vprintf(), WARNING_COLUMN, and WARNING_LINE.

void Word_Pointers off_t  old_addr,
off_t  new_addr
 

Definition at line 973 of file de_stdout.c.

References BLOCK_COLUMN, BLOCK_LINE, Goto, int(), PAGE_MASK, and putchar.

Referenced by Draw_Pointers().


Variable Documentation

char Kdown = 0
 

Definition at line 55 of file de_stdout.c.

Referenced by Init_Termcap().

char Kleft = 0
 

Definition at line 56 of file de_stdout.c.

Referenced by Init_Termcap().

char Kright = 0
 

Definition at line 57 of file de_stdout.c.

Referenced by Init_Termcap().

char Kup = 0
 

Definition at line 54 of file de_stdout.c.

Referenced by Init_Termcap().

char* super_block_info[]
 

Initial value:

  {     "number of inodes",
                                "V1 number of zones",
                                "inode bit map blocks",
                                "zone bit map blocks",
                                "first data zone",
                                "blocks per zone shift & flags",
                                "maximum file size",
                                "",
                                "magic number",
                                "fsck magic number",
                                "V2 number of zones"  }

Definition at line 529 of file de_stdout.c.

char* Tclr_all [static]
 

Definition at line 50 of file de_stdout.c.

Referenced by Draw_Help_Screen(), Draw_Screen(), init(), Init_Termcap(), showtop(), and Warning().

char* Tmove [static]
 

Definition at line 49 of file de_stdout.c.

Referenced by Goto(), and Init_Termcap().

char* Tnormal [static]
 

Definition at line 52 of file de_stdout.c.

Referenced by Draw_Help_Screen(), Draw_Prompt(), Init_Termcap(), Print_Ascii(), and Warning().

char* Treverse [static]
 

Definition at line 51 of file de_stdout.c.

Referenced by Draw_Help_Screen(), Draw_Prompt(), Init_Termcap(), Print_Ascii(), and Warning().


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