rpm  5.4.10
Data Structures | Macros | Typedefs | Enumerations
db_emu.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  __db
 
struct  __db_dbt
 
struct  __db_env
 
struct  __db_h_stat
 
struct  __dbc
 
struct  __db_txn
 

Macros

#define DB_DBT_APPMALLOC   0x001 /* Callback allocated memory. */
 
#define DB_DBT_BULK   0x002 /* Internal: Insert if duplicate. */
 
#define DB_DBT_DUPOK   0x004 /* Internal: Insert if duplicate. */
 
#define DB_DBT_ISSET   0x008 /* Lower level calls set value. */
 
#define DB_DBT_MALLOC   0x010 /* Return in malloc'd memory. */
 
#define DB_DBT_MULTIPLE   0x020 /* References multiple records. */
 
#define DB_DBT_PARTIAL   0x040 /* Partial put/get. */
 
#define DB_DBT_REALLOC   0x080 /* Return in realloc'd memory. */
 
#define DB_DBT_READONLY   0x100 /* Readonly, don't update. */
 
#define DB_DBT_STREAMING   0x200 /* Internal: DBT is being streamed. */
 
#define DB_DBT_USERCOPY   0x400 /* Use the user-supplied callback. */
 
#define DB_DBT_USERMEM   0x800 /* Return in user's memory. */
 
#define DB_CURRENT   6
 
#define DB_KEYLAST   14
 
#define DB_NEXT   16
 
#define DB_NEXT_DUP   17
 
#define DB_SET   26
 
#define DB_SET_RANGE   27
 
#define DB_WRITECURSOR   0x00000010
 
#define DB_BUFFER_SMALL   (-30999)
 
#define DB_NOTFOUND   (-30988)
 
#define DB_INIT_TXN   0x00002000
 
#define DB_EXCL   0x0004000
 
#define DB_PRIVATE   0x0200000
 
#define DB_VERSION_MAJOR   3
 
#define DB_VERSION_MINOR   0
 
#define DB_VERSION_PATCH   0
 
#define DB_CREATE   0x00000001
 
#define DB_INIT_LOCK   0x00000100
 
#define DB_INIT_LOG   0x00000200
 
#define DB_INIT_MPOOL   0x00000400
 
#define DB_INIT_TXN   0x00002000
 
#define DB_AUTO_COMMIT   0x00000100
 
#define DB_THREAD   0x00000020
 
#define DB_DUP   0x00000010
 
#define DB_DUPSORT   0x00000002
 

Typedefs

typedef struct __db DB
 
typedef struct __db_dbt DBT
 
typedef struct __db_env DB_ENV
 
typedef struct __db_h_stat DB_HASH_STAT
 
typedef struct __dbc DBC
 
typedef struct __db_sequence DB_SEQUENCE
 
typedef struct __db_txn DB_TXN
 

Enumerations

enum  DBTYPE {
  DB_BTREE =1, DB_HASH =2, DB_HEAP =6, DB_RECNO =3,
  DB_QUEUE =4, DB_UNKNOWN =5
}
 

Macro Definition Documentation

§ DB_AUTO_COMMIT

#define DB_AUTO_COMMIT   0x00000100

Definition at line 118 of file db_emu.h.

Referenced by db3open().

§ DB_BUFFER_SMALL

#define DB_BUFFER_SMALL   (-30999)

Definition at line 93 of file db_emu.h.

Referenced by db3cget(), and rpmmiGet().

§ DB_CREATE

#define DB_CREATE   0x00000001

Definition at line 113 of file db_emu.h.

Referenced by db3open(), and db_init().

§ DB_CURRENT

#define DB_CURRENT   6

Definition at line 84 of file db_emu.h.

Referenced by dbiMireKeys().

§ DB_DBT_APPMALLOC

#define DB_DBT_APPMALLOC   0x001 /* Callback allocated memory. */

Definition at line 31 of file db_emu.h.

Referenced by db3Acallback(), and loadDBT().

§ DB_DBT_BULK

#define DB_DBT_BULK   0x002 /* Internal: Insert if duplicate. */

Definition at line 32 of file db_emu.h.

§ DB_DBT_DUPOK

#define DB_DBT_DUPOK   0x004 /* Internal: Insert if duplicate. */

Definition at line 33 of file db_emu.h.

§ DB_DBT_ISSET

#define DB_DBT_ISSET   0x008 /* Lower level calls set value. */

Definition at line 34 of file db_emu.h.

§ DB_DBT_MALLOC

#define DB_DBT_MALLOC   0x010 /* Return in malloc'd memory. */

Definition at line 35 of file db_emu.h.

Referenced by sql_cget().

§ DB_DBT_MULTIPLE

#define DB_DBT_MULTIPLE   0x020 /* References multiple records. */

Definition at line 36 of file db_emu.h.

Referenced by db3Acallback(), and fmtDBT().

§ DB_DBT_PARTIAL

#define DB_DBT_PARTIAL   0x040 /* Partial put/get. */

