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

##### Macros

    INTRELID          X
    INTRELOWNER       X
    INTTREE           X
    IOWNERP           X
    IRELIDI           X
    IRELIDP           X
    PROPERMID         X
    PRORELID          X
    PRORELOWN         X
    PROTREE           X
    PRO_AGGR          X
    PRO_APP           X
    PRO_DEL           X
    PRO_REPL          X
    PRO_RETR          X
    PRO_TEST          X
    SECBASE           X
    SECINDEX          X
    TREEID            X
    TREEOWNER         X
    TREERELID         X
    TREESEQ           X
    TREETYPE          X

##### struct's

    index             X
    integrity         X
    protect           X
    tree              X

       1: #
       2: /*
       3: **	COPYRIGHT
       4: **
       5: **	The Regents of the University of California
       6: **
       7: **	1977
       8: **
       9: **	This program material is the property of the
      10: **	Regents of the University of California and
      11: **	may not be reproduced or disclosed without
      12: **	the prior written permission of the owner.
      13: */
      14:
      15:
      16:
      17: /*
      18: **	INDEX relation struct
      19: **
      20: **	The INDEX relation is used to determine what, if any,
      21: **	secondary indicies exist for relations.  If a relation
      22: **	has a secondary index, there will be one tuple in the
      23: **	INDEX relation for each such index.  There may be one
      24: **	or more domains indexed by one or many INDEX relations
      25: **	depending on whether single or combined indicies are
      26: **	being used.
      27: **
      28: **	Combined indices may use up to six domains to form the
      29: **	index.
      30: **
      31: **	The simple existance of a secondary index is better
      32: **	checked using the "relindxd" field in the RELATION
      33: **	relation, since that is more efficient.
      34: **
      35: **	The two values SECINDEX and SECBASE are the values for
      36: **	the relindxd field of the relation relation.  Implicitly
      37: **	SECINDEX must be < 0 and SECBASE must be > 0.
      38: */
      39:
      40: # define    IRELIDP     1
      41: # define    IOWNERP     2
      42: # define    IRELIDI     3
      43:
      44: # define    SECINDEX    -2  /* this value in rel.relindxd indicates
      45: 					** that the relation is a sec. index */
      46: # define    SECBASE     1   /* this value in rel.relindxd indicates
      47: 					** has a sec. index */
      48:
      49: struct index
      50: {
      51:     char    irelidp[MAXNAME];   /*unique name of primary relation	*/
      52:     char    iownerp[2];     /*owner of primary relation*/
      53:     char    irelidi[MAXNAME];   /*unique name of index relation	*/
      54:     char    irelspeci;      /*relspec of index relation*/
      55:     char    idom[MAXKEYS];      /* domain number of primary relation */
      56:                     /* which corresponds to each index attribute */
      57:                     /* In the indexes relation these are stored as */
      58:                     /* idom1, idom2, ..,idom6 */
      59: };
      60:
      61:
      62:
      63: /*
      64: **  TREE RELATION STRUCT
      65: **
      66: **	The TREE relation stores trees used by query modification and
      67: **	for distribution criteria.
      68: */
      69:
      70: struct tree
      71: {
      72:     char    treerelid[MAXNAME]; /* relation name */
      73:     char    treeowner[2];       /* relation owner */
      74:     int treeid;         /* internal name of this tuple */
      75:     int treeseq;        /* sequence number in tree */
      76:     char    treetype;       /* type info for this tree */
      77:     char    treexxxx;
      78:     char    treetree[100];      /* contents of tree */
      79: };
      80:
      81: # define    TREERELID   1
      82: # define    TREEOWNER   2
      83: # define    TREEID      3
      84: # define    TREESEQ     4
      85: # define    TREETYPE    5
      86:
      87:
      88:
      89: /*
      90: **  STRUCT PROTECT -- protection catalog
      91: **
      92: **	This structure defines the format of the 'protect' catalog.
      93: **	One or two things should be noted.  First, the 'prodomset'
      94: **	field is actually four domains in the physical relation,
      95: **	since the best we know about is i4's, and we need an i16.
      96: **	Second, both the proopset and the prodomset fields
      97: **	are bit maps.
      98: */
      99:
     100: struct protect
     101: {
     102:     char    prorelid[MAXNAME];  /* relation to which this applies */
     103:     char    prorelown[2];       /* owner */
     104:     int propermid;      /* permission sequence number */
     105:     char    prouser[2];     /* user code in PERMIT */
     106: #	ifndef xV7_UNIX
     107:     char    proterm;        /* terminal in PERMIT */
     108:     char    proopset;       /* operation set */
     109: #	endif
     110: #	ifdef xV7_UNIX
     111:     char    proterm[2];     /* two character terminal id */
     112:     char    proresvar;      /* result variable number */
     113:     char    proopset;       /* operation set */
     114: #	endif
     115:     int protodbgn;      /* beginning time of day */
     116:     int protodend;      /* ending time of day */
     117:     char    prodowbgn;      /* beginning day of week */
     118:     char    prodowend;      /* ending day of week */
     119:     int prodomset[8];       /* domain set permitted */
     120:     int protree;        /* link to qualification */
     121: #	ifndef xV7_UNIX
     122:     char    proresvar;      /* Resultvarno in tree */
     123: #	endif
     124: };
     125:
     126: /* field numbers for find() calls */
     127: # define    PRORELID    1
     128: # define    PRORELOWN   2
     129: # define    PROPERMID   3
     130: # ifndef xV7_UNIX
     131: # define    PROTREE     15
     132: # endif
     133: # ifdef xV7_UNIX
     134: # define    PROTREE     16
     135: # endif
     136:
     137: /* bit values for proopset */
     138: # define    PRO_RETR    0001    /* retrieve */
     139: # define    PRO_REPL    0002    /* replace */
     140: # define    PRO_DEL     0004    /* delete */
     141: # define    PRO_APP     0010    /* append */
     142: # define    PRO_TEST    0020    /* test in qualification */
     143: # define    PRO_AGGR    0040    /* retrieve aggregate value */
     144:
     145:
     146:
     147: /*
     148: **  STRUCT INTEGRITY -- the descriptor for the integrity relation
     149: */
     150:
     151: struct integrity
     152: {
     153:     char    intrelid[MAXNAME];  /* name of the relation */
     154:     char    intrelowner[2];     /* owner of the relation */
     155:     int intdomset[8];       /* set of domains this applies to */
     156:     int inttree;        /* pointer into the tree catalog */
     157:     char    intresvar;      /* primary variable number */
     158: };
     159:
     160: # define    INTRELID    1
     161: # define    INTRELOWNER 2
     162: # define    INTTREE     7

