# 2.11BSD#431 - /usr/ingres/source/equel/runtime/IIglobals.h

##### Variables

    IIdebug           X
    IIdomains         X
    IIeinpipe         X
    IIerrflag         X
    IIin_retrieve     X
    IIingpid          X
    IIinpipe          X
    IIline_no         X
    IImainpr          X
    IIndomains        X
    IInxtdomain       X
    IIoptn            X
    IIoutpipe         X
    IIproc_name       X
    IIr_down          X
    IIr_front         X
    IIr_sym           X
    IIretsym          X
    IItupcnt          X
    IIw_down          X

##### Macros

    EQUEL             X
    ERRDELIM          X
    opCHAR            X
    opDOUBLE          X
    opFLOAT           X
    opINT             X
    opLONG            X
    opSTRING          X

##### struct's

    iob               X
    retsym            X

       1: #
       2: /*
       3: **  IIGLOBALS.H -- Equel run-time library globals
       4: **
       5: **	In this file are defined the global variables,
       6: **	and manifest constants used in the Equel run-time
       7: **	routines. All globals must start with "II".
       8: **
       9: **	Requires:
      10: **		The "pipfrmt" structure is the ingres interprocess
      11: **		pipe buffer structure defined in ".../pipes.h".
      12: **		MAXDOM is defined in .../ingres.h.
      13: **
      14: **	Required By:
      15: **		.../source/equel/II*.c
      16: **
      17: **	History:
      18: **		Worked upon at various times by :
      19: **		jim ford
      20: **		eric allman
      21: **		mike ubell - v5 to v6
      22: **		4/78 -	rewritten [marc]
      23: */
      24:
      25: # define    opINT       1
      26: # define    opFLOAT     2
      27: # define    opSTRING    3
      28: # define    opDOUBLE    4
      29: # define    opCHAR      5
      30: # define    opLONG      6
      31:
      32: # define    EQUEL       '&'
      33: # define    ERRDELIM    '~'
      34:
      35: char        *IIproc_name;       /* file name */
      36: int     IIline_no;      /* line no */
      37: int     IIdebug;        /* debug flag */
      38: int     IIingpid;       /* process id of ingres */
      39: char        *IIoptn [9];        /* ingres options */
      40: int     IIin_retrieve;      /* set if inside a retrieve */
      41: int     IIndomains;     /* number of doamins in this retrieve */
      42: int     IIdomains;
      43: int     IInxtdomain;        /* index into source field of buffer */
      44: long        IItupcnt;       /* # tuples which satified last
      45: 					 * update query
      46: 					 */
      47: int     IIw_down, IIr_down; /* pipe descriptors for
      48: 					 * parser communcation
      49: 					 */
      50: int     IIr_front;      /* pipe descriptor for
      51: 					 * ovqp ommunication
      52: 					 */
      53: int     IIerrflag;      /* error flag.
      54: 					 * Set in IIerror, cleared in IIsync
      55: 					 */
      56: extern char IIPathname[];       /* initialized by
      57: 					 * IIgetpath() [IIingres.c]
      58: 					 */
      59: int     (*IIprint_err)();   /* wether or not error messgs should
      60: 					 * be printed
      61: 					 */
      62: int     IIret_err();        /* returns its integer arg for
      63: 					 * (*IIprint_err)()
      64: 					 */
      65: int     IIno_err();     /* returns 0 for (*IIprint_err)() */
      66: int     (*IIo_print)();     /* a one value stack for
      67: 					 * temporarily turned off printing of
      68: 					 * errors. Done in [IIw_left.c &
      69: 					 * IIw_right.c].
      70: 					 */
      71: char        *IImainpr;      /* "/usr/bin/ingres.c" usually,
      72: 					 * [ingres.c]
      73: 					 */
      74:
      75: /* buffer structure of get(III) */
      76: struct iob
      77: {
      78:     int     fildes;
      79:     int     nleft;
      80:     char        *nextp;
      81:     char        buff[512];
      82: };
      83:
      84: struct retsym
      85: {
      86:     char        type;
      87:     char        len;
      88:     char        *addr;
      89: };
      90: struct retsym   IIretsym[MAXDOM];   /* retrieve table */
      91: struct retsym   IIr_sym;        /* type, length fields used
      92: 					 * by new equel in IIn_ret and IIn_get
      93: 					 */
      94:
      95: struct pipfrmt  IIeinpipe;  /* the data pipe structure (IIR_front) */
      96: struct pipfrmt  IIinpipe;   /* the control pipe struct (IIR_down)  */
      97: struct pipfrmt  IIoutpipe;  /* the pipe for writing qrys (IIW_down)*/

