|
|
1.1 ! root 1: # ! 2: /* ! 3: ** BATCH.H -- batch file declarations. ! 4: ** ! 5: ** Version: ! 6: ** @(#)batch.h 7.1 2/5/81 ! 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: # define MODBATCH "_SYSmod" ! 55: # define MODTEMP "_SYSnewr" ! 56: # define ISAM_SORTED "_SYSsort" ! 57: # define ISAM_DESC "_SYSdesc" ! 58: # define ISAM_SPOOL "_SYSspol" ! 59: # define MOD_PREBATCH "_SYSpreb"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.