rpm  5.4.15
Data Structures | Macros | Typedefs | Functions | Variables
db3.c File Reference
#include "system.h"
#include <rpmlog.h>
#include <rpmmacro.h>
#include <rpmbf.h>
#include <rpmpgp.h>
#include <rpmurl.h>
#include <rpmtag.h>
#include <rpmevr.h>
#include <rpmdb.h>
#include "debug.h"
Include dependency graph for db3.c:

Go to the source code of this file.

Data Structures

union  _dbswap
 
struct  key_s
 
struct  _events_s
 

Macros

#define _RPMTAG_INTERNAL
 
#define _RPMEVR_INTERNAL   /* XXX isInstallPrereq */
 
#define _RPMDB_INTERNAL
 
#define DBIDEBUG(_dbi, _list)   if ((_dbi)->dbi_debug) fprintf _list
 
#define _ENTRY(_v)   { DB_##_v, #_v, }
 
#define _EFLAGS(_eflags)   fmtDBeflags(_eflags)
 
#define _OFLAGS(_oflags)   fmtDBoflags(_oflags)
 
#define _AFLAGS(_aflags)   fmtDBaflags(_aflags)
 
#define _AFFLAGS(_afflags)   fmtDBafflags(_afflags)
 
#define _DBCOFLAGS(_coflags)   fmtDBCoflags(_coflags)
 
#define _DBCFLAGS(_flags)   fmtDBCflags(_flags)
 
#define _DBT_ENTRY(_v)   { DB_DBT_##_v, #_v, }
 
#define _KEYDATA(_K, _P, _D, _R)   fmtKDR(_K, _P, _D, _R)
 
#define cvtdberr(_dbi, _msg, _error, _printit)   Xcvtdberr(_dbi, _msg, _error, _printit, __FUNCTION__, __FILE__, __LINE__)
 
#define _TABLE(_v)   { #_v, DB_EVENT_##_v }
 
#define _RPMDB_NLOCKS   16384
 

Typedefs

typedef struct key_s KEY
 

Functions

static uint64_t _ntoh_ul (uint64_t ul)
 
static uint64_t _hton_ul (uint64_t ul)
 
static uint32_t _ntoh_ui (uint32_t ui)
 
static uint32_t _hton_ui (uint32_t ui)
 
static uint16_t _ntoh_us (uint16_t us)
 
static uint16_t _hton_us (uint16_t us)
 
static const char * tblName (uint32_t v, KEY *tbl, size_t ntbl)
 
static const char * fmtBits (uint32_t flags, KEY tbl[], size_t ntbl, char *t)
 
static const char * fmtDBeflags (uint32_t flags)
 
static const char * fmtDBoflags (uint32_t flags)
 
static const char * fmtDBaflags (uint32_t flags)
 
static const char * fmtDBafflags (uint32_t flags)
 
static const char * fmtDBCoflags (uint32_t flags)
 
static const char * fmtDBCflags (uint32_t flags)
 
static char * fmtDBT (const DBT *K, char *te)
 
static const char * fmtKDR (const DBT *K, const DBT *P, const DBT *D, const DBT *R)
 
static int Xcvtdberr (dbiIndex dbi, const char *msg, int error, int printit, const char *func, const char *fn, unsigned ln)
 
static const char * mapTagName (rpmdb rpmdb, dbiIndex dbi)
 Return (possibly renamed) tagName. More...
 
static int db_fini (dbiIndex dbi, const char *dbhome, const char *dbfile, const char *dbsubfile)
 
static int db3_fsync_disable (int fd)
 
static uint64_t physmem (void)
 
static size_t ncores (void)
 
static void rpmdbe_event_notify (DB_ENV *dbenv, u_int32_t event, void *event_info)
 
static void rpmdbe_feedback (DB_ENV *dbenv, int opcode, int percent)
 
static int db_init (dbiIndex dbi, const char *dbhome, const char *dbfile, const char *dbsubfile, DB_ENV **dbenvp)
 
