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

##### Variables

    Batch_cnt         X
    Batch_dirty       X
    Batch_fp          X
    Batch_lread       X
    Batch_recovery    X
    Batchbuf          X
    Batchhd           X

##### Macros

    BATCHSIZE         X
    IDSIZE            X
    ISAM_DESC         X
    ISAM_SORTED       X
    ISAM_SPOOL        X
    MODBATCH          X
    MODTEMP           X
    MOD_PREBATCH      X

##### struct's

    batchbuf          X
    batchhd           X
    si_doms           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: # define    BATCHSIZE   506 /* available buffer space */
      18: # define    IDSIZE      6   /* size of file id */
      19:
      20: struct batchbuf
      21: {
      22:     char    file_id[IDSIZE];    /* unique file name identifier */
      23:     char    bbuf[BATCHSIZE];    /* buffer for batch storage */
      24: };
      25:
      26:
      27: struct si_doms
      28: {
      29:     int rel_off;    /* offset in primary tuple */
      30:     int tupo_off;   /* offset in saved tuple-old */
      31:     int dom_size;   /* width of the domain */
      32:                 /* if zero then domain not used */
      33: };
      34: struct batchhd
      35: {
      36:     char    db_name[15];    /* data base name */
      37:     char    rel_name[13];   /* relation name */
      38:     char    userid[2];  /* ingres user code */
      39:     long    num_updts;  /* actual number of tuples to be updated */
      40:     int mode_up;    /* type of update */
      41:     int tido_size;  /* width of old_tuple_id field */
      42:     int tupo_size;  /* width of old tuple */
      43:     int tupn_size;  /* width of new tuple */
      44:     int tidn_size;  /* width of new_tuple_id field */
      45:     int si_dcount;  /* number of sec. index domains affected */
      46:     struct si_doms  si[MAXDOM+1];   /* entry for each domain with sec. index */
      47: };
      48:
      49:
      50:
      51: int Batch_fp;   /* file descriptor for batch file */
      52: int Batch_cnt;  /* number of bytes taken from the current buffer */
      53: int Batch_dirty;    /* used during update to mark a dirty page */
      54: int Batch_lread;    /* number of bytes last read in readbatch() */
      55: int Batch_recovery; /* TRUE is this is recovery, else FALSE */
      56:
      57: extern char *Fileset;   /* unique id of batch maker */
      58: struct batchbuf Batchbuf;
      59: struct batchhd  Batchhd;
      60: # define    MODBATCH    "_SYSmod"
      61: # define    MODTEMP     "_SYSnewr"
      62: # define    ISAM_SORTED "_SYSsort"
      63: # define    ISAM_DESC   "_SYSdesc"
      64: # define    ISAM_SPOOL  "_SYSspol"
      65: # define    MOD_PREBATCH    "_SYSpreb"

#### Defined variables

Batch_cnt defined in line 52; used 35 times

- in /usr/ingres/source/access/batch.c line 53
- in /usr/ingres/source/access/writebatch.c line 19, 25-33(5), 42-50(5)
- in /usr/ingres/source/dbu/modify.c line 981
- in /usr/ingres/source/dbu/modupdate.c line 48
- in /usr/ingres/source/dbu/rdwrbatch.c line 18, 25-37(6), 60-68(5), 85, 102, 113-115(3)
- in /usr/ingres/source/dbu/secupdate.c line 63
- in /usr/ingres/source/dbu/update.c line 39
- in /usr/ingres/source/support/restore.c line 213, 229

Batch_dirty defined in line 53; used 7 times

- in /usr/ingres/source/access/writebatch.c line 24
- in /usr/ingres/source/dbu/modupdate.c line 49
- in /usr/ingres/source/dbu/rdwrbatch.c line 59, 102, 117
- in /usr/ingres/source/dbu/secupdate.c line 34
- in /usr/ingres/source/dbu/update.c line 40

Batch_fp defined in line 51; used 24 times

- in /usr/ingres/source/access/batch.c line 51-52(2), 204-208(2)
- in /usr/ingres/source/access/batchxtra.c line 14
- in /usr/ingres/source/access/writebatch.c line 48
- in /usr/ingres/source/dbu/modify.c line 978-979(2), 1006
- in /usr/ingres/source/dbu/modupdate.c line 46, 136
- in /usr/ingres/source/dbu/rdwrbatch.c line 83-84(2), 109, 115
- in /usr/ingres/source/dbu/secupdate.c line 61-62(2)
- in /usr/ingres/source/dbu/update.c line 41
- in /usr/ingres/source/support/restore.c line 212, 218, 227, 236, 254-255(2)

