Changeset 277 for trunk/src/emx/bsd/db/hash/hash.h
- Timestamp:
- Jun 2, 2003, 9:56:50 PM (23 years ago)
- File:
-
- 1 edited
-
trunk/src/emx/bsd/db/hash/hash.h (modified) (5 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/bsd/db/hash/hash.h
-
Property cvs2svn:cvs-rev
changed from
1.1to1.2
r276 r277 72 72 int ssize; /* Segment Size */ 73 73 int sshift; /* Segment shift */ 74 int ovfl_point; /* Where overflow pages are being 74 int ovfl_point; /* Where overflow pages are being 75 75 * allocated */ 76 76 int last_freed; /* Last overflow page freed */ 77 77 int max_bucket; /* ID of Maximum bucket in use */ 78 78 int high_mask; /* Mask to modulo into entire table */ 79 int low_mask; /* Mask to modulo into lower half of 79 int low_mask; /* Mask to modulo into lower half of 80 80 * table */ 81 81 int ffactor; /* Fill factor */ … … 83 83 int hdrpages; /* Size of table header */ 84 84 int h_charkey; /* value of hash(CHARKEY) */ 85 #define NCACHED 32 /* number of bit maps and spare 85 #define NCACHED 32 /* number of bit maps and spare 86 86 * points */ 87 87 int spares[NCACHED];/* spare pages for overflow */ 88 u_int16_t bitmaps[NCACHED]; /* address of overflow page 88 u_int16_t bitmaps[NCACHED]; /* address of overflow page 89 89 * bitmaps */ 90 90 } HASHHDR; … … 93 93 HASHHDR hdr; /* Header */ 94 94 int nsegs; /* Number of allocated segments */ 95 int exsegs; /* Number of extra allocated 95 int exsegs; /* Number of extra allocated 96 96 * segments */ 97 97 u_int32_t /* Hash function */ … … 104 104 int cbucket; /* Current bucket */ 105 105 int cndx; /* Index of next item on cpage */ 106 int errno; /* Error Number -- for DBM 106 /* bird: this used to be errno but that crashes with the errno define in errno.h and stdlib.h. */ 107 int dbmerrno; /* Error Number -- for DBM 107 108 * compatability */ 108 int new_file; /* Indicates if fd is backing store 109 int new_file; /* Indicates if fd is backing store 109 110 * or no */ 110 int save_file; /* Indicates whether we need to flush 111 int save_file; /* Indicates whether we need to flush 111 112 * file at 112 113 * exit */ 113 114 u_int32_t *mapp[NCACHED]; /* Pointers to page maps */ 114 115 int nmaps; /* Initial number of bitmaps */ 115 int nbufs; /* Number of buffers left to 116 int nbufs; /* Number of buffers left to 116 117 * allocate */ 117 118 BUFHEAD bufhead; /* Header of buffer lru list */ … … 233 234 * OVFLPAGE -- 0 234 235 * 235 * FULL_KEY_DATA 236 * FULL_KEY_DATA 236 237 * This must be the first key/data pair on the page. 237 238 * There are two cases: -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
