summaryrefslogtreecommitdiff
path: root/db-4.8.30/examples_c/ex_apprec/ex_apprec.src
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/examples_c/ex_apprec/ex_apprec.src
Berkeley DB 4.8 with rust build script for linux.
Diffstat (limited to 'db-4.8.30/examples_c/ex_apprec/ex_apprec.src')
-rw-r--r--db-4.8.30/examples_c/ex_apprec/ex_apprec.src33
1 files changed, 33 insertions, 0 deletions
diff --git a/db-4.8.30/examples_c/ex_apprec/ex_apprec.src b/db-4.8.30/examples_c/ex_apprec/ex_apprec.src
new file mode 100644
index 0000000..8bdba5d
--- /dev/null
+++ b/db-4.8.30/examples_c/ex_apprec/ex_apprec.src
@@ -0,0 +1,33 @@
+/*-
+ * See the file LICENSE for redistribution information.
+ *
+ * Copyright (c) 2002-2009 Oracle. All rights reserved.
+ *
+ * $Id$
+ */
+
+PREFIX ex_apprec
+INCLUDE #include "ex_apprec.h"
+
+/*
+ * This is the source file used to generate the application-specific recovery
+ * functions used by the ex_apprec example. It should be turned into usable
+ * source code (including a template for the recovery function itself) by
+ * invoking changing to the dist directory of the DB distribution and
+ * running the gen_rec.awk script there as follows:
+ *
+ * awk -f ./gen_rec.awk \
+ * -v source_file=../examples_c/ex_apprec/ex_apprec_auto.c \
+ * -v header_file=../examples_c/ex_apprec/ex_apprec_auto.h \
+ * -v template_file=../examples_c/ex_apprec/ex_apprec_template \
+ * < ../examples_c/ex_apprec/ex_apprec.src
+ */
+
+/*
+ * mkdir: used to create a directory
+ *
+ * dirname: relative or absolute pathname of the directory to be created
+ */
+BEGIN mkdir 42 10000
+DBT dirname DBT s
+END