From: CSRG Date: Thu, 3 Nov 1983 04:54:33 +0000 (-0800) Subject: BSD 4_2 development X-Git-Tag: BSD-4_3^2~12 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/c5957d00f7c86c531f9f185c2b2943556d3ef4db BSD 4_2 development Work on file usr/include/dbm.h Synthesized-from: CSRG/cd1/4.2 --- diff --git a/usr/include/dbm.h b/usr/include/dbm.h new file mode 100755 index 0000000000..82f5a899c4 --- /dev/null +++ b/usr/include/dbm.h @@ -0,0 +1,33 @@ +/* dbm.h 4.1 83/06/27 */ + +#define PBLKSIZ 1024 +#define DBLKSIZ 4096 +#define BYTESIZ 8 +#define NULL ((char *) 0) + +long bitno; +long maxbno; +long blkno; +long hmask; + +char pagbuf[PBLKSIZ]; +char dirbuf[DBLKSIZ]; + +int dirf; +int pagf; +int dbrdonly; + +typedef struct +{ + char *dptr; + int dsize; +} datum; + +datum fetch(); +datum makdatum(); +datum firstkey(); +datum nextkey(); +datum firsthash(); +long calchash(); +long hashinc(); +