R_APPEND -> R_CURSORLOG; add R_SETCURSOR
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 12 Nov 1992 10:47:44 +0000 (02:47 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 12 Nov 1992 10:47:44 +0000 (02:47 -0800)
key variable no longer const * for the put routine, key can be set

SCCS-vsn: include/db.h 5.19

usr/src/include/db.h

index 97e1007..9519362 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)db.h        5.18 (Berkeley) %G%
+ *     @(#)db.h        5.19 (Berkeley) %G%
  */
 
 #ifndef _DB_H_
  */
 
 #ifndef _DB_H_
@@ -31,8 +31,8 @@ typedef struct {
 } DBT;
 
 /* Routine flags. */
 } DBT;
 
 /* Routine flags. */
-#define        R_APPEND        1               /* put (RECNO) */
-#define        R_CURSOR        2               /* del, put, seq */
+#define        R_CURSOR        1               /* del, put, seq */
+#define        R_CURSORLOG     2               /* put (RECNO) */
 #define        R_FIRST         3               /* seq */
 #define        R_IAFTER        4               /* put (RECNO) */
 #define        R_IBEFORE       5               /* put (RECNO) */
 #define        R_FIRST         3               /* seq */
 #define        R_IAFTER        4               /* put (RECNO) */
 #define        R_IBEFORE       5               /* put (RECNO) */
@@ -40,6 +40,7 @@ typedef struct {
 #define        R_NEXT          7               /* seq */
 #define        R_NOOVERWRITE   8               /* put */
 #define        R_PREV          9               /* seq (BTREE, RECNO) */
 #define        R_NEXT          7               /* seq */
 #define        R_NOOVERWRITE   8               /* put */
 #define        R_PREV          9               /* seq (BTREE, RECNO) */
+#define        R_SETCURSOR     10              /* put (RECNO) */
 
 typedef enum { DB_BTREE, DB_HASH, DB_RECNO } DBTYPE;
 
 
 typedef enum { DB_BTREE, DB_HASH, DB_RECNO } DBTYPE;
 
@@ -49,8 +50,7 @@ typedef struct __db {
        int (*close)    __P((struct __db *));
        int (*del)      __P((const struct __db *, const DBT *, u_int));
        int (*get)      __P((const struct __db *, const DBT *, DBT *, u_int));
        int (*close)    __P((struct __db *));
        int (*del)      __P((const struct __db *, const DBT *, u_int));
        int (*get)      __P((const struct __db *, const DBT *, DBT *, u_int));
-       int (*put)      __P((const struct __db *, const DBT *, const DBT *,
-                           u_int));
+       int (*put)      __P((const struct __db *, DBT *, const DBT *, u_int));
        int (*seq)      __P((const struct __db *, DBT *, DBT *, u_int));
        int (*sync)     __P((const struct __db *));
        void *internal;                 /* access method private */
        int (*seq)      __P((const struct __db *, DBT *, DBT *, u_int));
        int (*sync)     __P((const struct __db *));
        void *internal;                 /* access method private */