summaryrefslogtreecommitdiffstats
path: root/debian/htdig/htdig-3.2.0b6/db/qam_method.c
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-11-05 13:28:23 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-11-05 13:28:23 +0100
commit8c787c3591c1c885b91a54128835b400858c5cca (patch)
treeeca1b776912a305c4d45b3964038278a2fae1ead /debian/htdig/htdig-3.2.0b6/db/qam_method.c
parentfe188b907cdf30dfdfe0eba9412e7f8749fec158 (diff)
downloadextra-dependencies-8c787c3591c1c885b91a54128835b400858c5cca.tar.gz
extra-dependencies-8c787c3591c1c885b91a54128835b400858c5cca.zip
DEB htdig: Added to repository.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'debian/htdig/htdig-3.2.0b6/db/qam_method.c')
-rw-r--r--debian/htdig/htdig-3.2.0b6/db/qam_method.c63
1 files changed, 63 insertions, 0 deletions
diff --git a/debian/htdig/htdig-3.2.0b6/db/qam_method.c b/debian/htdig/htdig-3.2.0b6/db/qam_method.c
new file mode 100644
index 00000000..27f02928
--- /dev/null
+++ b/debian/htdig/htdig-3.2.0b6/db/qam_method.c
@@ -0,0 +1,63 @@
+/*-
+ * See the file LICENSE for redistribution information.
+ *
+ * Copyright (c) 1999
+ * Sleepycat Software. All rights reserved.
+ */
+
+#include "db_config.h"
+
+#ifndef lint
+static const char sccsid[] = "@(#)qam_method.c 11.1 (Sleepycat) 8/19/99";
+#endif /* not lint */
+
+#ifndef NO_SYSTEM_INCLUDES
+#include <sys/types.h>
+#endif
+
+#include "db_int.h"
+#include "db_page.h"
+#include "qam.h"
+
+/*
+ * CDB___qam_db_create --
+ * Queue specific initialization of the DB structure.
+ *
+ * PUBLIC: int CDB___qam_db_create __P((DB *));
+ */
+int
+CDB___qam_db_create(dbp)
+ DB *dbp;
+{
+ QUEUE *t;
+ int ret;
+
+ /* Allocate and initialize the private queue structure. */
+ if ((ret = CDB___os_calloc(1, sizeof(QUEUE), &t)) != 0)
+ return (ret);
+ dbp->q_internal = t;
+
+ t->re_pad = ' ';
+
+ return (0);
+}
+
+/*
+ * CDB___qam_db_close --
+ * Queue specific discard of the DB structure.
+ *
+ * PUBLIC: int CDB___qam_db_close __P((DB *));
+ */
+int
+CDB___qam_db_close(dbp)
+ DB *dbp;
+{
+ QUEUE *t;
+
+ t = dbp->q_internal;
+
+ CDB___os_free(t, sizeof(QUEUE));
+ dbp->q_internal = NULL;
+
+ return (0);
+}