summaryrefslogtreecommitdiff
path: root/lib/libc/db/man
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/db/man')
-rw-r--r--lib/libc/db/man/btree.313
-rw-r--r--lib/libc/db/man/hash.313
-rw-r--r--lib/libc/db/man/recno.326
3 files changed, 43 insertions, 9 deletions
diff --git a/lib/libc/db/man/btree.3 b/lib/libc/db/man/btree.3
index f0cd4eba8d6..7c74828975a 100644
--- a/lib/libc/db/man/btree.3
+++ b/lib/libc/db/man/btree.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: btree.3,v 1.5 1995/02/27 13:23:18 cgd Exp $
+.\" $NetBSD: btree.3,v 1.6 1996/05/03 21:26:48 cgd Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,9 +31,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" @(#)btree.3 8.3 (Berkeley) 2/21/94
+.\" @(#)btree.3 8.4 (Berkeley) 8/18/94
.\"
-.TH BTREE 3 "February 21, 1994"
+.TH BTREE 3 "August 18, 1994"
.\".UC 7
.SH NAME
btree \- btree database access method
@@ -209,6 +209,13 @@ O lg base N where base is the average fill factor.
Often, inserting ordered data into btrees results in a low fill factor.
This implementation has been modified to make ordered insertion the best
case, resulting in a much better than normal page fill factor.
+.SH ERRORS
+The
+.I btree
+access method routines may fail and set
+.I errno
+for any of the errors specified for the library routine
+.IR dbopen (3).
.SH "SEE ALSO"
.IR dbopen (3),
.IR hash (3),
diff --git a/lib/libc/db/man/hash.3 b/lib/libc/db/man/hash.3
index 6d296a8f6d1..fcdb1f3af12 100644
--- a/lib/libc/db/man/hash.3
+++ b/lib/libc/db/man/hash.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: hash.3,v 1.5 1995/02/27 13:23:31 cgd Exp $
+.\" $NetBSD: hash.3,v 1.6 1996/05/03 21:26:50 cgd Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,9 +31,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" @(#)hash.3 8.5 (Berkeley) 2/21/94
+.\" @(#)hash.3 8.6 (Berkeley) 8/18/94
.\"
-.TH HASH 3 "February 21, 1994"
+.TH HASH 3 "August 18, 1994"
.UC 7
.SH NAME
hash \- hash database access method
@@ -139,6 +139,13 @@ and
.IR ndbm (3)
are provided, however these interfaces are not compatible with
previous file formats.
+.SH ERRORS
+The
+.I hash
+access method routines may fail and set
+.I errno
+for any of the errors specified for the library routine
+.IR dbopen (3).
.SH "SEE ALSO"
.IR btree (3),
.IR dbopen (3),
diff --git a/lib/libc/db/man/recno.3 b/lib/libc/db/man/recno.3
index 63a366b645f..1fd42078053 100644
--- a/lib/libc/db/man/recno.3
+++ b/lib/libc/db/man/recno.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: recno.3,v 1.5 1995/06/13 00:53:40 jtc Exp $
+.\" $NetBSD: recno.3,v 1.6 1996/05/03 21:26:51 cgd Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,9 +31,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" @(#)recno.3 8.3 (Berkeley) 2/21/94
+.\" @(#)recno.3 8.5 (Berkeley) 8/18/94
.\"
-.TH RECNO 3 "February 21, 1994"
+.TH RECNO 3 "August 18, 1994"
.UC 7
.SH NAME
recno \- record number database access method
@@ -99,6 +99,9 @@ The structure element
specifies the length of the record, and the structure element
.I bval
is used as the pad character.
+Any records, inserted into the database, that are less than
+.I reclen
+bytes long are automatically padded.
.TP
R_NOKEY
In the interface specified by
@@ -178,6 +181,11 @@ The
.I size
field of the key should be the size of that type.
.PP
+Because there can be no meta-data associated with the underlying
+recno access method files, any changes made to the default values
+(e.g. fixed record length or byte separator value) must be explicitly
+specified each time the file is opened.
+.PP
In the interface specified by
.IR dbopen ,
using the
@@ -185,6 +193,18 @@ using the
interface to create a new record will cause the creation of multiple,
empty records if the record number is more than one greater than the
largest record currently in the database.
+.SH ERRORS
+The
+.I recno
+access method routines may fail and set
+.I errno
+for any of the errors specified for the library routine
+.IR dbopen (3)
+or the following:
+.TP
+[EINVAL]
+An attempt was made to add a record to a fixed-length database that
+was too large to fit.
.SH "SEE ALSO"
.IR btree (3),
.IR dbopen (3),