static int db3sync (dbiIndex dbi, unsigned int flags)
 
static int db3exists (dbiIndex dbi, DBT *key, unsigned int flags)
 
static int db3seqno (dbiIndex dbi, int64_t *seqnop, unsigned int flags)
 
static int db3cdup (dbiIndex dbi, DBC *dbcursor, DBC **dbcp, unsigned int flags)
 
static int db3cclose (dbiIndex dbi, DBC *dbcursor, unsigned int flags)
 
static int db3copen (dbiIndex dbi, DB_TXN *txnid, DBC **dbcp, unsigned int dbiflags)
 
static int db3cput (dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags)
 
static int db3cget (dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags)
 
static int db3cpget (dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *pkey, DBT *data, unsigned int flags)
 
static int db3cdel (dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags)
 
static int db3ccount (dbiIndex dbi, DBC *dbcursor, unsigned int *countp, unsigned int flags)
 
static int db3byteswapped (dbiIndex dbi)
 
static int db3stat (dbiIndex dbi, unsigned int flags)
 
static int db3associate (dbiIndex dbi, dbiIndex dbisecondary, int(*callback)(DB *, const DBT *, const DBT *, DBT *), unsigned int flags)
 
static int db3associate_foreign (dbiIndex dbi, dbiIndex dbisecondary, int(*callback)(DB *, const DBT *, DBT *, const DBT *, int *), unsigned int flags)
 
static int db3join (dbiIndex dbi, DBC **curslist, DBC **dbcp, unsigned int flags)
 
static int db3close (dbiIndex dbi, unsigned int flags)
 
static unsigned char nibble (char c)
 Convert hex to binary nibble. More...
 
static int loadDBT (DBT *_r, rpmTag tag, const void *_s, size_t ns)
 
static int uint32Cmp (const void *_a, const void *_b)
 
static int uint64Cmp (const void *_a, const void *_b)
 
static int db3Acallback (DB *db, const DBT *key, const DBT *data, DBT *_r)
 
static int seqid_init (dbiIndex dbi, const char *keyp, size_t keylen, DB_SEQUENCE **seqp)
 
static int db3open (rpmdb rpmdb, rpmTag rpmtag, dbiIndex *dbip)
 Return handle for an index database. More...
 

Variables

static int _debug = 1
 
static union _dbswap _endian = { .ui = 0x11223344 }
 
static KEY DBeflags []
 
static size_t nDBeflags = sizeof(DBeflags) / sizeof(DBeflags[0])
 
static KEY DBoflags []
 
static size_t nDBoflags = sizeof(DBoflags) / sizeof(DBoflags[0])
 
static KEY DBaflags []
 
static size_t nDBaflags = sizeof(DBaflags) / sizeof(DBaflags[0])
 
static KEY DBafflags []
 
static size_t nDBafflags = sizeof(DBafflags) / sizeof(DBafflags[0])
 
static KEY DBCoflags []
 
static size_t nDBCoflags = sizeof(DBCoflags) / sizeof(DBCoflags[0])
 
static KEY DBCflags []
 
static size_t nDBCflags = sizeof(DBCflags) / sizeof(DBCflags[0])
 
static KEY DBTflags []
 
static size_t nDBTflags = sizeof(DBTflags) / sizeof(DBTflags[0])
 
static struct _events_s _events []
 
struct _dbiVec db3vec
 

Macro Definition Documentation

#define _AFFLAGS (   _afflags)    fmtDBafflags(_afflags)

Definition at line 340 of file db3.c.

Referenced by db3associate_foreign().

#define _AFLAGS (   _aflags)    fmtDBaflags(_aflags)

Definition at line 320 of file db3.c.

Referenced by db3associate().

#define _DBCFLAGS (   _flags)    fmtDBCflags(_flags)

Definition at line 435 of file db3.c.

Referenced by db3cdel(), db3cget(), db3cpget(), and db3cput().

#define _DBCOFLAGS (   _coflags)    fmtDBCoflags(_coflags)

Definition at line 364 of file db3.c.

