rpm  5.4.10
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

§ _AFFLAGS

#define _AFFLAGS (   _afflags)    fmtDBafflags(_afflags)

Definition at line 338 of file db3.c.

Referenced by db3associate_foreign().

§ _AFLAGS

#define _AFLAGS (   _aflags)    fmtDBaflags(_aflags)

Definition at line 318 of file db3.c.

Referenced by db3associate().

§ _DBCFLAGS

#define _DBCFLAGS (   _flags)    fmtDBCflags(_flags)

Definition at line 433 of file db3.c.

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

§ _DBCOFLAGS

#define _DBCOFLAGS (   _coflags)    fmtDBCoflags(_coflags)

Definition at line 362 of file db3.c.

Referenced by db3copen().

§ _DBT_ENTRY

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

Definition at line 435 of file db3.c.

§ _EFLAGS

#define _EFLAGS (   _eflags)    fmtDBeflags(_eflags)

Definition at line 273 of file db3.c.

Referenced by db_init().

§ _ENTRY

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

Definition at line 236 of file db3.c.

§ _KEYDATA

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

Definition at line 526 of file db3.c.

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

§ _OFLAGS

#define _OFLAGS (   _oflags)    fmtDBoflags(_oflags)

Definition at line 299 of file db3.c.

Referenced by db3open().

§ _RPMDB_INTERNAL

#define _RPMDB_INTERNAL

Definition at line 27 of file db3.c.

§ _RPMDB_NLOCKS

#define _RPMDB_NLOCKS   16384

Referenced by db_init().

§ _RPMEVR_INTERNAL

#define _RPMEVR_INTERNAL   /* XXX isInstallPrereq */

Definition at line 24 of file db3.c.

§ _RPMTAG_INTERNAL

#define _RPMTAG_INTERNAL

Definition at line 21 of file db3.c.

§ _TABLE

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

Definition at line 712 of file db3.c.

§ cvtdberr

#define cvtdberr (   _dbi,
  _msg,
  _error,
  _printit 
)    Xcvtdberr(_dbi, _msg, _error, _printit, __FUNCTION__, __FILE__, __LINE__)

§ DBIDEBUG

#define DBIDEBUG (   _dbi,
  _list 
)    if ((_dbi)->dbi_debug) fprintf _list

Typedef Documentation

§ KEY

typedef struct key_s KEY

Function Documentation

§ _hton_ui()

static uint32_t _hton_ui ( uint32_t  ui)
inlinestatic

Definition at line 86 of file db3.c.

References _ntoh_ui().

Referenced by db3Acallback().

§ _hton_ul()

static uint64_t _hton_ul ( uint64_t  ul)
inlinestatic

Definition at line 68 of file db3.c.

References _ntoh_ul().

Referenced by db3Acallback().

§ _hton_us()

static uint16_t _hton_us ( uint16_t  us)
inlinestatic

Definition at line 103 of file db3.c.

References _ntoh_us().

§ _ntoh_ui()

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().

§ _ntoh_ul()

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().

§ _ntoh_us()

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().

§ db3_fsync_disable()

static int db3_fsync_disable ( int  fd)
static

Definition at line 617 of file db3.c.

References errno.

Referenced by db_init().

§ db3Acallback()

static int db3Acallback ( DB db,
const DBT key,
const DBT data,
DBT _r 
)
static

§ db3associate()

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

Definition at line 1566 of file db3.c.

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

Referenced by db3open().

§ db3associate_foreign()

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

Definition at line 1595 of file db3.c.

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

§ db3byteswapped()

static int db3byteswapped ( dbiIndex  dbi)
static

Definition at line 1519 of file db3.c.

§ db3cclose()

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

Definition at line 1296 of file db3.c.

References _debug, cvtdberr, and DBIDEBUG.

Referenced by db3copen().

§ db3ccount()

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

Definition at line 1495 of file db3.c.

References _debug, cvtdberr, and DBIDEBUG.

§ db3cdel()

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

Definition at line 1461 of file db3.c.

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

§ db3cdup()

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

Definition at line 1274 of file db3.c.

References _debug, cvtdberr, and DBIDEBUG.

§ db3cget()

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

Definition at line 1381 of file db3.c.

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

Referenced by db3cdel().

§ db3close()

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

Definition at line 1645 of file db3.c.

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

Referenced by db3open().

