Asterisk - The Open Source Telephony Project
18.5.0
|
#include <sys/types.h>
#include <limits.h>
Go to the source code of this file.
Data Structures | |
struct | __db |
struct | BTREEINFO |
struct | DBT |
struct | HASHINFO |
struct | RECNOINFO |
Macros | |
#define | __BIT_TYPES_DEFINED__ |
#define | __R_UNUSED 2 /* UNUSED */ |
#define | BTREEMAGIC 0x053162 |
#define | BTREEVERSION 3 |
#define | DB_LOCK 0x2000 /* Do locking. */ |
#define | DB_SHMEM 0x4000 /* Use shared memory. */ |
#define | DB_TXN 0x8000 /* Do transactions. */ |
#define | HASHMAGIC 0x061561 |
#define | HASHVERSION 2 |
#define | MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */ |
#define | MAX_PAGE_OFFSET 65535 /* >= # of bytes in a page */ |
#define | MAX_REC_NUMBER 0xffffffff /* >= # of records in a tree */ |
#define | R_CURSOR 1 /* del, put, seq */ |
#define | R_DUP 0x01 /* duplicate keys */ |
#define | R_FIRST 3 /* seq */ |
#define | R_FIXEDLEN 0x01 /* fixed-length records */ |
#define | R_IAFTER 4 /* put (RECNO) */ |
#define | R_IBEFORE 5 /* put (RECNO) */ |
#define | R_LAST 6 /* seq (BTREE, RECNO) */ |
#define | R_NEXT 7 /* seq */ |
#define | R_NOKEY 0x02 /* key not required */ |
#define | R_NOOVERWRITE 8 /* put */ |
#define | R_PREV 9 /* seq (BTREE, RECNO) */ |
#define | R_RECNOSYNC 11 /* sync (RECNO) */ |
#define | R_SETCURSOR 10 /* put (RECNO) */ |
#define | R_SNAPSHOT 0x04 /* snapshot the input */ |
#define | RET_ERROR -1 /* Return values. */ |
#define | RET_SPECIAL 1 |
#define | RET_SUCCESS 0 |
Typedefs | |
typedef struct __db | DB |
typedef u_int16_t | indx_t |
typedef short | int16_t |
typedef int | int32_t |
typedef __signed char | int8_t |
typedef u_int32_t | pgno_t |
typedef u_int32_t | recno_t |
typedef unsigned short | u_int16_t |
typedef unsigned int | u_int32_t |
typedef unsigned char | u_int8_t |
Enumerations | |
enum | DBTYPE { DB_BTREE, DB_HASH, DB_RECNO } |
Functions | |
__BEGIN_DECLS DB *__dbopen | __P ((const char *, int, int, DBTYPE, const void *)) |
#define BTREEMAGIC 0x053162 |
Definition at line 141 of file db.h.
Referenced by __bt_open(), and bt_meta().
#define BTREEVERSION 3 |
Definition at line 142 of file db.h.
Referenced by __bt_open(), and bt_meta().
#define DB_LOCK 0x2000 /* Do locking. */ |
Definition at line 123 of file db.h.
Referenced by __bt_open().
#define DB_SHMEM 0x4000 /* Use shared memory. */ |
Definition at line 124 of file db.h.
Referenced by __bt_open().
#define DB_TXN 0x8000 /* Do transactions. */ |
Definition at line 125 of file db.h.
Referenced by __bt_open().
#define HASHMAGIC 0x061561 |
Definition at line 159 of file db.h.
Referenced by __hash_open(), and flush_meta().
#define HASHVERSION 2 |
Definition at line 160 of file db.h.
Referenced by __hash_open(), and flush_meta().
#define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */ |
Definition at line 77 of file db.h.
Referenced by mpool_new().
Definition at line 79 of file db.h.
Referenced by __bt_open().
#define MAX_REC_NUMBER 0xffffffff /* >= # of records in a tree */ |
Definition at line 81 of file db.h.
Referenced by __rec_open(), __rec_seq(), and __rec_sync().
#define R_CURSOR 1 /* del, put, seq */ |
Definition at line 91 of file db.h.
Referenced by __bt_delete(), __bt_put(), __bt_seq(), __bt_seqset(), __rec_delete(), __rec_put(), __rec_seq(), and hash_delete().
#define R_DUP 0x01 /* duplicate keys */ |
Definition at line 146 of file db.h.
Referenced by __bt_open().
#define R_FIRST 3 /* seq */ |
Definition at line 93 of file db.h.
Referenced by __bt_seq(), __bt_seqset(), __rec_seq(), __rec_sync(), convert_bdb_to_sqlite3(), dbm_firstkey(), and hash_seq().
#define R_FIXEDLEN 0x01 /* fixed-length records */ |
Definition at line 175 of file db.h.
Referenced by __rec_open().
#define R_IAFTER 4 /* put (RECNO) */ |
Definition at line 94 of file db.h.
Referenced by __rec_iput(), and __rec_put().
#define R_IBEFORE 5 /* put (RECNO) */ |
Definition at line 95 of file db.h.
Referenced by __rec_iput(), and __rec_put().
Definition at line 96 of file db.h.
Referenced by __bt_seq(), __bt_seqset(), __rec_seq(), and convert_bdb_to_sqlite3().
#define R_NEXT 7 /* seq */ |
Definition at line 97 of file db.h.
Referenced by __bt_seq(), __bt_seqadv(), __bt_seqset(), __rec_seq(), __rec_sync(), convert_bdb_to_sqlite3(), dbm_nextkey(), and hash_seq().
#define R_NOKEY 0x02 /* key not required */ |
Definition at line 176 of file db.h.
Referenced by __rec_open().
#define R_NOOVERWRITE 8 /* put */ |
Definition at line 98 of file db.h.
Referenced by __bt_put(), __rec_put(), dbm_store(), hash_put(), and hsearch().
Definition at line 99 of file db.h.
Referenced by __bt_seq(), __bt_seqadv(), __bt_seqset(), and __rec_seq().
#define R_RECNOSYNC 11 /* sync (RECNO) */ |
Definition at line 101 of file db.h.
Referenced by __rec_sync().
#define R_SETCURSOR 10 /* put (RECNO) */ |
Definition at line 100 of file db.h.
Referenced by __bt_put(), and __rec_put().
#define R_SNAPSHOT 0x04 /* snapshot the input */ |
Definition at line 177 of file db.h.
Referenced by __rec_open().
#define RET_ERROR -1 /* Return values. */ |
Definition at line 51 of file db.h.
Referenced by __bt_bdelete(), __bt_close(), __bt_cmp(), __bt_curdel(), __bt_delete(), __bt_dleaf(), __bt_first(), __bt_get(), __bt_open(), __bt_pdelete(), __bt_put(), __bt_relink(), __bt_ret(), __bt_seq(), __bt_seqadv(), __bt_seqset(), __bt_split(), __bt_sync(), __ovfl_delete(), __ovfl_get(), __ovfl_put(), __P(), __rec_close(), __rec_delete(), __rec_dleaf(), __rec_fmap(), __rec_fpipe(), __rec_get(), __rec_iput(), __rec_open(), __rec_put(), __rec_ret(), __rec_seq(), __rec_sync(), __rec_vmap(), __rec_vpipe(), bt_broot(), bt_meta(), bt_preserve(), mpool_bkt(), mpool_sync(), mpool_write(), nroot(), and rec_rdelete().
#define RET_SPECIAL 1 |
Definition at line 53 of file db.h.
Referenced by __bt_bdelete(), __bt_delete(), __bt_first(), __bt_get(), __bt_put(), __bt_seqadv(), __bt_seqset(), __rec_delete(), __rec_fmap(), __rec_fpipe(), __rec_get(), __rec_put(), __rec_seq(), __rec_vmap(), and __rec_vpipe().
#define RET_SUCCESS 0 |
Definition at line 52 of file db.h.
Referenced by __bt_bdelete(), __bt_close(), __bt_curdel(), __bt_delete(), __bt_dleaf(), __bt_first(), __bt_pdelete(), __bt_put(), __bt_ret(), __bt_seq(), __bt_seqadv(), __bt_seqset(), __bt_split(), __bt_sync(), __ovfl_delete(), __ovfl_get(), __ovfl_put(), __rec_close(), __rec_delete(), __rec_dleaf(), __rec_fmap(), __rec_fpipe(), __rec_get(), __rec_iput(), __rec_put(), __rec_ret(), __rec_seq(), __rec_sync(), __rec_vmap(), __rec_vpipe(), bt_broot(), bt_meta(), bt_preserve(), bt_rroot(), mpool_close(), mpool_put(), mpool_sync(), mpool_write(), nroot(), and rec_rdelete().
enum DBTYPE |