Batch_lread defined in line 54; used 8 times

- in /usr/ingres/source/dbu/rdwrbatch.c line 83-93(5), 106-110(3)

Batch_recovery defined in line 55; used 5 times

- in /usr/ingres/source/dbu/modupdate.c line 63
- in /usr/ingres/source/dbu/secupdate.c line 139, 149
- in /usr/ingres/source/dbu/update.c line 84
- in /usr/ingres/source/support/restore.c line 201

Batchbuf defined in line 58; used 11 times

- in /usr/ingres/source/access/batch.c line 56
- in /usr/ingres/source/access/writebatch.c line 29, 48
- in /usr/ingres/source/dbu/modify.c line 980
- in /usr/ingres/source/dbu/rdwrbatch.c line 32, 64, 83, 91-92(2), 115
- in /usr/ingres/source/support/sysmod.c line 217

Batchhd defined in line 59; used 67 times

- in /usr/ingres/source/access/batch.c line 42, 57-64(6), 70-83(8), 89-97(3), 121-125(3), 136-137(2), 148(2), 165-174(5), 187-191(2), 200, 206-210(3)
- in /usr/ingres/source/access/batchxtra.c line 18
- in /usr/ingres/source/dbu/secupdate.c line 33, 64(2), 75-77(2), 89-95(5)
- in /usr/ingres/source/dbu/update.c line 43-48(4), 59-67(6), 74, 86, 94, 100, 107
- in /usr/ingres/source/support/restore.c line 214-219(5)

#### Defined struct's

batchbuf defined in line 20; used 2 times

- in line 58(2)

batchhd defined in line 34; used 2 times

- in line 59(2)

si_doms defined in line 27; used 6 times

- in line 46(2)
- in /usr/ingres/source/access/batch.c line 34(2), 158(2)

#### Defined macros

BATCHSIZE defined in line 17; used 16 times

- in line 23
- in /usr/ingres/source/access/writebatch.c line 25-26(2), 33
- in /usr/ingres/source/dbu/modupdate.c line 48
- in /usr/ingres/source/dbu/rdwrbatch.c line 25-31(3), 37, 60-61(2), 68, 83
- in /usr/ingres/source/dbu/secupdate.c line 63
- in /usr/ingres/source/dbu/update.c line 39
- in /usr/ingres/source/support/restore.c line 213

IDSIZE defined in line 18; used 8 times

- in line 22
- in /usr/ingres/source/access/writebatch.c line 46-48(3)
- in /usr/ingres/source/dbu/rdwrbatch.c line 83, 113-115(3)

ISAM_DESC defined in line 63; used 1 times

- in /usr/ingres/source/dbu/modify.c line 594

ISAM_SORTED defined in line 62; used 1 times

- in /usr/ingres/source/dbu/modify.c line 591

ISAM_SPOOL defined in line 64; used 1 times

- in /usr/ingres/source/dbu/modify.c line 667

MODBATCH defined in line 60; used 5 times

- in /usr/ingres/source/dbu/modify.c line 1007
- in /usr/ingres/source/dbu/modupdate.c line 39
- in /usr/ingres/source/support/restore.c line 223-226(3)

MODTEMP defined in line 61; used 2 times

- in /usr/ingres/source/dbu/modify.c line 538
- in /usr/ingres/source/dbu/modupdate.c line 40

MOD_PREBATCH defined in line 65; used 1 times

- in /usr/ingres/source/dbu/modify.c line 976

#### Usage of this include

batch.h used 14 times

- in /usr/ingres/source/access/batch.c line 6
- in /usr/ingres/source/access/batchxtra.c line 5
- in /usr/ingres/source/access/writebatch.c line 5
- in /usr/ingres/source/dbu/modify.c line 6
- in /usr/ingres/source/dbu/modupdate.c line 14
- in /usr/ingres/source/dbu/rdwrbatch.c line 5
- in /usr/ingres/source/dbu/resetrel.c line 3
- in /usr/ingres/source/dbu/secupdate.c line 6
- in /usr/ingres/source/dbu/update.c line 5
- in /usr/ingres/source/ovqp/copyreturn.c line 5
- in /usr/ingres/source/ovqp/equelpr.c line 5
- in /usr/ingres/source/ovqp/main.c line 6
- in /usr/ingres/source/support/restore.c line 9
- in /usr/ingres/source/support/sysmod.c line 5

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