#### Defined variables

IIdebug defined in line 37; used 30 times

- in /usr/ingres/source/equel/runtime/IIcvar.c line 56
- in /usr/ingres/source/equel/runtime/IIerror.c line 39, 47
- in /usr/ingres/source/equel/runtime/IIexit.c line 27, 46
- in /usr/ingres/source/equel/runtime/IIflushtup.c line 24
- in /usr/ingres/source/equel/runtime/IIgettup.c line 44
- in /usr/ingres/source/equel/runtime/IIingres.c line 36, 83
- in /usr/ingres/source/equel/runtime/IIn_get.c line 30
- in /usr/ingres/source/equel/runtime/IIn_ret.c line 54
- in /usr/ingres/source/equel/runtime/IIp_err.c line 44
- in /usr/ingres/source/equel/runtime/IIrdpipe.c line 106, 131, 164, 175, 186, 201, 223, 233, 246
- in /usr/ingres/source/equel/runtime/IIretrieve.c line 58
- in /usr/ingres/source/equel/runtime/IIsetup.c line 13
- in /usr/ingres/source/equel/runtime/IIsync.c line 25
- in /usr/ingres/source/equel/runtime/IIw_left.c line 52
- in /usr/ingres/source/equel/runtime/IIw_right.c line 47
- in /usr/ingres/source/equel/runtime/IIwrite.c line 19
- in /usr/ingres/source/equel/runtime/IIwrpipe.c line 69, 119, 130

IIdomains defined in line 42; used 9 times

- in /usr/ingres/source/equel/runtime/IIflushtup.c line 46
- in /usr/ingres/source/equel/runtime/IIn_get.c line 34-39(2)
- in /usr/ingres/source/equel/runtime/IIn_ret.c line 63, 103, 111, 120
- in /usr/ingres/source/equel/runtime/IIresync.c line 43
- in /usr/ingres/source/equel/runtime/IIsetup.c line 18

IIeinpipe defined in line 95; used 9 times

- in /usr/ingres/source/equel/runtime/IIflushtup.c line 32-33(2)
- in /usr/ingres/source/equel/runtime/IIgettup.c line 38-41(2)
- in /usr/ingres/source/equel/runtime/IIn_get.c line 51
- in /usr/ingres/source/equel/runtime/IIn_ret.c line 47, 139
- in /usr/ingres/source/equel/runtime/IIresync.c line 24, 38

IIerrflag defined in line 53; used 21 times

- in /usr/ingres/source/equel/runtime/IIerror.c line 43
- in /usr/ingres/source/equel/runtime/IIflushtup.c line 26-29(2)
- in /usr/ingres/source/equel/runtime/IIgettup.c line 30
- in /usr/ingres/source/equel/runtime/IIn_get.c line 34, 41-43(3), 78
- in /usr/ingres/source/equel/runtime/IIn_ret.c line 38(2), 58, 104-112(3), 121-125(2)
- in /usr/ingres/source/equel/runtime/IIresync.c line 42
- in /usr/ingres/source/equel/runtime/IIsync.c line 32
- in /usr/ingres/source/equel/runtime/IIw_left.c line 129
- in /usr/ingres/source/equel/runtime/IIw_right.c line 126

IIin_retrieve defined in line 40; used 4 times

- in /usr/ingres/source/equel/runtime/IIflushtup.c line 44
- in /usr/ingres/source/equel/runtime/IIresync.c line 41
- in /usr/ingres/source/equel/runtime/IIsetup.c line 16
- in /usr/ingres/source/equel/runtime/IIwrite.c line 24

