dbopen.3 (105404) | dbopen.3 (108037) |
---|---|
1.\" Copyright (c) 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)dbopen.3 8.5 (Berkeley) 1/2/94 | 1.\" Copyright (c) 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)dbopen.3 8.5 (Berkeley) 1/2/94 |
33.\" $FreeBSD: head/lib/libc/db/man/dbopen.3 105404 2002-10-18 16:20:08Z markm $ | 33.\" $FreeBSD: head/lib/libc/db/man/dbopen.3 108037 2002-12-18 12:45:11Z ru $ |
34.\" 35.Dd January 2, 1994 36.Dt DBOPEN 3 37.Os 38.Sh NAME 39.Nm dbopen 40.Nd "database access methods" 41.Sh SYNOPSIS 42.In sys/types.h 43.In db.h 44.In fcntl.h 45.In limits.h 46.Ft DB * 47.Fn dbopen "const char *file" "int flags" "int mode" "DBTYPE type" "const void *openinfo" 48.Sh DESCRIPTION | 34.\" 35.Dd January 2, 1994 36.Dt DBOPEN 3 37.Os 38.Sh NAME 39.Nm dbopen 40.Nd "database access methods" 41.Sh SYNOPSIS 42.In sys/types.h 43.In db.h 44.In fcntl.h 45.In limits.h 46.Ft DB * 47.Fn dbopen "const char *file" "int flags" "int mode" "DBTYPE type" "const void *openinfo" 48.Sh DESCRIPTION |
49.Fn Dbopen | 49The 50.Fn dbopen 51function |
50is the library interface to database files. 51The supported file formats are btree, hashed and UNIX file oriented. 52The btree format is a representation of a sorted, balanced tree structure. 53The hashed format is an extensible, dynamic hashing scheme. 54The flat-file format is a byte stream file with fixed or variable length 55records. 56The formats and file format specific information are described in detail 57in their respective manual pages 58.Xr btree 3 , 59.Xr hash 3 60and 61.Xr recno 3 . 62.Pp | 52is the library interface to database files. 53The supported file formats are btree, hashed and UNIX file oriented. 54The btree format is a representation of a sorted, balanced tree structure. 55The hashed format is an extensible, dynamic hashing scheme. 56The flat-file format is a byte stream file with fixed or variable length 57records. 58The formats and file format specific information are described in detail 59in their respective manual pages 60.Xr btree 3 , 61.Xr hash 3 62and 63.Xr recno 3 . 64.Pp |
63.Fn Dbopen | 65The 66.Fn dbopen 67function |
64opens 65.Fa file 66for reading and/or writing. 67Files never intended to be preserved on disk may be created by setting 68the file parameter to 69.Dv NULL . 70.Pp 71The --- 54 unchanged lines hidden (view full) --- 126in the access method's manual page. 127If 128.Fa openinfo 129is 130.Dv NULL , 131each access method will use defaults appropriate for the system 132and the access method. 133.Pp | 68opens 69.Fa file 70for reading and/or writing. 71Files never intended to be preserved on disk may be created by setting 72the file parameter to 73.Dv NULL . 74.Pp 75The --- 54 unchanged lines hidden (view full) --- 130in the access method's manual page. 131If 132.Fa openinfo 133is 134.Dv NULL , 135each access method will use defaults appropriate for the system 136and the access method. 137.Pp |
134.Fn Dbopen | 138The 139.Fn dbopen 140function |
135returns a pointer to a 136.Ft DB 137structure on success and 138.Dv NULL 139on error. 140The 141.Ft DB 142structure is defined in the --- 398 unchanged lines hidden --- | 141returns a pointer to a 142.Ft DB 143structure on success and 144.Dv NULL 145on error. 146The 147.Ft DB 148structure is defined in the --- 398 unchanged lines hidden --- |