move R_PUT to BTREEINFO structure
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 22 Nov 1990 02:53:25 +0000 (18:53 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 22 Nov 1990 02:53:25 +0000 (18:53 -0800)
SCCS-vsn: lib/libc/db/man/dbopen.3 5.9

usr/src/lib/libc/db/man/dbopen.3

index 3f7820c..be73cae 100644 (file)
@@ -3,7 +3,7 @@
 .\"
 .\" %sccs.include.redist.man%
 .\"
 .\"
 .\" %sccs.include.redist.man%
 .\"
-.\"    @(#)dbopen.3    5.8 (Berkeley) %G%
+.\"    @(#)dbopen.3    5.9 (Berkeley) %G%
 .\"
 .TH DB 3  ""
 .UC 7
 .\"
 .TH DB 3  ""
 .UC 7
@@ -138,14 +138,6 @@ The parameter
 must be set to one of the following values:
 .RS
 .TP
 must be set to one of the following values:
 .RS
 .TP
-R_DUP
-If the key already exists in the file, create an entry with a duplicate
-key, i.e. one with the same key and different data as another entry.
-(This implies that keys are not required to be unique.
-Applicable only to the
-.B BTREE
-access method.)
-.TP
 R_IAFTER
 Append the data immediately after the data referenced by
 .IR key ,
 R_IAFTER
 Append the data immediately after the data referenced by
 .IR key ,
@@ -308,6 +300,8 @@ is as follows:
 .PP
 typedef struct {
 .RS
 .PP
 typedef struct {
 .RS
+u_long flags;
+.br
 u_int psize;
 .br
 u_int cachesize;
 u_int psize;
 .br
 u_int cachesize;
@@ -318,6 +312,18 @@ int (*compare)(const void *, const void *);
 .PP
 The elements of this structure are defined as follows:
 .TP
 .PP
 The elements of this structure are defined as follows:
 .TP
+flags
+The flag value is specified by
+.IR or 'ing
+any of the following values:
+.RS
+.TP
+R_DUP
+If the key already exists in the file, create an entry with a duplicate
+key, i.e. one with the same key and different data as another entry.
+(This implies that keys are not required to be unique.)
+.RE
+.TP
 psize
 Page size is the size in bytes of the pages used for nodes in the tree.
 If the  file already exists, the specified value is ignored and the
 psize
 Page size is the size in bytes of the pages used for nodes in the tree.
 If the  file already exists, the specified value is ignored and the
@@ -337,7 +343,7 @@ In addition, physical writes are delayed as long as possible, so a moderate
 cache can reduce the number of I/O operations significantly.
 Obviously, using a cache increases the likelihood of corruption or lost data
 if the system crashes while a tree is being modified, however, caching 10
 cache can reduce the number of I/O operations significantly.
 Obviously, using a cache increases the likelihood of corruption or lost data
 if the system crashes while a tree is being modified, however, caching 10
-pages decreases by between two and three orders of magnitude the creation
+pages decreases (by between two and three orders of magnitude) the creation
 time of a large tree.
 .TP
 compare
 time of a large tree.
 .TP
 compare
@@ -370,7 +376,7 @@ tree's page size only (see
 Data structures may reference byte strings of essentially unlimited length.
 .PP
 Searches, insertions, and deletions in a btree will all complete in
 Data structures may reference byte strings of essentially unlimited length.
 .PP
 Searches, insertions, and deletions in a btree will all complete in
-O lg N time.
+O lg N.
 .PP
 Forward sequential scans of a tree are from the least key to the greatest.
 .PP
 .PP
 Forward sequential scans of a tree are from the least key to the greatest.
 .PP