Berkeley DB: db_appexit
Google

ee,hash,hashing,transaction,transactions,locking,logging,access method,access me thods,java,C,C++">

db_appexit


#include <db.h>

int db_appexit(DB_ENV *dbenv);

Description

The db_appexit function closes the initialized Berkeley DB subsystems, freeing any allocated resources and closing any underlying subsystems.

In multi-threaded applications, only a single thread may call db_appexit.

The db_appexit function returns the value of errno on failure, and 0 on success.

Errors

If a fatal error occurs in Berkeley DB, the db_appexit function may fail and return DB_RUNRECOVERY, at which point all subsequent database calls will also return DB_RUNRECOVERY.

The db_appexit function may fail and return errno for any of the errors specified for the following Berkeley DB and C library functions: free(3), lock_close, log_close, memp_close, memset(3), strlen(3), and txn_close.

See Also

db_appexit, db_appinit, db_version, DB->close, DB->cursor, DB->del, DB->fd, DB->get, db_open, DB->put, DB->stat, DB->sync, DBcursor->c_close, DBcursor->c_del, DBcursor->c_get and DBcursor->c_put.