Definition at line 37 of file db_emu.h.

Referenced by dbiMireKeys().

§ DB_DBT_READONLY

#define DB_DBT_READONLY   0x100 /* Readonly, don't update. */

Definition at line 39 of file db_emu.h.

§ DB_DBT_REALLOC

#define DB_DBT_REALLOC   0x080 /* Return in realloc'd memory. */

Definition at line 38 of file db_emu.h.

§ DB_DBT_STREAMING

#define DB_DBT_STREAMING   0x200 /* Internal: DBT is being streamed. */

Definition at line 40 of file db_emu.h.

§ DB_DBT_USERCOPY

#define DB_DBT_USERCOPY   0x400 /* Use the user-supplied callback. */

Definition at line 41 of file db_emu.h.

§ DB_DBT_USERMEM

#define DB_DBT_USERMEM   0x800 /* Return in user's memory. */

Definition at line 42 of file db_emu.h.

Referenced by rpmmiGet().

§ DB_DUP

#define DB_DUP   0x00000010

Definition at line 120 of file db_emu.h.

§ DB_DUPSORT

#define DB_DUPSORT   0x00000002

Definition at line 121 of file db_emu.h.

§ DB_EXCL

#define DB_EXCL   0x0004000

Definition at line 97 of file db_emu.h.

Referenced by db3open(), and sql_initDB().

§ DB_INIT_LOCK

#define DB_INIT_LOCK   0x00000100

Definition at line 114 of file db_emu.h.

Referenced by db_init().

§ DB_INIT_LOG

#define DB_INIT_LOG   0x00000200

Definition at line 115 of file db_emu.h.

§ DB_INIT_MPOOL

#define DB_INIT_MPOOL   0x00000400

Definition at line 116 of file db_emu.h.

Referenced by db_init().

§ DB_INIT_TXN [1/2]

#define DB_INIT_TXN   0x00002000

Definition at line 117 of file db_emu.h.

Referenced by db3open(), and db_init().

§ DB_INIT_TXN [2/2]

#define DB_INIT_TXN   0x00002000

Definition at line 117 of file db_emu.h.

§ DB_KEYLAST

#define DB_KEYLAST   14

Definition at line 85 of file db_emu.h.

Referenced by db3cput(), miFreeHeader(), and rpmdbAdd().

§ DB_NEXT

#define DB_NEXT   16

Definition at line 86 of file db_emu.h.

Referenced by dbiMireKeys(), and rpmmiNext().

§ DB_NEXT_DUP

#define DB_NEXT_DUP   17

Definition at line 87 of file db_emu.h.

Referenced by dbiMireKeys(), and rpmmiNext().

§ DB_NOTFOUND

#define DB_NOTFOUND   (-30988)

§ DB_PRIVATE

#define DB_PRIVATE   0x0200000

Definition at line 98 of file db_emu.h.

Referenced by db3open(), sql_close(), and sql_open().

§ DB_SET

#define DB_SET   26

§ DB_SET_RANGE

#define DB_SET_RANGE   27

Definition at line 89 of file db_emu.h.

Referenced by dbiMireKeys().

§ DB_THREAD

#define DB_THREAD   0x00000020

Definition at line 119 of file db_emu.h.

Referenced by db3open().

§ DB_VERSION_MAJOR

#define DB_VERSION_MAJOR   3

Definition at line 100 of file db_emu.h.

Referenced by db3open(), and db3stat().

§ DB_VERSION_MINOR

#define DB_VERSION_MINOR   0

Definition at line 101 of file db_emu.h.

Referenced by db3stat().

§ DB_VERSION_PATCH

#define DB_VERSION_PATCH   0

Definition at line 102 of file db_emu.h.

§ DB_WRITECURSOR

#define DB_WRITECURSOR   0x00000010

Definition at line 91 of file db_emu.h.

Referenced by db3copen(), rpmdbAdd(), rpmdbRemove(), rpmmiSetRewrite(), and unsatisfiedDepend().

Typedef Documentation

§ DB

typedef struct __db DB

Definition at line 9 of file db_emu.h.

§ DB_ENV

typedef struct __db_env DB_ENV

Definition at line 11 of file db_emu.h.

§ DB_HASH_STAT

typedef struct __db_h_stat DB_HASH_STAT

Definition at line 12 of file db_emu.h.

§ DB_SEQUENCE

typedef struct __db_sequence DB_SEQUENCE

Definition at line 14 of file db_emu.h.

§ DB_TXN

typedef struct __db_txn DB_TXN

Definition at line 15 of file db_emu.h.

§ DBC

typedef struct __dbc DBC

Definition at line 13 of file db_emu.h.

§ DBT

typedef struct __db_dbt DBT

Definition at line 10 of file db_emu.h.

Enumeration Type Documentation

§ DBTYPE

enum DBTYPE
Enumerator
DB_BTREE 
DB_HASH 
DB_HEAP 
DB_RECNO 
DB_QUEUE 
DB_UNKNOWN 

Definition at line 105 of file db_emu.h.