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_lread defined in line 54; used 8 times

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

Defined macros

IDSIZE defined in line 18; used 8 times
ISAM_DESC defined in line 63; used 1 times
ISAM_SORTED defined in line 62; used 1 times
ISAM_SPOOL defined in line 64; used 1 times
MOD_PREBATCH defined in line 65; used 1 times

Usage of this include

Last modified: 1980-12-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3375
Valid CSS Valid XHTML 1.0 Strict