IIingpid defined in line 38; used 7 times

- in /usr/ingres/source/equel/runtime/IIexit.c line 37, 69
- in /usr/ingres/source/equel/runtime/IIingres.c line 40, 75-78(3)
- in /usr/ingres/source/equel/runtime/IIwrite.c line 22

IIinpipe defined in line 96; used 6 times

- in /usr/ingres/source/equel/runtime/IIflushtup.c line 36-42(3)
- in /usr/ingres/source/equel/runtime/IIingres.c line 56
- in /usr/ingres/source/equel/runtime/IIsync.c line 35-36(2)

IIline_no defined in line 36; used 5 times

- in /usr/ingres/source/equel/runtime/IIerror.c line 75
- in /usr/ingres/source/equel/runtime/IIflushtup.c line 21
- in /usr/ingres/source/equel/runtime/IIgettup.c line 28
- in /usr/ingres/source/equel/runtime/IIn_get.c line 27
- in /usr/ingres/source/equel/runtime/IIsync.c line 22

IImainpr defined in line 71; used 3 times

- in /usr/ingres/source/equel/runtime/IIingres.c line 102-109(3)

IIndomains defined in line 41; used 4 times

- in /usr/ingres/source/equel/runtime/IIflushtup.c line 45
- in /usr/ingres/source/equel/runtime/IIresync.c line 43
- in /usr/ingres/source/equel/runtime/IIretrieve.c line 22, 59

IInxtdomain defined in line 43; never used
IIoptn defined in line 39; never used
IIoutpipe defined in line 97; used 6 times

- in /usr/ingres/source/equel/runtime/IIcvar.c line 60-63(2)
- in /usr/ingres/source/equel/runtime/IIingres.c line 57
- in /usr/ingres/source/equel/runtime/IIsync.c line 29-30(2)
- in /usr/ingres/source/equel/runtime/IIwrite.c line 28

IIproc_name defined in line 35; used 19 times

- in /usr/ingres/source/equel/runtime/IIerror.c line 74-75(2)
- in /usr/ingres/source/equel/runtime/IIflushtup.c line 20
- in /usr/ingres/source/equel/runtime/IIgettup.c line 27, 46(2)
- in /usr/ingres/source/equel/runtime/IIn_get.c line 26, 32(2)
- in /usr/ingres/source/equel/runtime/IIn_ret.c line 56(2)
- in /usr/ingres/source/equel/runtime/IIrdpipe.c line 92, 100(2)
- in /usr/ingres/source/equel/runtime/IIsync.c line 21
- in /usr/ingres/source/equel/runtime/IIsyserr.c line 36-37(2)
- in /usr/ingres/source/equel/runtime/IIwrpipe.c line 64(2)

IIr_down defined in line 47; used 6 times

- in /usr/ingres/source/equel/runtime/IIexit.c line 31
- in /usr/ingres/source/equel/runtime/IIflushtup.c line 36-41(2)
- in /usr/ingres/source/equel/runtime/IIingres.c line 49
- in /usr/ingres/source/equel/runtime/IIresync.c line 35
- in /usr/ingres/source/equel/runtime/IIsync.c line 35

IIr_front defined in line 50; used 9 times

- in /usr/ingres/source/equel/runtime/IIexit.c line 31
- in /usr/ingres/source/equel/runtime/IIflushtup.c line 32
- in /usr/ingres/source/equel/runtime/IIgettup.c line 38-41(2)
- in /usr/ingres/source/equel/runtime/IIingres.c line 50
- in /usr/ingres/source/equel/runtime/IIn_get.c line 51
- in /usr/ingres/source/equel/runtime/IIn_ret.c line 47, 139
- in /usr/ingres/source/equel/runtime/IIresync.c line 34

IIr_sym defined in line 91; used 6 times

- in /usr/ingres/source/equel/runtime/IIn_get.c line 34(2), 46
- in /usr/ingres/source/equel/runtime/IIn_ret.c line 44
- in /usr/ingres/source/equel/runtime/IIsetup.c line 17(2)

IIretsym defined in line 90; used 2 times