#### Defined struct's

index defined in line 49; used 24 times

- in /usr/ingres/source/access/batch.c line 39(2)
- in /usr/ingres/source/dbu/get_p_tid.c line 47(2)
- in /usr/ingres/source/dbu/help.c line 251(2)
- in /usr/ingres/source/dbu/index.c line 50(2)
- in /usr/ingres/source/dbu/modupdate.c line 30(2)
- in /usr/ingres/source/dbu/secupdate.c line 21(2)
- in /usr/ingres/source/dbu/userdestroy.c line 48(2)
- in /usr/ingres/source/decomp/reformat.c line 472(2)
- in /usr/ingres/source/iutil/paramd.c line 40(2)
- in /usr/ingres/source/ovqp/strategy.c line 27(2)
- in /usr/ingres/source/support/restore.c line 538(2), 606(2)

integrity defined in line 151; used 20 times

- in /usr/ingres/source/dbu/display.c line 290(2), 345-347(4)
- in /usr/ingres/source/dbu/rmqm.c line 175(2), 784(2), 890(2)
- in /usr/ingres/source/qrymod/d_integ.c line 57(2)
- in /usr/ingres/source/qrymod/integrity.c line 69(2)
- in /usr/ingres/source/support/restore.c line 778(2), 1001(2)

protect defined in line 100; used 40 times

- in /usr/ingres/source/dbu/pr_prot.c line 111(2), 203-204(4), 266-269(4)
- in /usr/ingres/source/dbu/rmqm.c line 261(2), 821(2), 857(2)
- in /usr/ingres/source/qrymod/d_prot.c line 104-107(6)
- in /usr/ingres/source/qrymod/fillprotup.c line 32-34(4)
- in /usr/ingres/source/qrymod/protect.c line 351(2), 817-819(4), 924-926(4)
- in /usr/ingres/source/support/restore.c line 734(2), 914(2)

tree defined in line 70; used 32 times

- in /usr/ingres/source/dbu/readtree.c line 268(2), 274(2)
- in /usr/ingres/source/dbu/rmqm.c line 176(2), 262(2), 372(2), 441(2), 518(2), 581-584(4)
- in /usr/ingres/source/qrymod/define.c line 209-210(4), 305(2)
- in /usr/ingres/source/qrymod/readtree.c line 282(2), 288(2)
- in /usr/ingres/source/support/restore.c line 689(2), 815(2)

