summaryrefslogtreecommitdiff
path: root/lib/rpmdb.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-05-02 08:30:31 +0000
committerjbj <devnull@localhost>2000-05-02 08:30:31 +0000
commitc19f4c1c317aab49e57f2f9c81b4c031e99f0734 (patch)
tree4c38b713696d6607bd04891c00cf7752a054e5e8 /lib/rpmdb.h
parent73f95c99cea1308e32ccdbfe90dcc8ccd585d9d6 (diff)
downloadlibrpm-tizen-c19f4c1c317aab49e57f2f9c81b4c031e99f0734.tar.gz
librpm-tizen-c19f4c1c317aab49e57f2f9c81b4c031e99f0734.tar.bz2
librpm-tizen-c19f4c1c317aab49e57f2f9c81b4c031e99f0734.zip
Add usedbenv (disabled) to use db3 as db1 was used.
Configure to accept any db api (but rebuild will switch to db3). Rename *_major to *_api throughout. Always open Depends with O_CREAT|O_RDWR. db1.c: use good ol' requredby.rpm name, not requiredbyindex.rpm. db1.c: hide pkgs FD_t in dbi_db, eliminate dbi_pkgs. depends.c: Skip Depends caching on dbiPut failure (e.g. perms). rpmdb.c: remove _useDbiMajor, pass dbapi on call. rpmdb.c: repair rot in rpmdbRemoveDatabase()/rpmdbMoveDatabase(). rpmdb.c: disable ^C hack in signal block/unblock. CVS patchset: 3712 CVS date: 2000/05/02 08:30:31
Diffstat (limited to 'lib/rpmdb.h')
-rw-r--r--lib/rpmdb.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rpmdb.h b/lib/rpmdb.h
index f20b1d800..1fedcbf4e 100644
--- a/lib/rpmdb.h
+++ b/lib/rpmdb.h
@@ -153,10 +153,11 @@ struct _dbiIndex {
int dbi_type; /*<! db index type */
int dbi_mode; /*<! mode to use on open */
int dbi_perms; /*<! file permission to use on open */
- int dbi_major; /*<! Berkeley API type */
+ int dbi_api; /*<! Berkeley API type */
int dbi_tear_down;
int dbi_use_cursors;
+ int dbi_use_dbenv;
int dbi_get_rmw_cursor;
int dbi_no_fsync; /*<! no-op fsync for db */
int dbi_no_dbsync; /*<! don't call dbiSync */
@@ -215,13 +216,12 @@ struct _dbiIndex {
int dbi_rpmtag; /*<! rpm tag used for index */
int dbi_jlen; /*<! size of join key */
- unsigned int dbi_lastoffset; /*<! db0 with falloc.c needs this */
+ unsigned int dbi_lastoffset; /*<! db1 with falloc.c needs this */
- void * dbi_db; /*<! Berkeley db[123] handle */
+ void * dbi_db; /*<! dbi handle */
void * dbi_dbenv;
void * dbi_dbinfo;
void * dbi_rmw; /*<! db cursor (with DB_WRITECURSOR) */
- void * dbi_pkgs;
/*@observer@*/ const struct _dbiVec * dbi_vec; /*<! private methods */
@@ -238,7 +238,7 @@ struct rpmdb_s {
int db_mode; /*<! open mode */
int db_perms; /*<! open permissions */
- int db_major; /*<! Berkeley API type */
+ int db_api; /*<! Berkeley API type */
int db_remove_env;
int db_filter_dups;