BSD 4_2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Tue, 3 May 1983 06:48:32 +0000 (22:48 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Tue, 3 May 1983 06:48:32 +0000 (22:48 -0800)
Work on file usr/src/include/dbm.h

Synthesized-from: CSRG/cd1/4.2

usr/src/include/dbm.h [new file with mode: 0644]

diff --git a/usr/src/include/dbm.h b/usr/src/include/dbm.h
new file mode 100644 (file)
index 0000000..28748de
--- /dev/null
@@ -0,0 +1,33 @@
+/*     dbm.h   4.1     83/05/03        */
+
+#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();
+