Referenced by db3copen().

#define _DBT_ENTRY (   _v)    { DB_DBT_##_v, #_v, }

Definition at line 437 of file db3.c.

#define _EFLAGS (   _eflags)    fmtDBeflags(_eflags)

Definition at line 275 of file db3.c.

Referenced by db_init().

#define _ENTRY (   _v)    { DB_##_v, #_v, }

Definition at line 236 of file db3.c.

#define _KEYDATA (   _K,
  _P,
  _D,
  _R 
)    fmtKDR(_K, _P, _D, _R)

Definition at line 552 of file db3.c.

Referenced by db3Acallback(), db3cdel(), db3cget(), db3cpget(), db3cput(), and db3exists().

#define _OFLAGS (   _oflags)    fmtDBoflags(_oflags)

Definition at line 301 of file db3.c.

Referenced by db3open().

#define _RPMDB_INTERNAL

Definition at line 27 of file db3.c.

#define _RPMDB_NLOCKS   16384

Referenced by db_init().

#define _RPMEVR_INTERNAL   /* XXX isInstallPrereq */

Definition at line 24 of file db3.c.

#define _RPMTAG_INTERNAL

Definition at line 21 of file db3.c.

#define _TABLE (   _v)    { #_v, DB_EVENT_##_v }

Definition at line 738 of file db3.c.

#define cvtdberr (   _dbi,
  _msg,
  _error,
  _printit 
)    Xcvtdberr(_dbi, _msg, _error, _printit, __FUNCTION__, __FILE__, __LINE__)
#define DBIDEBUG (   _dbi,
  _list 
)    if ((_dbi)->dbi_debug) fprintf _list

Typedef Documentation

typedef struct key_s KEY

Function Documentation

static uint32_t _hton_ui ( uint32_t  ui)
inlinestatic

Definition at line 86 of file db3.c.

References _ntoh_ui().

Referenced by db3Acallback().

static uint64_t _hton_ul ( uint64_t  ul)
inlinestatic

Definition at line 68 of file db3.c.

References _ntoh_ul().

Referenced by db3Acallback().

static uint16_t _hton_us ( uint16_t  us)
inlinestatic

Definition at line 103 of file db3.c.

References _ntoh_us().

static uint32_t _ntoh_ui ( uint32_t  ui)
inlinestatic

Definition at line 74 of file db3.c.

References _dbswap::uc, and _dbswap::ui.

Referenced by _hton_ui(), and db3Acallback().

static uint64_t _ntoh_ul ( uint64_t  ul)
inlinestatic

Definition at line 54 of file db3.c.

References _dbswap::uc, and _dbswap::ul.

Referenced by _hton_ul().

static uint16_t _ntoh_us ( uint16_t  us)
inlinestatic

Definition at line 92 of file db3.c.

References _dbswap::uc, and _dbswap::us.

Referenced by _hton_us().

static int db3_fsync_disable ( int  fd)
static

Definition at line 643 of file db3.c.

Referenced by db_init().

static int db3Acallback ( DB db,
const DBT key,
const DBT data,
DBT _r 
)
static
static int db3associate ( dbiIndex  dbi,
dbiIndex  dbisecondary,
int(*)(DB *, const DBT *, const DBT *, DBT *)  callback,
unsigned int  flags 
)
static

Definition at line 1658 of file db3.c.

References _AFLAGS, _debug, _free(), cvtdberr, tagName(), and xstrdup().

Referenced by db3open().

static int db3associate_foreign ( dbiIndex  dbi,
dbiIndex  dbisecondary,
int(*)(DB *, const DBT *, DBT *, const DBT *, int *)  callback,
unsigned int  flags 
)
static

Definition at line 1687 of file db3.c.

References _AFFLAGS, _debug, _free(), cvtdberr, tagName(), and xstrdup().

static int db3byteswapped ( dbiIndex  dbi)
static

Definition at line 1611 of file db3.c.

static int db3cclose ( dbiIndex  dbi,
DBC dbcursor,
unsigned int  flags 
)
static