#### Defined macros

INTRELID defined in line 160; used 6 times

- in /usr/ingres/source/dbu/display.c line 305
- in /usr/ingres/source/dbu/rmqm.c line 187, 213
- in /usr/ingres/source/dbu/userdestroy.c line 117
- in /usr/ingres/source/qrymod/integrity.c line 126
- in /usr/ingres/source/support/restore.c line 784

INTRELOWNER defined in line 161; used 6 times

- in /usr/ingres/source/dbu/display.c line 306
- in /usr/ingres/source/dbu/rmqm.c line 188, 214
- in /usr/ingres/source/dbu/userdestroy.c line 117
- in /usr/ingres/source/qrymod/integrity.c line 127
- in /usr/ingres/source/support/restore.c line 785

INTTREE defined in line 162; used 2 times

- in /usr/ingres/source/dbu/rmqm.c line 201
- in /usr/ingres/source/support/restore.c line 787

IOWNERP defined in line 41; used 14 times

- in /usr/ingres/source/access/batch.c line 103
- in /usr/ingres/source/dbu/get_p_tid.c line 57
- in /usr/ingres/source/dbu/help.c line 320, 338
- in /usr/ingres/source/dbu/modupdate.c line 143, 158
- in /usr/ingres/source/dbu/secupdate.c line 41
- in /usr/ingres/source/dbu/userdestroy.c line 57, 68, 89
- in /usr/ingres/source/decomp/reformat.c line 496
- in /usr/ingres/source/ovqp/strategy.c line 91
- in /usr/ingres/source/support/restore.c line 547, 615

IRELIDI defined in line 42; used 5 times

- in /usr/ingres/source/dbu/get_p_tid.c line 58
- in /usr/ingres/source/dbu/help.c line 321
- in /usr/ingres/source/dbu/modupdate.c line 142
- in /usr/ingres/source/dbu/userdestroy.c line 56
- in /usr/ingres/source/support/restore.c line 614

IRELIDP defined in line 40; used 9 times

- in /usr/ingres/source/access/batch.c line 102
- in /usr/ingres/source/dbu/help.c line 337
- in /usr/ingres/source/dbu/modupdate.c line 157
- in /usr/ingres/source/dbu/secupdate.c line 40
- in /usr/ingres/source/dbu/userdestroy.c line 67, 88
- in /usr/ingres/source/decomp/reformat.c line 495
- in /usr/ingres/source/ovqp/strategy.c line 90
- in /usr/ingres/source/support/restore.c line 546

PROPERMID defined in line 129; used 2 times

- in /usr/ingres/source/dbu/rmqm.c line 311
- in /usr/ingres/source/qrymod/d_prot.c line 272

PRORELID defined in line 127; used 7 times

- in /usr/ingres/source/dbu/pr_prot.c line 142
- in /usr/ingres/source/dbu/rmqm.c line 274, 323
- in /usr/ingres/source/dbu/userdestroy.c line 124
- in /usr/ingres/source/qrymod/d_prot.c line 268
- in /usr/ingres/source/qrymod/protect.c line 482
- in /usr/ingres/source/support/restore.c line 740

PRORELOWN defined in line 128; used 7 times

- in /usr/ingres/source/dbu/pr_prot.c line 143
- in /usr/ingres/source/dbu/rmqm.c line 275, 324
- in /usr/ingres/source/dbu/userdestroy.c line 124
- in /usr/ingres/source/qrymod/d_prot.c line 269
- in /usr/ingres/source/qrymod/protect.c line 483
- in /usr/ingres/source/support/restore.c line 741

PROTREE defined in line 134; used 1 times

- in /usr/ingres/source/support/restore.c line 743

PRO_AGGR defined in line 143; used 5 times

- in /usr/ingres/source/dbu/pr_prot.c line 377
- in /usr/ingres/source/qrymod/d_prot.c line 218
- in /usr/ingres/source/qrymod/fillprotup.c line 61
- in /usr/ingres/source/qrymod/protect.c line 467, 508

PRO_APP defined in line 141; used 3 times

- in /usr/ingres/source/dbu/pr_prot.c line 386
- in /usr/ingres/source/parser/p_util.c line 355
- in /usr/ingres/source/qrymod/protect.c line 192

PRO_DEL defined in line 140; used 3 times

- in /usr/ingres/source/dbu/pr_prot.c line 384
- in /usr/ingres/source/parser/p_util.c line 363
- in /usr/ingres/source/qrymod/protect.c line 194

PRO_REPL defined in line 139; used 3 times

