#include "system.h"
#include <rpmlib.h>
#include <rpmmacro.h>
#include <rpmurl.h>
#include <rpmdb.h>
#include "debug.h"
Include dependency graph for db3.c:
Go to the source code of this file.
Data Structures | |
struct | dbiHStats_s |
Hash database statistics. More... | |
struct | dbiBStats_s |
B-tree database statistics. More... | |
Defines | |
#define | _RPMDB_INTERNAL |
#define | DB_CLIENT DB_RPCCLIENT |
Functions | |
static int | cvtdberr (dbiIndex dbi, const char *msg, int error, int printit) |
static int | db_fini (dbiIndex dbi, const char *dbhome, const char *dbfile, const char *dbsubfile) |
static int | db3_fsync_disable (int fd) |
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 | 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 | db3cdel (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 | 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 | db3join (dbiIndex dbi, DBC **curslist, DBC **dbcp, unsigned int flags) |
static int | db3close (dbiIndex dbi, unsigned int flags) |
static int | db3open (rpmdb rpmdb, rpmTag rpmtag, dbiIndex *dbip) |
Variables | |
static int | _debug = 1 |
_dbiVec | db3vec |
Definition in file db3.c.
|
|
|
|
|
Definition at line 153 of file db3.c. References _, RPMERR_DBERR, and rpmError. Referenced by db3associate(), db3cclose(), db3ccount(), db3cdel(), db3cdup(), db3cget(), db3close(), db3copen(), db3cpget(), db3cput(), db3join(), db3open(), db3stat(), db3sync(), db_fini(), and db_init(). |
|
Definition at line 218 of file db3.c. Referenced by db_init(). |
|
Definition at line 867 of file db3.c. References _debug, and cvtdberr(). |
|
|
|
Definition at line 601 of file db3.c. References _debug, and cvtdberr(). Referenced by db3copen(). |
|
Definition at line 789 of file db3.c. References _debug, and cvtdberr(). |
|
Definition at line 678 of file db3.c. References _debug, and cvtdberr(). |
|
Definition at line 578 of file db3.c. References _debug, and cvtdberr(). |
|
Definition at line 722 of file db3.c. References _debug, and cvtdberr(). |
|
Definition at line 912 of file db3.c. References _, _debug, _free(), cvtdberr(), db_fini(), rpmGenPath(), rpmGetPath(), RPMMESS_DEBUG, rpmMessage, tagName(), and urlPath(). Referenced by db3open(). |
|
Definition at line 622 of file db3.c. References _debug, cvtdberr(), and db3cclose(). |
|
Definition at line 759 of file db3.c. References _debug, and cvtdberr(). |
|
Definition at line 652 of file db3.c. References _debug, and cvtdberr(). |
|
Definition at line 894 of file db3.c. References _debug, and cvtdberr(). |
|
Definition at line 1065 of file db3.c. References _, _debug, _free(), alloca(), cvtdberr(), db3close(), DB_CLIENT, db_init(), errno, F_OK, rpmCleanPath(), rpmdbLink, rpmdbVerifyAllDBI(), RPMERR_DBERR, RPMERR_FLOCK, rpmError, rpmGenPath(), rpmGetPath(), rpmioMkpath(), RPMMESS_DEBUG, rpmMessage, RPMWARN_FLOCK, Stat(), stpcpy(), tagName(), Unlink(), urlPath(), and W_OK. |
|
Definition at line 834 of file db3.c. References _debug, _free(), and cvtdberr(). |
|
Definition at line 558 of file db3.c. References _debug, and cvtdberr(). |
|
Definition at line 174 of file db3.c. References _, _debug, cvtdberr(), RPMMESS_DEBUG, and rpmMessage. Referenced by db3close(). |
|
Definition at line 251 of file db3.c. References _, _debug, _free(), cvtdberr(), db3_fsync_disable(), DB_CLIENT, Open(), rpmGenPath(), RPMMESS_DEBUG, and rpmMessage. Referenced by db3open(). |
|
|