Definition at line 1388 of file db3.c.

References _debug, cvtdberr, and DBIDEBUG.

Referenced by db3copen().

static int db3ccount ( dbiIndex  dbi,
DBC dbcursor,
unsigned int *  countp,
unsigned int  flags 
)
static

Definition at line 1587 of file db3.c.

References _debug, cvtdberr, and DBIDEBUG.

static int db3cdel ( dbiIndex  dbi,
DBC dbcursor,
DBT key,
DBT data,
unsigned int  flags 
)
static

Definition at line 1553 of file db3.c.

References _DBCFLAGS, _debug, _KEYDATA, cvtdberr, db3cget(), DB_SET, and DBIDEBUG.

static int db3cdup ( dbiIndex  dbi,
DBC dbcursor,
DBC **  dbcp,
unsigned int  flags 
)
static

Definition at line 1366 of file db3.c.

References _debug, cvtdberr, and DBIDEBUG.

static int db3cget ( dbiIndex  dbi,
DBC dbcursor,
DBT key,
DBT data,
unsigned int  flags 
)
static

Definition at line 1473 of file db3.c.

References _DBCFLAGS, _debug, _KEYDATA, cvtdberr, DB_BUFFER_SMALL, DB_NOTFOUND, and DBIDEBUG.

Referenced by db3cdel().

static int db3close ( dbiIndex  dbi,
unsigned int  flags 
)
static

Definition at line 1737 of file db3.c.

References _debug, _free(), cvtdberr, D_, db_fini(), DBIDEBUG, mapTagName(), rpmGenPath(), rpmlog(), RPMLOG_DEBUG, and urlPath().

Referenced by db3open().

static int db3copen ( dbiIndex  dbi,
DB_TXN txnid,
DBC **  dbcp,
unsigned int  dbiflags 
)
static

Definition at line 1412 of file db3.c.

References _DBCOFLAGS, _debug, cvtdberr, db3cclose(), DB_WRITECURSOR, and DBIDEBUG.

static int db3cpget ( dbiIndex  dbi,
DBC dbcursor,
DBT key,
DBT pkey,
DBT data,
unsigned int  flags 
)
static

Definition at line 1514 of file db3.c.

References _DBCFLAGS, _debug, _KEYDATA, cvtdberr, DB_NOTFOUND, and DBIDEBUG.

static int db3cput ( dbiIndex  dbi,
DBC dbcursor,
DBT key,
DBT data,
unsigned int  flags 
)
static

Definition at line 1443 of file db3.c.

References _DBCFLAGS, _debug, _KEYDATA, cvtdberr, DB_KEYLAST, and DBIDEBUG.

static int db3exists ( dbiIndex  dbi,
DBT key,
unsigned int  flags 
)
static

Definition at line 1313 of file db3.c.

References _debug, _KEYDATA, cvtdberr, DB_NOTFOUND, and DBIDEBUG.

static int db3join ( dbiIndex  dbi,
DBC **  curslist,
DBC **  dbcp,
unsigned int  flags 
)
static

Definition at line 1718 of file db3.c.

References _debug, cvtdberr, and DBIDEBUG.

static int db3open ( rpmdb  rpmdb,
rpmTag  rpmtag,
dbiIndex dbip 
)
static
static int db3seqno ( dbiIndex  dbi,
int64_t *  seqnop,
unsigned int  flags 
)
static

Definition at line 1335 of file db3.c.

References _debug, cvtdberr, and DBIDEBUG.

static int db3stat ( dbiIndex  dbi,
unsigned int  flags 
)
static

Definition at line 1626 of file db3.c.

References _debug, _free(), cvtdberr, DB_VERSION_MAJOR, DB_VERSION_MINOR, and DBIDEBUG.

static int db3sync ( dbiIndex  dbi,
unsigned int  flags 
)
static

Definition at line 1294 of file db3.c.

References _debug, cvtdberr, and DBIDEBUG.

