diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-07-07 14:43:19 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-07-07 14:43:19 +0000 |
commit | 0bdb0bef7f35f5c459dbae3783d753eface56f1e (patch) | |
tree | 207f417108edb4b8fceafccccb376dcc956bf9c6 /lib | |
parent | f15496cb530edeae81f5a908341e2b680ef14c2d (diff) |
convert some complicated lists to displays;
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/db/man/btree.3 | 35 | ||||
-rw-r--r-- | lib/libc/db/man/dbopen.3 | 36 | ||||
-rw-r--r-- | lib/libc/db/man/hash.3 | 29 |
3 files changed, 31 insertions, 69 deletions
diff --git a/lib/libc/db/man/btree.3 b/lib/libc/db/man/btree.3 index f1dae37cff5..cb9edebc4f7 100644 --- a/lib/libc/db/man/btree.3 +++ b/lib/libc/db/man/btree.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: btree.3,v 1.16 2003/06/02 20:18:34 millert Exp $ +.\" $OpenBSD: btree.3,v 1.17 2003/07/07 14:43:18 jmc Exp $ .\" $NetBSD: btree.3,v 1.6 1996/05/03 21:26:48 cgd Exp $ .\" .\" Copyright (c) 1997, Phillip F Knaack. All rights reserved. @@ -58,31 +58,18 @@ The btree access method specific data structure provided to is defined in the .Aq Pa db.h include file as follows: -.Pp -.Bl -item -compact +.Bd -literal -offset indent typedef struct { -.It -.Bl -item -compact -inset -offset indent -.It -u_long flags; -.It -u_int cachesize; -.It -int maxkeypage; -.It -int minkeypage; -.It -u_int psize; -.It -int (*compare)(const DBT *key1, const DBT *key2); -.It -size_t (*prefix)(const DBT *key1, const DBT *key2); -.It -int lorder; -.El -.It + u_long flags; + u_int cachesize; + int maxkeypage; + int minkeypage; + u_int psize; + int (*compare)(const DBT *key1, const DBT *key2); + size_t (*prefix)(const DBT *key1, const DBT *key2); + int lorder; } BTREEINFO; -.El +.Ed .Pp The elements of this structure are as follows: .Bl -tag -width "XXXXXX" diff --git a/lib/libc/db/man/dbopen.3 b/lib/libc/db/man/dbopen.3 index 644f394365c..6cbfe0265de 100644 --- a/lib/libc/db/man/dbopen.3 +++ b/lib/libc/db/man/dbopen.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: dbopen.3,v 1.20 2003/06/02 20:18:34 millert Exp $ +.\" $OpenBSD: dbopen.3,v 1.21 2003/07/07 14:43:18 jmc Exp $ .\" $NetBSD: dbopen.3,v 1.6 1995/02/27 13:23:25 cgd Exp $ .\" .\" Copyright (c) 1997, Phillip F Knaack. All rights reserved. @@ -140,38 +140,24 @@ on error. The DB structure is defined in the .Aq Pa db.h include file, and contains at least the following fields: -.Pp -.Bl -item -compact +.Bd -literal typedef struct { -.It -.Bl -item -compact -inset -offset indent -.It -DBTYPE type; -.It -int (*close)(const DB *db); -.It -int (*del)(const DB *db, const DBT *key, u_int flags); -.It -int (*fd)(const DB *db); -.It -int (*get)(const DB *db, DBT *key, DBT *data, u_int flags); -.It -int (*put)(const DB *db, DBT *key, const DBT *data, u_int flags); -.It -int (*sync)(const DB *db, u_int flags); -.It -int (*seq)(const DB *db, DBT *key, DBT *data, u_int flags); -.El -.It + DBTYPE type; + int (*close)(const DB *db); + int (*del)(const DB *db, const DBT *key, u_int flags); + int (*fd)(const DB *db); + int (*get)(const DB *db, DBT *key, DBT *data, u_int flags); + int (*put)(const DB *db, DBT *key, const DBT *data, u_int flags); + int (*sync)(const DB *db, u_int flags); + int (*seq)(const DB *db, DBT *key, DBT *data, u_int flags); } DB; -.El +.Ed .Pp These elements describe a database type and a set of functions performing various actions. These functions take a pointer to a structure as returned by .Fn dbopen dbopen , and sometimes one or more pointers to key/data structures and a flag value. -.Pp .Bl -tag -width XXXXX -offset indent .It Fa type The type of the underlying access method (and file format). diff --git a/lib/libc/db/man/hash.3 b/lib/libc/db/man/hash.3 index fe8496a3d74..70087b50741 100644 --- a/lib/libc/db/man/hash.3 +++ b/lib/libc/db/man/hash.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: hash.3,v 1.12 2003/06/02 20:18:34 millert Exp $ +.\" $OpenBSD: hash.3,v 1.13 2003/07/07 14:43:18 jmc Exp $ .\" $NetBSD: hash.3,v 1.6 1996/05/03 21:26:50 cgd Exp $ .\" .\" Copyright (c) 1997, Phillip F Knaack. All rights reserved. @@ -57,27 +57,16 @@ The access method specific data structure provided to is defined in the .Aq Pa db.h include file as follows: -.Pp -.Bl -item -compact +.Bd -literal -offset indent typedef struct { -.It -.Bl -item -compact -inset -offset indent -.It -u_int bsize; -.It -u_int ffactor; -.It -u_int nelem; -.It -u_int cachesize; -.It -u_int32_t (*hash)(const void *, size_t); -.It -int lorder; -.El -.It + u_int bsize; + u_int ffactor; + u_int nelem; + u_int cachesize; + u_int32_t (*hash)(const void *, size_t); + int lorder; } HASHINFO; -.El +.Ed .Pp The elements of this structure are as follows: .Bl -tag -width XXXXXX -offset indent |