Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
#include <sys/param.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "../include/db.h"
#include "btree.h"
Go to the source code of this file.
Functions | |
int | __bt_close (DB *dbp) |
int | __bt_sync (DB *dbp, u_int flags) const |
static int bt_meta | __P ((BTREE *)) |
static int | bt_meta (BTREE *t) |
int __bt_close | ( | DB * | dbp | ) |
Definition at line 64 of file bt_close.c.
References __bt_sync(), _btree::bt_cursor, _btree::bt_fd, _btree::bt_mp, _btree::bt_pinned, _btree::bt_rdata, _btree::bt_rkey, DBT::data, dbp, free(), __db::internal, _cursor::key, mpool_close(), mpool_put(), NULL, RET_ERROR, RET_SUCCESS, and DBT::size.
Referenced by __bt_open(), __rec_close(), and __rec_open().
int __bt_sync | ( | DB * | dbp, |
u_int | flags | ||
) | const |
Definition at line 119 of file bt_close.c.
References B_INMEM, B_METADIRTY, B_MODIFIED, B_RDONLY, bt_meta(), _btree::bt_mp, _btree::bt_pinned, dbp, errno, F_CLR, F_ISSET, __db::internal, mpool_put(), mpool_sync(), NULL, RET_ERROR, RET_SUCCESS, and status.
Referenced by __bt_close(), __bt_open(), and __rec_sync().
|
static |
Definition at line 162 of file bt_close.c.
References _btree::bt_free, _btree::bt_mp, _btree::bt_nrecs, _btree::bt_psize, BTREEMAGIC, BTREEVERSION, F_ISSET, _btmeta::flags, _btmeta::free, _btmeta::magic, MPOOL_DIRTY, mpool_get(), mpool_put(), _btmeta::nrecs, NULL, P_META, _btmeta::psize, RET_ERROR, RET_SUCCESS, SAVEMETA, and _btmeta::version.
Referenced by __bt_sync().