summaryrefslogtreecommitdiff
path: root/db-4.8.30/mod_db4/utils.h
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2016-12-17 21:28:53 -0800
committerJesse Morgan <jesse@jesterpm.net>2016-12-17 21:28:53 -0800
commit54df2afaa61c6a03cbb4a33c9b90fa572b6d07b8 (patch)
tree18147b92b969d25ffbe61935fb63035cac820dd0 /db-4.8.30/mod_db4/utils.h
Berkeley DB 4.8 with rust build script for linux.
Diffstat (limited to 'db-4.8.30/mod_db4/utils.h')
-rw-r--r--db-4.8.30/mod_db4/utils.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/db-4.8.30/mod_db4/utils.h b/db-4.8.30/mod_db4/utils.h
new file mode 100644
index 0000000..9a2dd3c
--- /dev/null
+++ b/db-4.8.30/mod_db4/utils.h
@@ -0,0 +1,32 @@
+/*-
+ * Copyright (c) 2004-2009 Oracle. All rights reserved.
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0.txt
+ *
+ * authors: George Schlossnagle <george@omniti.com>
+ */
+
+#ifndef DB4_UTILS_H
+#define DB4_UTILS_H
+
+#include "db_cxx.h"
+#include "mod_db4_export.h"
+
+/* locks */
+int env_locks_init();
+void env_global_rw_lock();
+void env_global_rd_lock();
+void env_global_unlock();
+void env_wait_for_child_crash();
+void env_child_crash();
+void env_ok_to_proceed();
+
+void env_rsrc_list_init();
+
+int global_ref_count_increase(char *path);
+int global_ref_count_decrease(char *path);
+int global_ref_count_get(const char *path);
+void global_ref_count_clean();
+
+#endif
+/* vim: set ts=4 sts=4 expandtab bs=2 ai fdm=marker: */