added #defines for options to dbmstore().
[unix-history] / usr / src / include / ndbm.h
index 3cd4335..7e3f2c4 100644 (file)
@@ -1,4 +1,4 @@
-/*      ndbm.h     4.1     83/12/02     */
+/*      ndbm.h     4.2     83/12/20     */
 
 /*
  * (New) Hashed key data base library (-lndbm).
 
 /*
  * (New) Hashed key data base library (-lndbm).
@@ -28,6 +28,10 @@ typedef struct {
        int     dsize;
 } datum;
 
        int     dsize;
 } datum;
 
+       /* flags to dbmstore() */
+#define DB_INSERT      0
+#define DB_REPLACE     1
+
 datum   dbmfetch();
 datum   dbmfirstkey();
 datum   dbmnextkey();
 datum   dbmfetch();
 datum   dbmfirstkey();
 datum   dbmnextkey();