1: #
   2: /*
   3: **  BATCH.H -- batch file declarations.
   4: **
   5: **	Version:
   6: **		@(#)batch.h	8.1	12/31/84
   7: */
   8: 
   9: 
  10: 
  11: # define    BATCHSIZE   506 /* available buffer space */
  12: # define    IDSIZE      6   /* size of file id */
  13: 
  14: struct batchbuf
  15: {
  16:     char    file_id[IDSIZE];    /* unique file name identifier */
  17:     char    bbuf[BATCHSIZE];    /* buffer for batch storage */
  18: };
  19: 
  20: 
  21: struct si_doms
  22: {
  23:     short   rel_off;    /* offset in primary tuple */
  24:     short   tupo_off;   /* offset in saved tuple-old */
  25:     short   dom_size;   /* width of the domain */
  26:                 /* if zero then domain not used */
  27: };
  28: struct batchhd
  29: {
  30:     char    db_name[15];    /* data base name */
  31:     char    rel_name[13];   /* relation name */
  32:     char    userid[2];  /* ingres user code */
  33:     long    num_updts;  /* actual number of tuples to be updated */
  34:     short   mode_up;    /* type of update */
  35:     short   tido_size;  /* width of old_tuple_id field */
  36:     short   tupo_size;  /* width of old tuple */
  37:     short   tupn_size;  /* width of new tuple */
  38:     short   tidn_size;  /* width of new_tuple_id field */
  39:     short   si_dcount;  /* number of sec. index domains affected */
  40:     struct si_doms  si[MAXDOM+1];   /* entry for each domain with sec. index */
  41: };
  42: 
  43: 
  44: 
  45: short   Batch_fp;   /* file descriptor for batch file */
  46: short   Batch_cnt;  /* number of bytes taken from the current buffer */
  47: short   Batch_dirty;    /* used during update to mark a dirty page */
  48: short   Batch_lread;    /* number of bytes last read in readbatch() */
  49: short   Batch_recovery; /* TRUE is this is recovery, else FALSE */
  50: 
  51: extern char *Fileset;   /* unique id of batch maker */
  52: struct batchbuf Batchbuf;
  53: struct batchhd  Batchhd;
  54: 
  55: # include   <stdio.h>
  56: 
  57: FILE    *Repl_infp;
  58: FILE    *Repl_outfp;
  59: 
  60: int Del_cnt;
  61: FILE    *Del_infp;
  62: FILE    *Del_outfp;
  63: 
  64: # define    MODBATCH    "_SYSmod"
  65: # define    MODTEMP     "_SYSnewr"
  66: # define    ISAM_SORTED "_SYSsort"
  67: # define    ISAM_DESC   "_SYSdesc"
  68: # define    ISAM_SPOOL  "_SYSspol"
  69: # define    MOD_PREBATCH    "_SYSpreb"
  70: # define    BTREESEC    "_SYSbsec"
  71: # define    STEMP       "_SYSstemp"
  72: # define    REPL_IN     "_SYSr_in"
  73: # define    REPL_DESC   "_SYSr_desc"
  74: # define    REPL_OUT    "_SYSr_out"
  75: # define    DEL_IN      "_SYSd_in"
  76: # define    DEL_DESC    "_SYSd_desc"
  77: # define    DEL_OUT     "_SYSd_out"

Defined variables

Batch_cnt defined in line 46; never used
Batch_dirty defined in line 47; never used
Batch_fp defined in line 45; never used
Batch_lread defined in line 48; never used
Batch_recovery defined in line 49; never used
Batchbuf defined in line 52; never used
Batchhd defined in line 53; never used
Del_cnt defined in line 60; never used

Defined struct's

batchbuf defined in line 14; used 2 times
  • in line 52(2)
batchhd defined in line 28; used 2 times
  • in line 53(2)
si_doms defined in line 21; used 2 times
  • in line 40(2)

Defined macros

BATCHSIZE defined in line 11; used 1 times
  • in line 17
BTREESEC defined in line 70; never used
DEL_DESC defined in line 76; never used
DEL_IN defined in line 75; never used
DEL_OUT defined in line 77; never used
IDSIZE defined in line 12; used 1 times
  • in line 16
ISAM_DESC defined in line 67; never used
ISAM_SORTED defined in line 66; never used
ISAM_SPOOL defined in line 68; never used
MODBATCH defined in line 64; never used
MODTEMP defined in line 65; never used
MOD_PREBATCH defined in line 69; never used
REPL_DESC defined in line 73; never used
REPL_IN defined in line 72; never used
REPL_OUT defined in line 74; never used
STEMP defined in line 71; never used
Last modified: 1986-04-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 842
Valid CSS Valid XHTML 1.0 Strict