# 2.11BSD#431 - /usr/ingres/source/monitor/monitor.h

##### Variables

    Autoclear         X
    Error_id          X
    Idepth            X
    Nautoclear        X
    Newline           X
    Nodayfile         X
    Notnull           X
    Oneline           X
    Peekch            X
    Phase             X
    Prompt            X
    Qbname            X
    Userdflag         X
    Versn             X
    Xwaitpid          X

##### Macros

    C_APPEND          X
    C_BRANCH          X
    C_CHDIR           X
    C_EDIT            X
    C_EVAL            X
    C_GO              X
    C_INCLUDE         X
    C_LIST            X
    C_MARK            X
    C_PRINT           X
    C_QUIT            X
    C_RESET           X
    C_SHELL           X
    C_TIME            X
    C_WRITE           X
    RC_BAD            X
    RC_OK             X

       1: #
       2:
       3: /*
       4: **  MONITOR.H -- globals for the interactive terminal monitor
       5: **
       6: **	History:
       7: **		6/8/79 (eric) -- changed Version to Versn, since
       8: **			Version now has the full name (with mod #).
       9: **		3/2/79 (eric) -- Error_id and {querytrap} stuff
      10: **			added.  Also, the RC_* stuff.
      11: */
      12:
      13: /* various global names and strings */
      14: char        Qbname[30]; /* pathname of query buffer */
      15: char        Versn[12];  /* version number (w/o mod #) */
      16: extern char Version[];  /* version number (with mod #) */
      17: extern char Rel_date[]; /* release date */
      18: extern char Mod_date[]; /* release date of this mod */
      19: extern char *Fileset;   /* unique string */
      20: extern char *Pathname;  /* pathname of INGRES root */
      21:
      22: /* flags */
      23: char        Nodayfile;  /* suppress dayfile/prompts */
      24:                 /* 0 - print dayfile and prompts
      25: 				** 1 - suppress dayfile but not prompts
      26: 				** -1 - supress dayfile and prompts
      27: 				*/
      28: char        Userdflag;  /* same: user flag */
      29:                 /*  the Nodayfile flag gets reset by include();
      30: 				**  this is the flag that the user actually
      31: 				**  specified (and what s/he gets when in
      32: 				**  interactive mode.			*/
      33: char        Autoclear;  /* clear query buffer automatically if set */
      34: char        Notnull;    /* set if the query is not null */
      35: char        Prompt;     /* set if a prompt is needed */
      36: char        Nautoclear; /* if set, disables the autoclear option */
      37: char        Phase;      /* set if in processing phase */
      38:
      39: /* query buffer stuff */
      40: FILE        *Qryiop;    /* the query buffer */
      41: char        Newline;    /* set if last character was a newline */
      42:
      43: /* other stuff */
      44: int     Xwaitpid;   /* pid to wait on - zero means none */
      45: int     Error_id;   /* the error number of the last err */
      46:
      47: /* \include support stuff */
      48: FILE        *Input;     /* current input file */
      49: int     Idepth;     /* include depth */
      50: char        Oneline;    /* deliver EOF after one line input */
      51: char        Peekch;     /* lookahead character for getch */
      52:
      53: /* commands to monitor */
      54: # define    C_APPEND    1
      55: # define    C_BRANCH    2
      56: # define    C_CHDIR     3
      57: # define    C_EDIT      4
      58: # define    C_GO        5
      59: # define    C_INCLUDE   6
      60: # define    C_MARK      7
      61: # define    C_LIST      8
      62: # define    C_PRINT     9
      63: # define    C_QUIT      10
      64: # define    C_RESET     11
      65: # define    C_TIME      12
      66: # define    C_EVAL      13
      67: # define    C_WRITE     14
      68: # define    C_SHELL     15
      69:
      70: /* stuff for querytrap facility */
      71: extern FILE *Trapfile;
      72:
      73: /* internal retcode codes */
      74: # define    RC_OK       0
      75: # define    RC_BAD      1

#### Defined variables

Autoclear defined in line 33; used 9 times