static int db_fini ( dbiIndex  dbi,
const char *  dbhome,
const char *  dbfile,
const char *  dbsubfile 
)
static

Definition at line 600 of file db3.c.

References _debug, cvtdberr, D_, DBIDEBUG, rpmlog(), and RPMLOG_DEBUG.

Referenced by db3close().

static int db_init ( dbiIndex  dbi,
const char *  dbhome,
const char *  dbfile,
const char *  dbsubfile,
DB_ENV **  dbenvp 
)
static
static const char* fmtBits ( uint32_t  flags,
KEY  tbl[],
size_t  ntbl,
char *  t 
)
static

Definition at line 209 of file db3.c.

References i, name, stpcpy(), and tblName().

Referenced by fmtDBafflags(), fmtDBaflags(), fmtDBCflags(), fmtDBCoflags(), fmtDBeflags(), fmtDBoflags(), and fmtDBT().

static const char* fmtDBafflags ( uint32_t  flags)
static

Definition at line 331 of file db3.c.

References fmtBits(), and stpcpy().

static const char* fmtDBaflags ( uint32_t  flags)
static

Definition at line 311 of file db3.c.

References fmtBits(), and stpcpy().

static const char* fmtDBCflags ( uint32_t  flags)
static

Definition at line 417 of file db3.c.

References fmtBits(), op, stpcpy(), and tblName().

static const char* fmtDBCoflags ( uint32_t  flags)
static

Definition at line 356 of file db3.c.

References fmtBits().

static const char* fmtDBeflags ( uint32_t  flags)
static

Definition at line 266 of file db3.c.

References fmtBits(), and stpcpy().

static const char* fmtDBoflags ( uint32_t  flags)
static

Definition at line 292 of file db3.c.

References fmtBits(), and stpcpy().

static char* fmtDBT ( const DBT K,
char *  te 
)
static

Definition at line 479 of file db3.c.

References __db_dbt::data, DB_DBT_MULTIPLE, __db_dbt::flags, fmtBits(), i, __db_dbt::size, and xisprint().

Referenced by fmtKDR().

static const char* fmtKDR ( const DBT K,
const DBT P,
const DBT D,
const DBT R 
)
static

Definition at line 526 of file db3.c.

References fmtDBT(), and stpcpy().

static int loadDBT ( DBT _r,
rpmTag  tag,
const void *  _s,
size_t  ns 
)
static
static const char* mapTagName ( rpmdb  rpmdb,
dbiIndex  dbi 
)
static

Return (possibly renamed) tagName.

Handles arbitrary tags.

Parameters
rpmdbrpm database
dbirpm database index
Returns
tag string

Definition at line 583 of file db3.c.

References tagName().

Referenced by db3close(), and db3open().

static size_t ncores ( void  )
static

Definition at line 713 of file db3.c.

References name.

Referenced by db_init().

static unsigned char nibble ( char  c)
inlinestatic

Convert hex to binary nibble.

Parameters
chex character
Returns
binary nibble

Definition at line 1835 of file db3.c.

Referenced by loadDBT().

static uint64_t physmem ( void  )
static

Definition at line 683 of file db3.c.

References name.

Referenced by db_init().

static void rpmdbe_event_notify ( DB_ENV dbenv,
u_int32_t  event,
void *  event_info 
)
static

Definition at line 919 of file db3.c.

References _events, and __db_env::app_private.

Referenced by db_init().

static void rpmdbe_feedback ( DB_ENV dbenv,
int  opcode,
int  percent 
)
static

Definition at line 926 of file db3.c.

Referenced by db_init().

static int seqid_init ( dbiIndex  dbi,
const char *  keyp,
size_t  keylen,
DB_SEQUENCE **  seqp 
)
static

Definition at line 2163 of file db3.c.

Referenced by db3open().

static const char* tblName ( uint32_t  v,
KEY tbl,
size_t  ntbl 
)
static

Definition at line 189 of file db3.c.

References i, key_s::n, and snprintf().

Referenced by fmtBits(), and fmtDBCflags().

