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
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
Defined macros
Usage of this include