- in /usr/ingres/source/dbu/pr_prot.c line 382
- in /usr/ingres/source/parser/p_util.c line 359
- in /usr/ingres/source/qrymod/protect.c line 193

PRO_RETR defined in line 138; used 9 times

- in /usr/ingres/source/dbu/pr_prot.c line 380
- in /usr/ingres/source/parser/p_util.c line 351
- in /usr/ingres/source/qrymod/d_prot.c line 211, 218
- in /usr/ingres/source/qrymod/fillprotup.c line 60
- in /usr/ingres/source/qrymod/protect.c line 190-191(2), 465, 507

PRO_TEST defined in line 142; used 5 times

- in /usr/ingres/source/dbu/pr_prot.c line 377
- in /usr/ingres/source/qrymod/d_prot.c line 218
- in /usr/ingres/source/qrymod/fillprotup.c line 61
- in /usr/ingres/source/qrymod/protect.c line 469, 509

SECBASE defined in line 46; used 2 times

- in /usr/ingres/source/dbu/index.c line 205
- in /usr/ingres/source/support/restore.c line 665

SECINDEX defined in line 44; used 1 times

- in /usr/ingres/source/dbu/create.c line 278

TREEID defined in line 83; used 4 times

- in /usr/ingres/source/dbu/readtree.c line 304
- in /usr/ingres/source/dbu/rmqm.c line 595
- in /usr/ingres/source/qrymod/define.c line 230
- in /usr/ingres/source/qrymod/readtree.c line 325

TREEOWNER defined in line 82; used 6 times

- in /usr/ingres/source/dbu/readtree.c line 302
- in /usr/ingres/source/dbu/rmqm.c line 384
- in /usr/ingres/source/dbu/userdestroy.c line 131
- in /usr/ingres/source/qrymod/define.c line 226
- in /usr/ingres/source/qrymod/readtree.c line 323
- in /usr/ingres/source/support/restore.c line 696

TREERELID defined in line 81; used 6 times

- in /usr/ingres/source/dbu/readtree.c line 301
- in /usr/ingres/source/dbu/rmqm.c line 383
- in /usr/ingres/source/dbu/userdestroy.c line 131
- in /usr/ingres/source/qrymod/define.c line 225
- in /usr/ingres/source/qrymod/readtree.c line 322
- in /usr/ingres/source/support/restore.c line 695

TREESEQ defined in line 84; used 2 times

- in /usr/ingres/source/dbu/readtree.c line 305
- in /usr/ingres/source/qrymod/readtree.c line 326

TREETYPE defined in line 85; used 5 times

- in /usr/ingres/source/dbu/readtree.c line 303
- in /usr/ingres/source/dbu/rmqm.c line 385
- in /usr/ingres/source/qrymod/define.c line 227
- in /usr/ingres/source/qrymod/readtree.c line 324
- in /usr/ingres/source/support/restore.c line 697

#### Usage of this include

catalog.h used 26 times

- in /usr/ingres/source/access/batch.c line 3
- in /usr/ingres/source/dbu/create.c line 4
- in /usr/ingres/source/dbu/destroy.c line 3
- in /usr/ingres/source/dbu/display.c line 24
- in /usr/ingres/source/dbu/get_p_tid.c line 2
- in /usr/ingres/source/dbu/help.c line 3
- in /usr/ingres/source/dbu/index.c line 3
- in /usr/ingres/source/dbu/modupdate.c line 12
- in /usr/ingres/source/dbu/pr_prot.c line 30
- in /usr/ingres/source/dbu/readtree.c line 3
- in /usr/ingres/source/dbu/rmqm.c line 50
- in /usr/ingres/source/dbu/secupdate.c line 3
- in /usr/ingres/source/dbu/userdestroy.c line 4
- in /usr/ingres/source/decomp/reformat.c line 2
- in /usr/ingres/source/iutil/paramd.c line 3
- in /usr/ingres/source/ovqp/strategy.c line 3
- in /usr/ingres/source/parser/p_util.c line 5
- in /usr/ingres/source/qrymod/d_integ.c line 4
- in /usr/ingres/source/qrymod/d_prot.c line 4
- in /usr/ingres/source/qrymod/d_view.c line 6
- in /usr/ingres/source/qrymod/define.c line 2
- in /usr/ingres/source/qrymod/fillprotup.c line 4
- in /usr/ingres/source/qrymod/integrity.c line 3
- in /usr/ingres/source/qrymod/protect.c line 4
- in /usr/ingres/source/qrymod/readtree.c line 2
- in /usr/ingres/source/support/restore.c line 7

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