00001
00002 #ifndef _lock_ext_h_
00003 #define _lock_ext_h_
00004
00005 #if defined(__cplusplus)
00006 extern "C" {
00007 #endif
00008
00009 int __lock_vec_pp __P((DB_ENV *, u_int32_t, u_int32_t, DB_LOCKREQ *, int, DB_LOCKREQ **));
00010 int __lock_vec __P((DB_ENV *, u_int32_t, u_int32_t, DB_LOCKREQ *, int, DB_LOCKREQ **));
00011 int __lock_get_pp __P((DB_ENV *, u_int32_t, u_int32_t, const DBT *, db_lockmode_t, DB_LOCK *));
00012 int __lock_get __P((DB_ENV *, u_int32_t, u_int32_t, const DBT *, db_lockmode_t, DB_LOCK *));
00013 int __lock_get_internal __P((DB_LOCKTAB *, u_int32_t, u_int32_t, const DBT *, db_lockmode_t, db_timeout_t, DB_LOCK *));
00014 int __lock_put_pp __P((DB_ENV *, DB_LOCK *));
00015 int __lock_put __P((DB_ENV *, DB_LOCK *));
00016 int __lock_downgrade __P((DB_ENV *, DB_LOCK *, db_lockmode_t, u_int32_t));
00017 int __lock_locker_is_parent __P((DB_ENV *, u_int32_t, u_int32_t, int *));
00018 int __lock_promote __P((DB_LOCKTAB *, DB_LOCKOBJ *, int *, u_int32_t));
00019 int __lock_detect_pp __P((DB_ENV *, u_int32_t, u_int32_t, int *));
00020 int __lock_detect __P((DB_ENV *, u_int32_t, int *));
00021 int __lock_failchk __P((DB_ENV *));
00022 int __lock_id_pp __P((DB_ENV *, u_int32_t *));
00023 int __lock_id __P((DB_ENV *, u_int32_t *, DB_LOCKER **));
00024 void __lock_set_thread_id __P((DB_LOCKER *, pid_t, db_threadid_t));
00025 int __lock_id_free_pp __P((DB_ENV *, u_int32_t));
00026 int __lock_id_free __P((DB_ENV *, u_int32_t));
00027 int __lock_id_set __P((DB_ENV *, u_int32_t, u_int32_t));
00028 int __lock_getlocker __P((DB_LOCKTAB *, u_int32_t, u_int32_t, int, DB_LOCKER **));
00029 int __lock_addfamilylocker __P((DB_ENV *, u_int32_t, u_int32_t));
00030 int __lock_freefamilylocker __P((DB_LOCKTAB *, u_int32_t));
00031 void __lock_freelocker __P((DB_LOCKTAB *, DB_LOCKREGION *, DB_LOCKER *, u_int32_t));
00032 int __lock_fix_list __P((DB_ENV *, DBT *, u_int32_t));
00033 int __lock_get_list __P((DB_ENV *, u_int32_t, u_int32_t, db_lockmode_t, DBT *));
00034 void __lock_list_print __P((DB_ENV *, DBT *));
00035 void __lock_dbenv_create __P((DB_ENV *));
00036 int __lock_dbenv_close __P((DB_ENV *));
00037 int __lock_get_lk_conflicts __P((DB_ENV *, const u_int8_t **, int *));
00038 int __lock_set_lk_conflicts __P((DB_ENV *, u_int8_t *, int));
00039 int __lock_get_lk_detect __P((DB_ENV *, u_int32_t *));
00040 int __lock_set_lk_detect __P((DB_ENV *, u_int32_t));
00041 int __lock_set_lk_max __P((DB_ENV *, u_int32_t));
00042 int __lock_get_lk_max_locks __P((DB_ENV *, u_int32_t *));
00043 int __lock_set_lk_max_locks __P((DB_ENV *, u_int32_t));
00044 int __lock_get_lk_max_lockers __P((DB_ENV *, u_int32_t *));
00045 int __lock_set_lk_max_lockers __P((DB_ENV *, u_int32_t));
00046 int __lock_get_lk_max_objects __P((DB_ENV *, u_int32_t *));
00047 int __lock_set_lk_max_objects __P((DB_ENV *, u_int32_t));
00048 int __lock_get_env_timeout __P((DB_ENV *, db_timeout_t *, u_int32_t));
00049 int __lock_set_env_timeout __P((DB_ENV *, db_timeout_t, u_int32_t));
00050 int __lock_open __P((DB_ENV *));
00051 int __lock_dbenv_refresh __P((DB_ENV *));
00052 u_int32_t __lock_region_mutex_count __P((DB_ENV *));
00053 int __lock_stat_pp __P((DB_ENV *, DB_LOCK_STAT **, u_int32_t));
00054 int __lock_stat_print_pp __P((DB_ENV *, u_int32_t));
00055 int __lock_stat_print __P((DB_ENV *, u_int32_t));
00056 void __lock_printlock __P((DB_LOCKTAB *, DB_MSGBUF *mbp, struct __db_lock *, int));
00057 int __lock_set_timeout __P(( DB_ENV *, u_int32_t, db_timeout_t, u_int32_t));
00058 int __lock_set_timeout_internal __P((DB_ENV *, u_int32_t, db_timeout_t, u_int32_t));
00059 int __lock_inherit_timeout __P(( DB_ENV *, u_int32_t, u_int32_t));
00060 void __lock_expires __P((DB_ENV *, db_timeval_t *, db_timeout_t));
00061 int __lock_expired __P((DB_ENV *, db_timeval_t *, db_timeval_t *));
00062 int __lock_cmp __P((const DBT *, DB_LOCKOBJ *));
00063 int __lock_locker_cmp __P((u_int32_t, DB_LOCKER *));
00064 u_int32_t __lock_ohash __P((const DBT *));
00065 u_int32_t __lock_lhash __P((DB_LOCKOBJ *));
00066 int __lock_nomem __P((DB_ENV *, const char *));
00067
00068 #if defined(__cplusplus)
00069 }
00070 #endif
00071 #endif