DB_RDONLY
oflags = F_ISSET(dbp, DB_AM_RDONLY) ? DB_RDONLY : 0;
#define OKFLAGS (DB_CREATE | DB_FCNTL_LOCKING | DB_NOMMAP | DB_RDONLY | DB_THREAD | DB_TRUNCATE)
#define OKFLAGS (DB_CREATE | DB_FCNTL_LOCKING | DB_NOMMAP | DB_RDONLY | DB_TRUNCATE)
if (LF_ISSET(DB_RDONLY))
F_ISSET(dbp, DB_AM_RDONLY) ? DB_RDONLY : 0,
if ((ret = __db_open(name, DB_RDONLY, DB_RDONLY, 0, &fd)) != 0)
number, &fname, &fd, DB_RDONLY | DB_SEQUENTIAL)) != 0) {
&np, &dblp->c_fd, DB_RDONLY | DB_SEQUENTIAL)) != 0) {
if (!LF_ISSET(DB_RDONLY))
if (LF_ISSET(DB_RDONLY))
if (LF_ISSET(DB_RDONLY)) {
LF_ISSET(DB_CREATE | DB_RDONLY),
DB_CREATE | DB_RDONLY, mode, &dbmfp->fd)) != 0) {
"memp_fopen", flags, DB_CREATE | DB_NOMMAP | DB_RDONLY)) != 0)
dbflags |= DB_RDONLY;
if (arg_flags & DB_RDONLY)
db_flags |= DB_RDONLY;
flags |= DB_RDONLY;
int flags = DB_RDONLY;