static int uint32Cmp ( const void *  _a,
const void *  _b 
)
static

Definition at line 1893 of file db3.c.

References b.

Referenced by db3Acallback().

static int uint64Cmp ( const void *  _a,
const void *  _b 
)
static

Definition at line 1902 of file db3.c.

References b.

Referenced by db3Acallback().

static int Xcvtdberr ( dbiIndex  dbi,
const char *  msg,
int  error,
int  printit,
const char *  func,
const char *  fn,
unsigned  ln 
)
static

Definition at line 555 of file db3.c.

References rpmlog(), and RPMLOG_ERR.

Variable Documentation

int _debug = 1
static
union _dbswap _endian = { .ui = 0x11223344 }
static

Definition at line 52 of file db3.c.

struct _events_s _events[]
static

Referenced by rpmdbe_event_notify().

struct _dbiVec db3vec
Initial value:
= {
}
static int db3associate(dbiIndex dbi, dbiIndex dbisecondary, int(*callback)(DB *, const DBT *, const DBT *, DBT *), unsigned int flags)
Definition: db3.c:1658
static int db3cpget(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *pkey, DBT *data, unsigned int flags)
Definition: db3.c:1514
#define DB_VERSION_PATCH
Definition: db_emu.h:102
static int db3join(dbiIndex dbi, DBC **curslist, DBC **dbcp, unsigned int flags)
Definition: db3.c:1718
static int db3ccount(dbiIndex dbi, DBC *dbcursor, unsigned int *countp, unsigned int flags)
Definition: db3.c:1587
#define DB_VERSION_MINOR
Definition: db_emu.h:101
static int db3exists(dbiIndex dbi, DBT *key, unsigned int flags)
Definition: db3.c:1313
static int db3stat(dbiIndex dbi, unsigned int flags)
Definition: db3.c:1626
static int db3cget(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags)
Definition: db3.c:1473
static int db3cclose(dbiIndex dbi, DBC *dbcursor, unsigned int flags)
Definition: db3.c:1388
static int db3associate_foreign(dbiIndex dbi, dbiIndex dbisecondary, int(*callback)(DB *, const DBT *, DBT *, const DBT *, int *), unsigned int flags)
Definition: db3.c:1687
static int db3open(rpmdb rpmdb, rpmTag rpmtag, dbiIndex *dbip)
Return handle for an index database.
Definition: db3.c:2243
static int db3byteswapped(dbiIndex dbi)
Definition: db3.c:1611
static int db3close(dbiIndex dbi, unsigned int flags)
Definition: db3.c:1737
#define DB_VERSION_MAJOR
Definition: db_emu.h:100
static int db3cput(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags)
Definition: db3.c:1443
static int db3cdel(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags)
Definition: db3.c:1553
static int db3seqno(dbiIndex dbi, int64_t *seqnop, unsigned int flags)
Definition: db3.c:1335
static int db3copen(dbiIndex dbi, DB_TXN *txnid, DBC **dbcp, unsigned int dbiflags)
Definition: db3.c:1412
static int db3cdup(dbiIndex dbi, DBC *dbcursor, DBC **dbcp, unsigned int flags)
Definition: db3.c:1366
static int db3sync(dbiIndex dbi, unsigned int flags)
Definition: db3.c:1294

Definition at line 2836 of file db3.c.

Referenced by db3open().

KEY DBafflags[]
static
Initial value:
= {
{ DB_FOREIGN_ABORT , "FOREIGN_ABORT", },
{ DB_FOREIGN_CASCADE , "FOREIGN_CASCADE", },
{ DB_FOREIGN_NULLIFY , "FOREIGN_NULLIFY", },
}

Definition at line 323 of file db3.c.

KEY DBaflags[]
static
Initial value:
= {
{ DB_CREATE , "CREATE", },
{ DB_IMMUTABLE_KEY , "IMMUTABLE_KEY", },
}
#define DB_CREATE
Definition: db_emu.h:113

Definition at line 304 of file db3.c.

KEY DBCflags[]
static

