-I&Berkeley DB: db_appexit[P

db_appexit





#include <db.h>

intdb_appexit(DB_ENV *dbenv);





Description



NThe 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_appexitHfunction returns the value of errno on failure, and 0 on success.



Errors

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

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



See Also

db_appexit,8db_appinit,8db_version,2DB->close,4DB->cursor,.DB->del,,DB->fd,.DB->get,/db_open,.DB->put,0DB->stat,0DB->sync,;DBcursor->c_close,7DBcursor->c_del,6DBcursor->c_getand7DBcursor->c_put.
ÿÿ