Annotation of 43BSD/ingres/source/h/batch.h, revision 1.1.1.1

1.1       root        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"

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.