Definition at line 367 of file db3.c.

KEY DBCoflags[]
static
Initial value:
= {
{ DB_READ_COMMITTED , "READ_COMMITTED", },
{ DB_READ_UNCOMMITTED , "READ_UNCOMMITTED", },
{ DB_WRITECURSOR , "WRITECURSOR", },
{ DB_TXN_SNAPSHOT , "TXN_SNAPSHOT", },
}
#define DB_WRITECURSOR
Definition: db_emu.h:91

Definition at line 343 of file db3.c.

KEY DBeflags[]
static
Initial value:
= {
{ DB_INIT_CDB , "INIT_CDB", },
{ DB_INIT_LOCK , "INIT_LOCK", },
{ DB_INIT_LOG , "INIT_LOG", },
{ DB_INIT_MPOOL , "INIT_MPOOL", },
{ DB_INIT_REP , "INIT_REP", },
{ DB_INIT_TXN , "INIT_TXN", },
{ DB_RECOVER , "RECOVER", },
{ DB_RECOVER_FATAL , "RECOVER_FATAL", },
{ DB_USE_ENVIRON , "USE_ENVIRON", },
{ DB_USE_ENVIRON_ROOT , "USE_ENVIRON_ROOT", },
{ DB_CREATE , "CREATE", },
{ DB_LOCKDOWN , "LOCKDOWN", },
{ DB_PRIVATE , "PRIVATE", },
{ DB_REGISTER , "REGISTER", },
{ DB_SYSTEM_MEM , "SYSTEM_MEM", },
{ DB_THREAD , "THREAD", },
}
#define DB_THREAD
Definition: db_emu.h:119
#define DB_CREATE
Definition: db_emu.h:113
#define DB_INIT_TXN
Definition: db_emu.h:117
#define DB_INIT_LOG
Definition: db_emu.h:115
#define DB_INIT_LOCK
Definition: db_emu.h:114
#define DB_PRIVATE
Definition: db_emu.h:98
#define DB_INIT_MPOOL
Definition: db_emu.h:116

Definition at line 239 of file db3.c.

KEY DBoflags[]
static
Initial value:
= {
{ DB_AUTO_COMMIT , "AUTO_COMMIT", },
{ DB_CREATE , "CREATE", },
{ DB_EXCL , "EXCL", },
{ DB_MULTIVERSION , "MULTIVERSION", },
{ DB_NOMMAP , "NOMMAP", },
{ DB_RDONLY , "RDONLY", },
{ DB_READ_UNCOMMITTED , "READ_UNCOMMITTED", },
{ DB_THREAD , "THREAD", },
{ DB_TRUNCATE , "TRUNCATE", },
}
#define DB_THREAD
Definition: db_emu.h:119
#define DB_CREATE
Definition: db_emu.h:113
#define DB_EXCL
Definition: db_emu.h:97
#define DB_AUTO_COMMIT
Definition: db_emu.h:118

Definition at line 278 of file db3.c.

KEY DBTflags[]
static

Definition at line 439 of file db3.c.

size_t nDBafflags = sizeof(DBafflags) / sizeof(DBafflags[0])
static

Definition at line 329 of file db3.c.

size_t nDBaflags = sizeof(DBaflags) / sizeof(DBaflags[0])
static

Definition at line 309 of file db3.c.

size_t nDBCflags = sizeof(DBCflags) / sizeof(DBCflags[0])
static

Definition at line 414 of file db3.c.

size_t nDBCoflags = sizeof(DBCoflags) / sizeof(DBCoflags[0])
static

Definition at line 354 of file db3.c.

size_t nDBeflags = sizeof(DBeflags) / sizeof(DBeflags[0])
static

Definition at line 264 of file db3.c.

size_t nDBoflags = sizeof(DBoflags) / sizeof(DBoflags[0])
static

Definition at line 290 of file db3.c.

size_t nDBTflags = sizeof(DBTflags) / sizeof(DBTflags[0])
static

Definition at line 476 of file db3.c.