- in /usr/ingres/source/monitor/clear.c line 17
- in /usr/ingres/source/monitor/edit.c line 30
- in /usr/ingres/source/monitor/eval.c line 26
- in /usr/ingres/source/monitor/go.c line 48
- in /usr/ingres/source/monitor/monitor.c line 119, 160, 261
- in /usr/ingres/source/monitor/print.c line 23
- in /usr/ingres/source/monitor/writeout.c line 39

Error_id defined in line 45; used 3 times

- in /usr/ingres/source/monitor/go.c line 59, 71
- in /usr/ingres/source/monitor/main.c line 241

Idepth defined in line 49; used 4 times

- in /usr/ingres/source/monitor/include.c line 56, 63, 81
- in /usr/ingres/source/monitor/main.c line 202

Nautoclear defined in line 36; used 3 times

- in /usr/ingres/source/monitor/go.c line 47
- in /usr/ingres/source/monitor/main.c line 86
- in /usr/ingres/source/monitor/writeout.c line 38

Newline defined in line 41; used 6 times

- in /usr/ingres/source/monitor/clrline.c line 27-29(2)
- in /usr/ingres/source/monitor/getfilename.c line 40
- in /usr/ingres/source/monitor/main.c line 136, 199
- in /usr/ingres/source/monitor/monitor.c line 254

Nodayfile defined in line 23; used 19 times

- in /usr/ingres/source/monitor/clear.c line 22
- in /usr/ingres/source/monitor/edit.c line 55
- in /usr/ingres/source/monitor/go.c line 39
- in /usr/ingres/source/monitor/include.c line 66-73(3), 80
- in /usr/ingres/source/monitor/main.c line 83-85(2), 118-123(2), 137-138(2), 155, 200
- in /usr/ingres/source/monitor/monitor.c line 182
- in /usr/ingres/source/monitor/prompt.c line 23
- in /usr/ingres/source/monitor/quit.c line 126
- in /usr/ingres/source/monitor/shell.c line 57

Notnull defined in line 34; used 6 times

- in /usr/ingres/source/monitor/clear.c line 26
- in /usr/ingres/source/monitor/monitor.c line 264
- in /usr/ingres/source/monitor/print.c line 30-34(2)
- in /usr/ingres/source/monitor/prompt.c line 38
- in /usr/ingres/source/monitor/xwait.c line 50

Oneline defined in line 50; used 5 times

- in /usr/ingres/source/monitor/branch.c line 37
- in /usr/ingres/source/monitor/getch.c line 31
- in /usr/ingres/source/monitor/getfilename.c line 25, 46
- in /usr/ingres/source/monitor/main.c line 201

Peekch defined in line 51; used 10 times

- in /usr/ingres/source/monitor/branch.c line 54, 61
- in /usr/ingres/source/monitor/clrline.c line 35
- in /usr/ingres/source/monitor/getch.c line 20-22(2), 33
- in /usr/ingres/source/monitor/getfilename.c line 47
- in /usr/ingres/source/monitor/include.c line 41
- in /usr/ingres/source/monitor/monitor.c line 236
- in /usr/ingres/source/monitor/prompt.c line 21

Phase defined in line 37; used 1 times

- in /usr/ingres/source/monitor/main.c line 142

Prompt defined in line 35; used 7 times

- in /usr/ingres/source/monitor/clrline.c line 32-33(2)
- in /usr/ingres/source/monitor/getfilename.c line 40
- in /usr/ingres/source/monitor/main.c line 136, 199
- in /usr/ingres/source/monitor/monitor.c line 254
- in /usr/ingres/source/monitor/prompt.c line 21

Qbname defined in line 14; used 20 times

- in /usr/ingres/source/monitor/clear.c line 20
- in /usr/ingres/source/monitor/edit.c line 28
- in /usr/ingres/source/monitor/eval.c line 36, 54-55(2), 61
- in /usr/ingres/source/monitor/go.c line 37
- in /usr/ingres/source/monitor/main.c line 131-133(3)
- in /usr/ingres/source/monitor/print.c line 26
- in /usr/ingres/source/monitor/quit.c line 57-62(2)
- in /usr/ingres/source/monitor/shell.c line 50-53(2)
- in /usr/ingres/source/monitor/trapquery.c line 82
- in /usr/ingres/source/monitor/writeout.c line 41-42(2)
- in /usr/ingres/source/monitor/xwait.c line 48-49(2)

