summaryrefslogtreecommitdiffstats
path: root/debian/htdig/htdig-3.2.0b6/db/lock_conflict.c
diff options
context:
space:
mode:
Diffstat (limited to 'debian/htdig/htdig-3.2.0b6/db/lock_conflict.c')
-rw-r--r--debian/htdig/htdig-3.2.0b6/db/lock_conflict.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/htdig/htdig-3.2.0b6/db/lock_conflict.c b/debian/htdig/htdig-3.2.0b6/db/lock_conflict.c
new file mode 100644
index 00000000..38cf2896
--- /dev/null
+++ b/debian/htdig/htdig-3.2.0b6/db/lock_conflict.c
@@ -0,0 +1,39 @@
+/*-
+ * See the file LICENSE for redistribution information.
+ *
+ * Copyright (c) 1996, 1997, 1998, 1999
+ * Sleepycat Software. All rights reserved.
+ */
+
+#include "db_config.h"
+
+#ifndef lint
+static const char sccsid[] = "@(#)lock_conflict.c 11.1 (Sleepycat) 7/25/99";
+#endif /* not lint */
+
+#ifndef NO_SYSTEM_INCLUDES
+#include <sys/types.h>
+#endif
+
+#include "db_int.h"
+
+/*
+ * The conflict arrays are set up such that the row is the lock you
+ * are holding and the column is the lock that is desired.
+ */
+const u_int8_t CDB_db_rw_conflicts[] = {
+ /* N R W */
+ /* N */ 0, 0, 0,
+ /* R */ 0, 0, 1,
+ /* W */ 0, 1, 1
+};
+
+const u_int8_t CDB_db_riw_conflicts[] = {
+ /* N S X IX IS SIX */
+ /* N */ 0, 0, 0, 0, 0, 0,
+ /* S */ 0, 0, 1, 1, 0, 1,
+ /* X */ 1, 1, 1, 1, 1, 1,
+ /* IX */ 0, 1, 1, 0, 0, 0,
+ /* IS */ 0, 0, 1, 0, 0, 0,
+ /* SIX */ 0, 1, 1, 0, 0, 0
+};