§ db3copen()

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

Definition at line 1320 of file db3.c.

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

§ db3cpget()

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

Definition at line 1422 of file db3.c.

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

§ db3cput()

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

Definition at line 1351 of file db3.c.

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

§ db3exists()

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

Definition at line 1221 of file db3.c.

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

§ db3join()

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

Definition at line 1626 of file db3.c.

References _debug, cvtdberr, and DBIDEBUG.

§ db3open()

static int db3open ( rpmdb  rpmdb,
rpmTag  rpmtag,
dbiIndex dbip 
)
static

§ db3seqno()

static int db3seqno ( dbiIndex  dbi,
int64_t *  seqnop,
unsigned int  flags 
)
static

Definition at line 1243 of file db3.c.

References _debug, cvtdberr, and DBIDEBUG.

§ db3stat()

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

Definition at line 1534 of file db3.c.

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

§ db3sync()

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

Definition at line 1202 of file db3.c.

References _debug, cvtdberr, and DBIDEBUG.

§ db_fini()

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

Definition at line 574 of file db3.c.

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

Referenced by db3close().

§ db_init()

static int db_init ( dbiIndex  dbi,
const char *  dbhome,
const char *  dbfile,
const char *  dbsubfile,
DB_ENV **  dbenvp 
)
static

§ fmtBits()

static const char* fmtBits ( uint32_t  flags,
KEY  tbl[],
size_t  ntbl,
char *  t 
)
static

Definition at line 209 of file db3.c.

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

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

§ fmtDBafflags()

static const char* fmtDBafflags ( uint32_t  flags)
static

Definition at line 329 of file db3.c.

References fmtBits(), and stpcpy().

§ fmtDBaflags()

static const char* fmtDBaflags ( uint32_t  flags)
static

Definition at line 309 of file db3.c.

References fmtBits(), and stpcpy().

§ fmtDBCflags()

static const char* fmtDBCflags ( uint32_t  flags)
static

Definition at line 415 of file db3.c.

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

§ fmtDBCoflags()

static const char* fmtDBCoflags ( uint32_t  flags)
static

Definition at line 354 of file db3.c.

References fmtBits().

§ fmtDBeflags()

static const char* fmtDBeflags ( uint32_t  flags)
static

Definition at line 264 of file db3.c.

References fmtBits(), nDBeflags, and stpcpy().

§ fmtDBoflags()

static const char* fmtDBoflags ( uint32_t  flags)
static

Definition at line 290 of file db3.c.

References fmtBits(), and stpcpy().

§ fmtDBT()

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

Definition at line 453 of file db3.c.

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

Referenced by fmtKDR().

§ fmtKDR()

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

Definition at line 500 of file db3.c.

References fmtDBT(), and stpcpy().

§ loadDBT()

static int loadDBT ( DBT _r,
rpmTag  tag,
const void *  _s,
size_t  ns 
)
static

§ mapTagName()

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 557 of file db3.c.

References tagName().

Referenced by db3close(), and db3open().

§ ncores()

static size_t ncores ( void  )
static

Definition at line 687 of file db3.c.

References name.

Referenced by db_init().

§ nibble()

static unsigned char nibble ( char  c)
inlinestatic

Convert hex to binary nibble.

Parameters
chex character
Returns
binary nibble

Definition at line 1743 of file db3.c.

Referenced by loadDBT().

§ physmem()

static uint64_t physmem ( void  )
static

Definition at line 657 of file db3.c.

References name.

Referenced by db_init().

§ rpmdbe_event_notify()

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

Definition at line 827 of file db3.c.

References _events, and __db_env::app_private.

Referenced by db_init().

§ rpmdbe_feedback()

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

Definition at line 834 of file db3.c.

Referenced by db_init().

§ seqid_init()

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

Definition at line 2071 of file db3.c.

Referenced by db3open().

§ tblName()

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

Definition at line 189 of file db3.c.

References key_s::n, and snprintf().

Referenced by fmtBits(), and fmtDBCflags().

§ uint32Cmp()

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

Definition at line 1801 of file db3.c.

Referenced by db3Acallback().

§ uint64Cmp()

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

Definition at line 1810 of file db3.c.

Referenced by db3Acallback().

§ Xcvtdberr()

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

Definition at line 529 of file db3.c.

References rpmlog(), and RPMLOG_ERR.

