Home
last modified time | relevance | path

Searched refs:db_indx_t (Results 1 – 21 of 21) sorted by relevance

/titanic_50/usr/src/cmd/sendmail/db/include/
H A Ddb_page.h136 db_indx_t entries; /* 20-21: Number of item pairs on the page. */
137 db_indx_t hf_offset; /* 22-23: High free byte page offset. */
160 db_indx_t inp[1]; /* Variable length index of items. */
216 #define LOFFSET(pg) (P_OVERHEAD + NUM_ENT(pg) * sizeof(db_indx_t))
312 (HKEYDATA_SIZE(len) + sizeof(db_indx_t))
354 #define HOFFPAGE_PSIZE (HOFFPAGE_SIZE + sizeof(db_indx_t))
371 #define HOFFDUP_PSIZE (HOFFDUP_SIZE + sizeof(db_indx_t))
404 db_indx_t len; /* 00-01: Key/data item length. */
420 (BKEYDATA_SIZE(len) + sizeof(db_indx_t))
427 db_indx_t unused1; /* 00-01: Padding, unused. */
[all …]
H A Dbtree.h125 db_indx_t indx; /* The index on the page. */
187 db_indx_t indx; /* Page item ref'd by the cursor. */
190 db_indx_t dindx; /* Page item ref'd by the cursor. */
247 db_indx_t bt_maxkey; /* Maximum keys per page. */
248 db_indx_t bt_minkey; /* Minimum keys per page. */
255 db_indx_t bt_ovflsize; /* Maximum key/data on-page size. */
H A Dhash.h65 db_indx_t bndx; /* Index within the current page. */
68 db_indx_t dndx; /* Index within a duplicate set. */
69 db_indx_t dup_off; /* Offset within a duplicate set. */
70 db_indx_t dup_len; /* Length of current duplicate. */
71 db_indx_t dup_tlen; /* Total length of duplicate entry. */
178 #define DUP_SIZE(len) ((len) + 2 * sizeof(db_indx_t))
H A Ddb_ext.h72 PAGE **, db_indx_t *, int (*)(DBC *, u_int32_t, PAGE **)));
82 int, DBT *, db_pgno_t, db_indx_t *, PAGE **, int *));
H A Dbtree_ext.h37 PAGE **, db_indx_t *, DBT *, DBT *, u_int32_t, u_int32_t));
/titanic_50/usr/src/cmd/sendmail/db/hash/
H A Dhash_dup.c282 db_indx_t dndx, i, len, off;
345 memcpy(&len, p, sizeof(db_indx_t));
347 p += sizeof(db_indx_t);
349 p += len + sizeof(db_indx_t);
350 off += len + 2 * sizeof(db_indx_t);
386 db_indx_t tsize, item_size;
390 item_size = (db_indx_t)notdup->size;
400 memcpy(p, &item_size, sizeof(db_indx_t));
401 p += sizeof(db_indx_t);
404 memcpy(p, &item_size, sizeof(db_indx_t));
[all …]
H A Dhash_page.c124 hcp->dup_off, sizeof(db_indx_t));
152 if (hcp->bndx >= (db_indx_t)H_NUMPAIRS(hcp->pagep)) {
354 + h->dup_off - sizeof(db_indx_t),
355 sizeof(db_indx_t));
562 db_indx_t i, movebytes, newbytes;
610 db_indx_t ndx;
1024 db_indx_t i;
1071 db_indx_t n;
1111 for (n = 0; n < (db_indx_t)H_NUMPAIRS(temp_pagep); n++) {
1132 2 * sizeof(db_indx_t);
[all …]
H A Dhash.c906 db_indx_t ndx;
911 db_indx_t len;
946 sizeof(db_indx_t));
954 HKEYDATA_DATA(hk), sizeof(db_indx_t));
1056 tmp_val.doff = hcp->dup_off + sizeof(db_indx_t);
/titanic_50/usr/src/cmd/sendmail/db/db/
H A Ddb_dup.c27 PAGE **, db_indx_t *, int (*)(DBC *, u_int32_t, PAGE **)));
29 PAGE **, db_indx_t *, u_int32_t, int (*)(DBC *, u_int32_t, PAGE **)));
43 db_indx_t *indxp;
49 db_indx_t size, isize;
211 db_indx_t *indxp;
220 db_indx_t halfbytes, i, indx, lastsum, nindex, oindex, s, sum;
253 if ((db_indx_t)(halfbytes - lastsum) <
254 (db_indx_t)(sum - halfbytes)) {
271 if ((db_indx_t)(sum - halfbytes) <
272 (db_indx_t)(halfbytes - lastsum))
[all …]
H A Ddb_conv.c108 db_indx_t i, len, tmp;
140 p, sizeof(db_indx_t));
141 p += sizeof(db_indx_t);
144 p, sizeof(db_indx_t));
H A Ddb_pr.c385 db_indx_t dlen, len, i;
507 memcpy(&dlen, p, sizeof(db_indx_t));
508 p += sizeof(db_indx_t);
511 p += sizeof(db_indx_t) + dlen;
593 db_indx_t i;
H A Ddb_overflow.c91 db_indx_t bytes;
177 db_indx_t pagespace;
H A Ddb.c493 dbp->pgsize & (sizeof(db_indx_t) - 1)) {
/titanic_50/usr/src/cmd/sendmail/db/btree/
H A Dbt_search.c84 db_indx_t base, i, indx, lim;
154 lim = NUM_ENT(h) / (db_indx_t)jump; lim != 0; lim >>= 1) {
265 while (indx < (db_indx_t)(NUM_ENT(h) - P_INDX) &&
285 indx < (db_indx_t)(NUM_ENT(h) - P_INDX) &&
H A Dbt_split.c65 static int __bam_psplit __P((DBC *, EPG *, PAGE *, PAGE *, db_indx_t *));
134 (db_indx_t)P_FREESPACE(cp->csp[0].page)) {
181 db_indx_t split;
262 db_indx_t split;
576 db_indx_t off;
771 db_indx_t *splitret;
775 db_indx_t half, nbytes, off, splitp, top;
870 if (off < (db_indx_t)NUM_ENT(pp) &&
877 if (splitp <= (db_indx_t)(cnt * adjust))
903 if (splitp <= (db_indx_t)(cnt * adjust))
[all …]
H A Dbt_delete.c256 db_indx_t copy;
272 sizeof(db_indx_t) * (NUM_ENT(h) - indx));
279 sizeof(db_indx_t) * (NUM_ENT(h) - indx));
415 db_indx_t nitems;
H A Dbt_put.c82 db_indx_t *indxp;
91 db_indx_t indx, nbytes;
184 need_bytes = sizeof(db_indx_t);
472 db_indx_t cnt, lo, ln, min, off, prefix, suffix;
577 db_indx_t cnt, cpindx, first, sz;
H A Dbt_rsearch.c77 db_indx_t indx, top;
365 db_indx_t indx, top;
H A Dbt_cursor.c240 db_indx_t indx;
763 db_indx_t indx;
1171 db_indx_t adjust, indx;
1284 db_indx_t indx, adjust;
1402 db_indx_t indx;
1510 indx < (db_indx_t)(NUM_ENT(h) - P_INDX) &&
1639 db_indx_t indx;
H A Dbt_recno.c251 db_indx_t indx;
537 db_indx_t indx;
1275 db_indx_t indx;
/titanic_50/usr/src/cmd/sendmail/db/
H A Ddb.h79 typedef u_int16_t db_indx_t; /* Page offset type. */ typedef