Userdflag defined in line 28; used 4 times

- in /usr/ingres/source/monitor/include.c line 69
- in /usr/ingres/source/monitor/main.c line 137, 155, 200

Versn defined in line 15; used 3 times

- in /usr/ingres/source/monitor/main.c line 105-106(2), 123

Xwaitpid defined in line 44; used 9 times

- in /usr/ingres/source/monitor/edit.c line 34-36(2)
- in /usr/ingres/source/monitor/main.c line 187
- in /usr/ingres/source/monitor/shell.c line 34-36(2)
- in /usr/ingres/source/monitor/xwait.c line 28-30(2), 41-45(2)

#### Defined macros

C_APPEND defined in line 54; used 2 times

- in /usr/ingres/source/monitor/monitor.c line 49-50(2)

C_BRANCH defined in line 55; used 2 times

- in /usr/ingres/source/monitor/monitor.c line 51-52(2)

C_CHDIR defined in line 56; used 2 times

- in /usr/ingres/source/monitor/monitor.c line 53-54(2)

C_EDIT defined in line 57; used 4 times

- in /usr/ingres/source/monitor/monitor.c line 55-58(4)

C_EVAL defined in line 66; used 2 times

- in /usr/ingres/source/monitor/monitor.c line 80-81(2)

C_GO defined in line 58; used 2 times

- in /usr/ingres/source/monitor/monitor.c line 59-60(2)

C_INCLUDE defined in line 59; used 3 times

- in /usr/ingres/source/monitor/monitor.c line 61-63(3)

C_LIST defined in line 61; used 2 times

- in /usr/ingres/source/monitor/monitor.c line 66-67(2)

C_MARK defined in line 60; used 3 times

- in /usr/ingres/source/monitor/branch.c line 88
- in /usr/ingres/source/monitor/monitor.c line 64-65(2)

C_PRINT defined in line 62; used 2 times

- in /usr/ingres/source/monitor/monitor.c line 68-69(2)

C_QUIT defined in line 63; used 2 times

- in /usr/ingres/source/monitor/monitor.c line 70-71(2)

C_RESET defined in line 64; used 2 times

- in /usr/ingres/source/monitor/monitor.c line 72-73(2)

C_SHELL defined in line 68; used 3 times

- in /usr/ingres/source/monitor/monitor.c line 74-76(3)

C_TIME defined in line 65; used 3 times

- in /usr/ingres/source/monitor/monitor.c line 77-79(3)

C_WRITE defined in line 67; used 2 times

- in /usr/ingres/source/monitor/monitor.c line 82-83(2)

RC_BAD defined in line 75; used 1 times

- in /usr/ingres/source/monitor/go.c line 69

RC_OK defined in line 74; used 2 times

- in /usr/ingres/source/monitor/go.c line 65
- in /usr/ingres/source/monitor/trapquery.c line 89

#### Usage of this include

monitor.h used 19 times

- in /usr/ingres/source/monitor/branch.c line 5
- in /usr/ingres/source/monitor/clear.c line 5
- in /usr/ingres/source/monitor/clrline.c line 5
- in /usr/ingres/source/monitor/edit.c line 6
- in /usr/ingres/source/monitor/eval.c line 5
- in /usr/ingres/source/monitor/getch.c line 5
- in /usr/ingres/source/monitor/getfilename.c line 5
- in /usr/ingres/source/monitor/go.c line 6
- in /usr/ingres/source/monitor/include.c line 5
- in /usr/ingres/source/monitor/main.c line 7
- in /usr/ingres/source/monitor/monitor.c line 5
- in /usr/ingres/source/monitor/newdirec.c line 5
- in /usr/ingres/source/monitor/print.c line 5
- in /usr/ingres/source/monitor/prompt.c line 5
- in /usr/ingres/source/monitor/quit.c line 12
- in /usr/ingres/source/monitor/shell.c line 6
- in /usr/ingres/source/monitor/trapquery.c line 5
- in /usr/ingres/source/monitor/writeout.c line 5
- in /usr/ingres/source/monitor/xwait.c line 5

Last modified: 1995-02-04 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1314 |