Variable Documentation

§ _debug

int _debug = 1
static

§ _endian

union _dbswap _endian = { .ui = 0x11223344 }
static

Definition at line 52 of file db3.c.

§ _events

struct _events_s _events[]
static

Referenced by rpmdbe_event_notify().

§ db3vec

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:1566
static int db3cpget(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *pkey, DBT *data, unsigned int flags)
Definition: db3.c:1422
#define DB_VERSION_PATCH
Definition: db_emu.h:102
static int db3join(dbiIndex dbi, DBC **curslist, DBC **dbcp, unsigned int flags)
Definition: db3.c:1626
static int db3ccount(dbiIndex dbi, DBC *dbcursor, unsigned int *countp, unsigned int flags)
Definition: db3.c:1495
#define DB_VERSION_MINOR
Definition: db_emu.h:101
static int db3exists(dbiIndex dbi, DBT *key, unsigned int flags)
Definition: db3.c:1221
static int db3stat(dbiIndex dbi, unsigned int flags)
Definition: db3.c:1534
static int db3cget(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags)
Definition: db3.c:1381
static int db3cclose(dbiIndex dbi, DBC *dbcursor, unsigned int flags)
Definition: db3.c:1296
static int db3associate_foreign(dbiIndex dbi, dbiIndex dbisecondary, int(*callback)(DB *, const DBT *, DBT *, const DBT *, int *), unsigned int flags)
Definition: db3.c:1595
static int db3open(rpmdb rpmdb, rpmTag rpmtag, dbiIndex *dbip)
Return handle for an index database.
Definition: db3.c:2151
static int db3byteswapped(dbiIndex dbi)
Definition: db3.c:1519
static int db3close(dbiIndex dbi, unsigned int flags)
Definition: db3.c:1645
#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:1351
static int db3cdel(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags)
Definition: db3.c:1461
static int db3seqno(dbiIndex dbi, int64_t *seqnop, unsigned int flags)
Definition: db3.c:1243
static int db3copen(dbiIndex dbi, DB_TXN *txnid, DBC **dbcp, unsigned int dbiflags)
Definition: db3.c:1320
static int db3cdup(dbiIndex dbi, DBC *dbcursor, DBC **dbcp, unsigned int flags)
Definition: db3.c:1274
static int db3sync(dbiIndex dbi, unsigned int flags)
Definition: db3.c:1202

Definition at line 2740 of file db3.c.

Referenced by db3open().

§ DBafflags

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

Definition at line 321 of file db3.c.

§ DBaflags

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

Definition at line 302 of file db3.c.

§ DBCflags

KEY DBCflags[]
static

Definition at line 365 of file db3.c.

§ DBCoflags

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 341 of file db3.c.

§ DBeflags

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_MUTEX , "INIT_MUTEX", },
{ 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.

§ DBoflags

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 276 of file db3.c.

§ DBTflags

KEY DBTflags[]
static
Initial value:
= {
{ DB_DBT_MALLOC , "MALLOC", },
{ DB_DBT_REALLOC , "REALLOC", },
{ DB_DBT_USERMEM , "USERMEM", },
{ DB_DBT_PARTIAL , "PARTIAL", },
{ DB_DBT_APPMALLOC , "APPMALLOC", },
{ DB_DBT_MULTIPLE , "MULTIPLE", },
}
#define DB_DBT_MULTIPLE
Definition: db_emu.h:36
#define DB_DBT_REALLOC
Definition: db_emu.h:38
#define DB_DBT_USERMEM
Definition: db_emu.h:42
#define DB_DBT_APPMALLOC
Definition: db_emu.h:31
#define DB_DBT_MALLOC
Definition: db_emu.h:35
#define DB_DBT_PARTIAL
Definition: db_emu.h:37

Definition at line 437 of file db3.c.

§ nDBafflags

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

Definition at line 327 of file db3.c.

§ nDBaflags

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

Definition at line 307 of file db3.c.

§ nDBCflags

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

Definition at line 412 of file db3.c.

§ nDBCoflags

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

Definition at line 352 of file db3.c.

§ nDBeflags

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

Definition at line 262 of file db3.c.

Referenced by fmtDBeflags().

§ nDBoflags

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

Definition at line 288 of file db3.c.

§ nDBTflags

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

Definition at line 450 of file db3.c.