- in /usr/ingres/source/equel/runtime/IIgettup.c line 33
- in /usr/ingres/source/equel/runtime/IIretrieve.c line 22

IItupcnt defined in line 44; used 1 times

- in /usr/ingres/source/equel/runtime/IIflushtup.c line 39

IIw_down defined in line 47; used 11 times

- in /usr/ingres/source/equel/runtime/IIcvar.c line 60-64(4)
- in /usr/ingres/source/equel/runtime/IIexit.c line 31
- in /usr/ingres/source/equel/runtime/IIingres.c line 48, 57
- in /usr/ingres/source/equel/runtime/IIresync.c line 30
- in /usr/ingres/source/equel/runtime/IIsync.c line 29-30(2)
- in /usr/ingres/source/equel/runtime/IIwrite.c line 28

#### Defined struct's

iob defined in line 76; used 14 times

- in /usr/ingres/source/equel/runtime/IIgetc.c line 60-62(4), 105-107(4), 151(2)
- in /usr/ingres/source/equel/runtime/IIingres.c line 140(2)
- in /usr/ingres/source/equel/runtime/IIp_err.c line 35(2)

retsym defined in line 84; used 14 times

- in line 90-91(4)
- in /usr/ingres/source/equel/runtime/IIgettup.c line 21-22(4)
- in /usr/ingres/source/equel/runtime/IIn_get.c line 24(2)
- in /usr/ingres/source/equel/runtime/IIn_ret.c line 33(2)
- in /usr/ingres/source/equel/runtime/IIretrieve.c line 19(2)

#### Defined macros

EQUEL defined in line 32; used 1 times

- in /usr/ingres/source/equel/runtime/IIingres.c line 62

ERRDELIM defined in line 33; used 2 times

- in /usr/ingres/source/equel/runtime/IIp_err.c line 71, 83

opCHAR defined in line 29; never used
opDOUBLE defined in line 28; used 2 times

- in /usr/ingres/source/equel/runtime/IIcvar.c line 39
- in /usr/ingres/source/equel/runtime/IIw_left.c line 87

opFLOAT defined in line 26; used 1 times

- in /usr/ingres/source/equel/runtime/IIw_left.c line 91

opINT defined in line 25; used 1 times

- in /usr/ingres/source/equel/runtime/IIw_left.c line 108

opLONG defined in line 30; used 1 times

- in /usr/ingres/source/equel/runtime/IIw_left.c line 104

opSTRING defined in line 27; used 1 times

- in /usr/ingres/source/equel/runtime/IIw_left.c line 117

#### Usage of this include

IIglobals.h used 20 times

- in /usr/ingres/source/equel/runtime/IIcvar.c line 4
- in /usr/ingres/source/equel/runtime/IIerror.c line 4
- in /usr/ingres/source/equel/runtime/IIexit.c line 5
- in /usr/ingres/source/equel/runtime/IIflushtup.c line 6
- in /usr/ingres/source/equel/runtime/IIgetc.c line 4
- in /usr/ingres/source/equel/runtime/IIgettup.c line 4
- in /usr/ingres/source/equel/runtime/IIingres.c line 6
- in /usr/ingres/source/equel/runtime/IIitos.c line 5
- in /usr/ingres/source/equel/runtime/IIn_get.c line 5
- in /usr/ingres/source/equel/runtime/IIn_ret.c line 5
- in /usr/ingres/source/equel/runtime/IIp_err.c line 5
- in /usr/ingres/source/equel/runtime/IIrdpipe.c line 4
- in /usr/ingres/source/equel/runtime/IIresync.c line 3
- in /usr/ingres/source/equel/runtime/IIretrieve.c line 4
- in /usr/ingres/source/equel/runtime/IIsetup.c line 4
- in /usr/ingres/source/equel/runtime/IIsync.c line 4
- in /usr/ingres/source/equel/runtime/IIw_left.c line 4
- in /usr/ingres/source/equel/runtime/IIw_right.c line 4
- in /usr/ingres/source/equel/runtime/IIwrite.c line 4
- in /usr/ingres/source/equel/runtime/IIwrpipe.c line 4

Last modified: 1980-12-17 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 913 |