1 *** PORT/db/btree/bt_open.c.orig 1993/11/24 11:16:51
2 --- PORT/db/btree/bt_open.c 1993/11/24 12:38:12
6 * Don't overflow the page offset type.
9 + #ifdef STBLKSIZE_NOT_AVAILABLE
12 b.psize = sb.st_blksize;
14 if (b.psize < MINPSIZE)
16 if (b.psize > MAX_PAGE_OFFSET + 1)
17 *** PORT/db/recno/rec_open.c.orig 1993/11/29 18:26:26
18 --- PORT/db/recno/rec_open.c 1993/11/30 11:35:21
24 t->bt_msize = sb.st_size;
25 + #ifdef MMAP_NOT_AVAILABLE
28 if ((t->bt_smap = mmap(NULL, t->bt_msize,
29 PROT_READ, MAP_PRIVATE, rfd,
30 (off_t)0)) == (caddr_t)-1)
34 t->bt_irec = ISSET(t, R_FIXLEN) ?
35 __rec_fmap : __rec_vmap;
41 *** PORT/db/hash/hash_log2.c.orig 1993/11/24 11:10:40
42 --- PORT/db/hash/hash_log2.c 1993/11/24 12:38:52
46 #include <sys/types.h>
52 ! register u_int i, limit;
55 for (i = 0; limit < num; limit = limit << 1, i++);
58 #include <sys/types.h>
64 ! register unsigned int i, limit;
67 for (i = 0; limit < num; limit = limit << 1, i++);
68 *** PORT/db/hash/hash.c.orig 1993/11/24 11:18:44
69 --- PORT/db/hash/hash.c 1993/11/24 12:38:29
74 if (stat(file, &statbuf))
76 + #ifdef STBLKSIZE_NOT_AVAILABLE
77 + hashp->BSIZE = 4096;
79 hashp->BSIZE = statbuf.st_blksize;
81 hashp->BSHIFT = __log2(hashp->BSIZE);
84 *** PORT/db/hash/hash.h.orig 1993/11/24 11:20:03
85 --- PORT/db/hash/hash.h 1993/11/24 12:38:38
91 /* Short hands for accessing structure */
93 #define BSIZE hdr.bsize
94 #define BSHIFT hdr.bshift
95 #define DSIZE hdr.dsize