*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_open.c 5.16 (Berkeley) %G%";
+static char sccsid[] = "@(#)bt_open.c 5.17 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
/*
* open a backing temporary file. Otherwise, it's a disk-based tree.
*/
if (fname) {
-#define USEFLAGS (O_CREAT|O_EXCL|O_RDONLY|O_RDWR|O_TRUNC|O_WRONLY)
+#define USEFLAGS \
+ (O_CREAT|O_EXCL|O_EXLOCK|O_RDONLY|O_RDWR|O_SHLOCK|O_TRUNC|O_WRONLY)
if ((t->bt_fd = open(fname, flags & USEFLAGS, mode)) < 0)
goto err;
if ((flags & O_ACCMODE) == O_RDONLY)
.\"
.\" %sccs.include.redist.man%
.\"
-.\" @(#)dbopen.3 5.20 (Berkeley) %G%
+.\" @(#)dbopen.3 5.21 (Berkeley) %G%
.\"
.TH DBOPEN 3 ""
.UC 7
.I mode arguments
are as specified to the
.IR open (2)
-routine, however, only the O_CREAT, O_EXCL, O_RDONLY, O_RDWR, O_TRUNC
-and O_WRONLY flags are meaningful.
+routine, however, only the O_CREAT, O_EXCL, O_EXLOCK, O_RDONLY, O_RDWR,
+O_SHLOCK, O_TRUNC and O_WRONLY flags are meaningful.
.PP
The
.I type