.md, compare CONTENT so we can prove nothing was dropped:
+
+ 1. Visible-word multiset retention: intersection(new, old) / |old|, over the
+ visible text of each (boilerplate navheader/navfooter excluded from OLD by
+ reusing the same content-div isolation the extractor uses; front-matter and
+ link/HTML noise excluded from NEW). A page below --threshold is flagged.
+ 2. Code blocks: count of `programlisting` in OLD vs ``` fences in NEW.
+ 3. Parameter/Error/sub-section headers: count of in OLD vs
+ `####` headings in NEW.
+
+Any drop in (2) or (3), or retention below threshold in (1), is an OUTLIER.
+
+Usage: verify.py [--threshold 0.97]
+Exit non-zero if any hard drop (code block / sub-section) is detected, so CI can
+gate on it. Low word-retention is reported but (this phase) not fatal unless it
+also drops structure \u2014 pandoc reflow/normalization loses stopwords legitimately.
+"""
+import html as htmllib
+import re
+import sys
+from collections import Counter
+from pathlib import Path
+
+REPO = Path(__file__).resolve().parents[2]
+OLD = REPO / "docs/api_reference/C"
+NEW = REPO / "docs-src/api/c"
+
+# Reuse the extractor's body isolation so OLD text excludes the same boilerplate.
+sys.path.insert(0, str(Path(__file__).resolve().parent))
+from extract import BodyExtractor, preprocess_html # noqa: E402
+
+WORD = re.compile(r"[A-Za-z_][A-Za-z0-9_]+")
+TAG = re.compile(r"<[^>]+>")
+
+
+def old_visible_text(path):
+ ex = BodyExtractor()
+ ex.feed(path.read_text(encoding="utf-8", errors="replace"))
+ inner = preprocess_html(ex.inner_html())
+ # Drop code (compared separately) and link title="..." attrs (duplicate the
+ # link text; not visible prose) so OLD prose matches what NEW prose counts.
+ inner = re.sub(r"]*>.*? ", " ", inner, flags=re.S)
+ inner = re.sub(r'\s+title="[^"]*"', " ", inner)
+ text = TAG.sub(" ", inner)
+ return htmllib.unescape(text)
+
+
+def old_code_count(path):
+ return path.read_text(errors="replace").count('class="programlisting"')
+
+
+def old_h4_count(path):
+ return len(re.findall(r'{ncode}")
+ hard_drops.append((hp.stem, f"code blocks {ocode}->{ncode}"))
+ if nh4 < oh4:
+ reasons.append(f"sub-sections {oh4}->{nh4}")
+ hard_drops.append((hp.stem, f"sub-sections {oh4}->{nh4}"))
+ if reasons:
+ outliers.append((hp.stem, r, "; ".join(reasons)))
+
+ print(f"pages compared: {n}")
+ print(f"mean word retention: {ret_sum / n:.2%}" if n else "no pages")
+ print(f"outliers (< {thr:.0%} words OR structural drop): {len(outliers)}")
+ for stem, r, why in sorted(outliers, key=lambda t: t[1]):
+ print(f" {stem:32s} {r:6.1%} {why}")
+ if hard_drops:
+ print(f"\nHARD DROPS (code/sub-section/missing): {len(hard_drops)}")
+ for stem, why in hard_drops:
+ print(f" {stem:32s} {why}")
+ sys.exit(1)
+ print("\nno hard drops: every code block and parameter/error sub-section retained.")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/docs-src/_templates/page.html.tmpl b/docs-src/_templates/page.html.tmpl
new file mode 100644
index 000000000..04cd0e0a4
--- /dev/null
+++ b/docs-src/_templates/page.html.tmpl
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+ {{title}} — {{project}} {{version}}
+
+
+
+
+ {{crumbs}}
+
+{{content}}
+
+
+
+
diff --git a/docs-src/api/c/DB_MULTIPLE_INIT.md b/docs-src/api/c/DB_MULTIPLE_INIT.md
new file mode 100644
index 000000000..63e746915
--- /dev/null
+++ b/docs-src/api/c/DB_MULTIPLE_INIT.md
@@ -0,0 +1,34 @@
+---
+title: "DB_MULTIPLE_INIT"
+api-name: "DB_MULTIPLE_INIT"
+source: docs/api_reference/C/DB_MULTIPLE_INIT.html
+---
+## DB_MULTIPLE_INIT
+
+``` c
+#include
+
+DB_MULTIPLE_INIT(void *pointer, DBT *data);
+```
+
+If either of the DB_MULTIPLE or DB_MULTIPLE_KEY flags were specified to the DB->get() or DBcursor->get() methods, the data DBT returned by those interfaces will refer to a buffer that is filled with data. Access to that data is through the DB_MULTIPLE\_\* macros.
+
+This macro initializes a variable used for bulk retrieval.
+
+### Parameters
+
+#### pointer
+
+The **pointer** parameter is a variable to be initialized.
+
+#### data
+
+The **data** parameter is a DBT structure returned from a successful call to DB->get() or DBcursor->get() for which one of the DB_MULTIPLE or DB_MULTIPLE_KEY flags were specified.
+
+### Class
+
+DBT
+
+### See Also
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/DB_MULTIPLE_KEY_NEXT.md b/docs-src/api/c/DB_MULTIPLE_KEY_NEXT.md
new file mode 100644
index 000000000..f1ab5b9a8
--- /dev/null
+++ b/docs-src/api/c/DB_MULTIPLE_KEY_NEXT.md
@@ -0,0 +1,55 @@
+---
+title: "DB_MULTIPLE_KEY_NEXT"
+api-name: "DB_MULTIPLE_KEY_NEXT"
+source: docs/api_reference/C/DB_MULTIPLE_KEY_NEXT.html
+---
+## DB_MULTIPLE_KEY_NEXT
+
+``` c
+#include
+
+DB_MULTIPLE_KEY_NEXT(void *pointer, DBT *data,
+ void *retkey, size_t retklen, void *retdata, size_t retdlen);
+```
+
+If either of the DB_MULTIPLE or DB_MULTIPLE_KEY flags were specified to the DB->get() or DBcursor->get() methods, the data DBT returned by those interfaces will refer to a buffer that is filled with data. Access to that data is through the DB_MULTIPLE\_\* macros.
+
+Returns the next DBT in the bulk retrieval set. Use this macro with DBT structures obtained from a database that uses the Btree or Hash access methods.
+
+### Parameters
+
+#### pointer
+
+The **pointer** parameter is a variable that must have been initialized by a call to DB_MULTIPLE_INIT .
+
+This parameter is set to NULL if there are no more key/data pairs in the returned set.
+
+#### data
+
+The **data** parameter is a DBT structure returned from a successful call to DBcursor->get() with the Btree or Hash access methods for which the DB_MULTIPLE_KEY flag was specified.
+
+The **data** parameter must have been initialized by a call to DB_MULTIPLE_INIT .
+
+#### retkey
+
+The **retkey** parameter is set to the next key element in the returned set.
+
+#### retklen
+
+The **retklen** parameter is set to the length, in bytes, of the next key element.
+
+#### retdata
+
+The **retdata** parameter is set to the next data element in the returned set.
+
+#### retdlen
+
+The **retdlen** parameter is set to the length, in bytes, of the next data element.
+
+### Class
+
+DBT
+
+### See Also
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/DB_MULTIPLE_KEY_RESERVE_NEXT.md b/docs-src/api/c/DB_MULTIPLE_KEY_RESERVE_NEXT.md
new file mode 100644
index 000000000..0222ef5e1
--- /dev/null
+++ b/docs-src/api/c/DB_MULTIPLE_KEY_RESERVE_NEXT.md
@@ -0,0 +1,49 @@
+---
+title: "DB_MULTIPLE_KEY_RESERVE_NEXT"
+api-name: "DB_MULTIPLE_KEY_RESERVE_NEXT"
+source: docs/api_reference/C/DB_MULTIPLE_KEY_RESERVE_NEXT.html
+---
+## DB_MULTIPLE_KEY_RESERVE_NEXT
+
+``` c
+#include
+
+DB_MULTIPLE_KEY_RESERVE_NEXT(void *pointer, DBT *dbt,
+ void *kdest, size_t klen, void *ddest, size_t dlen);
+```
+
+Reserves space for a key / data pair in a bulk buffer.
+
+### Parameters
+
+#### pointer
+
+The **pointer** parameter is a variable that must have been initialized by a call to DB_MULTIPLE_WRITE_INIT .
+
+#### kdest
+
+The **kdest** parameter is set to the location reserved in the bulk buffer for the key.
+
+This parameter is set to NULL if the data item does not fit in the buffer.
+
+#### klen
+
+The number of bytes to be reserved for the key.
+
+#### ddest
+
+The **ddest** parameter is set to the location reserved in the bulk buffer for the data item.
+
+This parameter is set to NULL if the data item does not fit in the buffer.
+
+#### dlen
+
+The number of bytes to be reserved for the data item.
+
+### Class
+
+DBT
+
+### See Also
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/DB_MULTIPLE_KEY_WRITE_NEXT.md b/docs-src/api/c/DB_MULTIPLE_KEY_WRITE_NEXT.md
new file mode 100644
index 000000000..298fe1539
--- /dev/null
+++ b/docs-src/api/c/DB_MULTIPLE_KEY_WRITE_NEXT.md
@@ -0,0 +1,51 @@
+---
+title: "DB_MULTIPLE_KEY_WRITE_NEXT"
+api-name: "DB_MULTIPLE_KEY_WRITE_NEXT"
+source: docs/api_reference/C/DB_MULTIPLE_KEY_WRITE_NEXT.html
+---
+## DB_MULTIPLE_KEY_WRITE_NEXT
+
+``` c
+#include
+
+DB_MULTIPLE_KEY_WRITE_NEXT(void *pointer, DBT *dbt,
+ void *key, size_t klen, void *data, size_t dlen);
+```
+
+Appends a key / data pair to the bulk buffer.
+
+### Parameters
+
+#### pointer
+
+The **pointer** parameter is a variable that must have been initialized by a call to DB_MULTIPLE_WRITE_INIT .
+
+This parameter is set to NULL if the data item does not fit in the buffer.
+
+#### dbt
+
+The **dbt** parameter is a DBT structure initialized with DB_MULTIPLE_WRITE_INIT .
+
+#### key
+
+A pointer to the bytes for the key to be copied into the bulk buffer.
+
+#### klen
+
+The number of bytes to be copied for the key.
+
+#### data
+
+A pointer to the bytes for the data item to be copied into the bulk buffer.
+
+#### dlen
+
+The number of bytes to be copied for the data item.
+
+### Class
+
+DBT
+
+### See Also
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/DB_MULTIPLE_NEXT.md b/docs-src/api/c/DB_MULTIPLE_NEXT.md
new file mode 100644
index 000000000..278eebbd0
--- /dev/null
+++ b/docs-src/api/c/DB_MULTIPLE_NEXT.md
@@ -0,0 +1,47 @@
+---
+title: "DB_MULTIPLE_NEXT"
+api-name: "DB_MULTIPLE_NEXT"
+source: docs/api_reference/C/DB_MULTIPLE_NEXT.html
+---
+## DB_MULTIPLE_NEXT
+
+``` c
+#include
+
+DB_MULTIPLE_NEXT(void *pointer, DBT *data, void *retdata,
+ size_t retdlen);
+```
+
+If either of the DB_MULTIPLE or DB_MULTIPLE_KEY flags were specified to the DB->get() or DBcursor->get() methods, the data DBT returned by those interfaces will refer to a buffer that is filled with data. Access to that data is through the DB_MULTIPLE\_\* macros.
+
+Returns the next DBT in the bulk retrieval set.
+
+### Parameters
+
+#### pointer
+
+The **pointer** parameter is a variable that must have been initialized by a call to DB_MULTIPLE_INIT .
+
+This parameter is set to NULL if there are no more key/data pairs in the returned set.
+
+#### data
+
+The **data** parameter is a DBT structure returned from a successful call to DB->get() or DBcursor->get() for which he DB_MULTIPLE flag was specified.
+
+The **data** parameter must have been initialized by a call to DB_MULTIPLE_INIT .
+
+#### retdata
+
+The **retdata** is set to the next data element in the returned set.
+
+#### retdlen
+
+The **retdlen** parameter is set to the length, in bytes, of that data element. When used with the Queue and Recno access methods, **retdata** parameter will be set to NULL for deleted records.
+
+### Class
+
+DBT
+
+### See Also
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/DB_MULTIPLE_RECNO_NEXT.md b/docs-src/api/c/DB_MULTIPLE_RECNO_NEXT.md
new file mode 100644
index 000000000..b9455f6ff
--- /dev/null
+++ b/docs-src/api/c/DB_MULTIPLE_RECNO_NEXT.md
@@ -0,0 +1,51 @@
+---
+title: "DB_MULTIPLE_RECNO_NEXT"
+api-name: "DB_MULTIPLE_RECNO_NEXT"
+source: docs/api_reference/C/DB_MULTIPLE_RECNO_NEXT.html
+---
+## DB_MULTIPLE_RECNO_NEXT
+
+``` c
+#include
+
+DB_MULTIPLE_RECNO_NEXT(void *pointer, DBT *data,
+ db_recno_t recno, void * retdata, size_t retdlen);
+```
+
+If either of the DB_MULTIPLE or DB_MULTIPLE_KEY flags were specified to the DB->get() or DBcursor->get() methods, the data DBT returned by those interfaces will refer to a buffer that is filled with data. Access to that data is through the DB_MULTIPLE\_\* macros.
+
+Returns the next DBT in the bulk retrieval set. Use this macro with DBT structures obtained from a database that uses the Queue or Recno access methods.
+
+### Parameters
+
+#### pointer
+
+The **pointer** parameter is a variable that must have been initialized by a call to DB_MULTIPLE_INIT .
+
+This parameter is set to NULL if there are no more key/data pairs in the returned set.
+
+#### data
+
+The **data** parameter is a DBT structure returned from a successful call to DBcursor->get() with the Queue or Recno access methods for which the DB_MULTIPLE_KEY flag was specified.
+
+The **data** parameter must have been initialized by a call to DB_MULTIPLE_INIT .
+
+#### recno
+
+The **recno** parameter is set to the record number of the next record in the returned set.
+
+#### retdata
+
+The **retdata** parameter is set to the next data element in the returned set. Deleted records are not included in the results.
+
+#### retdlen
+
+The **retdlen** parameter is set to the length, in bytes, of the next data element.
+
+### Class
+
+DBT
+
+### See Also
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/DB_MULTIPLE_RECNO_RESERVE_NEXT.md b/docs-src/api/c/DB_MULTIPLE_RECNO_RESERVE_NEXT.md
new file mode 100644
index 000000000..3996c7a54
--- /dev/null
+++ b/docs-src/api/c/DB_MULTIPLE_RECNO_RESERVE_NEXT.md
@@ -0,0 +1,49 @@
+---
+title: "DB_MULTIPLE_RECNO_RESERVE_NEXT"
+api-name: "DB_MULTIPLE_RECNO_RESERVE_NEXT"
+source: docs/api_reference/C/DB_MULTIPLE_RECNO_RESERVE_NEXT.html
+---
+## DB_MULTIPLE_RECNO_RESERVE_NEXT
+
+``` c
+#include
+
+DB_MULTIPLE_RECNO_RESERVE_NEXT(void *pointer, DBT *dbt, db_recno_t recno,
+ void *ddest, size_t dlen);
+```
+
+Reserves space for a record number / data pair in a bulk buffer.
+
+### Parameters
+
+#### pointer
+
+The **pointer** parameter is a variable that must have been initialized by a call to DB_MULTIPLE_RECNO_WRITE_INIT .
+
+#### dbt
+
+The **dbt** parameter is a DBT structure initialized with DB_MULTIPLE_RECNO_WRITE_INIT .
+
+#### recno
+
+The record number to be copied into the bulk buffer.
+
+This parameter is set to 0 if the data item does not fit in the buffer.
+
+#### ddest
+
+The **ddest** parameter is set to the location reserved in the bulk buffer for the data item.
+
+This parameter is set to NULL if the data item does not fit in the buffer.
+
+#### dlen
+
+The number of bytes to be reserved.
+
+### Class
+
+DBT
+
+### See Also
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/DB_MULTIPLE_RECNO_WRITE_INIT.md b/docs-src/api/c/DB_MULTIPLE_RECNO_WRITE_INIT.md
new file mode 100644
index 000000000..767555cb6
--- /dev/null
+++ b/docs-src/api/c/DB_MULTIPLE_RECNO_WRITE_INIT.md
@@ -0,0 +1,34 @@
+---
+title: "DB_MULTIPLE_RECNO_WRITE_INIT"
+api-name: "DB_MULTIPLE_RECNO_WRITE_INIT"
+source: docs/api_reference/C/DB_MULTIPLE_RECNO_WRITE_INIT.html
+---
+## DB_MULTIPLE_RECNO_WRITE_INIT
+
+``` c
+#include
+
+DB_MULTIPLE_RECNO_WRITE_INIT(void *pointer, DBT *data);
+```
+
+Initialize a DBT containing a bulk buffer for use with the DB_MULTIPLE or DB_MULTIPLE_KEY flags to the DB->put() or DB->del() methods, if the buffer will contain record number keys.
+
+This macro initializes an opaque pointer variable used for adding records to a bulk buffer. Use this macro for buffers that will contain either a list of record numbers (for use with DB_MULTIPLE ), or key/data pairs, where the key is a record number.
+
+### Parameters
+
+#### pointer
+
+The **pointer** parameter is an opaque pointer variable to be initialized.
+
+#### data
+
+The **data** parameter is a DBT structure that has been initialized by the application with a buffer to hold multiple records. The **ulen** field must be set to the size of the buffer allocated by the application, which must be a multiple of 4.
+
+### Class
+
+DBT
+
+### See Also
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/DB_MULTIPLE_RECNO_WRITE_NEXT.md b/docs-src/api/c/DB_MULTIPLE_RECNO_WRITE_NEXT.md
new file mode 100644
index 000000000..4783f93ab
--- /dev/null
+++ b/docs-src/api/c/DB_MULTIPLE_RECNO_WRITE_NEXT.md
@@ -0,0 +1,47 @@
+---
+title: "DB_MULTIPLE_RECNO_WRITE_NEXT"
+api-name: "DB_MULTIPLE_RECNO_WRITE_NEXT"
+source: docs/api_reference/C/DB_MULTIPLE_RECNO_WRITE_NEXT.html
+---
+## DB_MULTIPLE_RECNO_WRITE_NEXT
+
+``` c
+#include
+
+DB_MULTIPLE_RECNO_WRITE_NEXT(void *pointer, DBT *dbt,
+ db_recno_t recno, void *data, size_t dlen);
+```
+
+Appends a record number / data pair to the bulk buffer.
+
+### Parameters
+
+#### pointer
+
+The **pointer** parameter is a variable that must have been initialized by a call to DB_MULTIPLE_RECNO_WRITE_INIT .
+
+This parameter is set to NULL if the data item does not fit in the buffer.
+
+#### dbt
+
+The **dbt** parameter is a DBT structure initialized with DB_MULTIPLE_WRITE_INIT .
+
+#### recno
+
+The record number to be copied into the bulk buffer.
+
+#### data
+
+A pointer to the bytes to be copied into the bulk buffer.
+
+#### dlen
+
+The number of bytes to be copied.
+
+### Class
+
+DBT
+
+### See Also
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/DB_MULTIPLE_RESERVE_NEXT.md b/docs-src/api/c/DB_MULTIPLE_RESERVE_NEXT.md
new file mode 100644
index 000000000..60f97ce39
--- /dev/null
+++ b/docs-src/api/c/DB_MULTIPLE_RESERVE_NEXT.md
@@ -0,0 +1,43 @@
+---
+title: "DB_MULTIPLE_RESERVE_NEXT"
+api-name: "DB_MULTIPLE_RESERVE_NEXT"
+source: docs/api_reference/C/DB_MULTIPLE_RESERVE_NEXT.html
+---
+## DB_MULTIPLE_RESERVE_NEXT
+
+``` c
+#include
+
+DB_MULTIPLE_RESERVE_NEXT(void *pointer, DBT *dbt,
+ void *ddest, size_t dlen);
+```
+
+Reserves space for a data item in a bulk buffer.
+
+### Parameters
+
+#### dbt
+
+The **dbt** parameter is a DBT structure initialized with DB_MULTIPLE_WRITE_INIT .
+
+#### pointer
+
+The **pointer** parameter is a variable that must have been initialized by a call to DB_MULTIPLE_WRITE_INIT .
+
+#### ddest
+
+The **ddest** parameter is set to the location reserved in the bulk buffer for the data item.
+
+This parameter is set to NULL if the data item does not fit in the buffer.
+
+#### dlen
+
+The number of bytes to be reserved for the data item.
+
+### Class
+
+DBT
+
+### See Also
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/DB_MULTIPLE_WRITE_INIT.md b/docs-src/api/c/DB_MULTIPLE_WRITE_INIT.md
new file mode 100644
index 000000000..7b8170f67
--- /dev/null
+++ b/docs-src/api/c/DB_MULTIPLE_WRITE_INIT.md
@@ -0,0 +1,34 @@
+---
+title: "DB_MULTIPLE_WRITE_INIT"
+api-name: "DB_MULTIPLE_WRITE_INIT"
+source: docs/api_reference/C/DB_MULTIPLE_WRITE_INIT.html
+---
+## DB_MULTIPLE_WRITE_INIT
+
+``` c
+#include
+
+DB_MULTIPLE_WRITE_INIT(void *pointer, DBT *data);
+```
+
+Initialize a DBT containing a bulk buffer for use with the DB_MULTIPLE or DB_MULTIPLE_KEY flags to the DB->put() or DB->del() methods.
+
+This macro initializes an opaque pointer variable used for adding records to a bulk buffer. Use this macro for buffers that will contain either a data item per record (for use with DB_MULTIPLE ), or key/data pairs, where the key is not a record number. For record number keys, use DB_MULTIPLE_RECNO_WRITE_INIT .
+
+### Parameters
+
+#### pointer
+
+The **pointer** parameter is an opaque pointer variable to be initialized.
+
+#### data
+
+The **data** parameter is a DBT structure that has been initialized by the application with a buffer to hold multiple records. The **ulen** field must be set to the size of the buffer allocated by the application, and must be a multiple of 4.
+
+### Class
+
+DBT
+
+### See Also
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/DB_MULTIPLE_WRITE_NEXT.md b/docs-src/api/c/DB_MULTIPLE_WRITE_NEXT.md
new file mode 100644
index 000000000..cea9402e9
--- /dev/null
+++ b/docs-src/api/c/DB_MULTIPLE_WRITE_NEXT.md
@@ -0,0 +1,43 @@
+---
+title: "DB_MULTIPLE_WRITE_NEXT"
+api-name: "DB_MULTIPLE_WRITE_NEXT"
+source: docs/api_reference/C/DB_MULTIPLE_WRITE_NEXT.html
+---
+## DB_MULTIPLE_WRITE_NEXT
+
+``` c
+#include
+
+DB_MULTIPLE_WRITE_NEXT(void *pointer, DBT *dbt, void *data,
+ size_t dlen);
+```
+
+Appends a data item to the bulk buffer.
+
+### Parameters
+
+#### pointer
+
+The **pointer** parameter is a variable that must have been initialized by a call to DB_MULTIPLE_WRITE_INIT .
+
+This parameter is set to NULL if the data item does not fit in the buffer.
+
+#### dbt
+
+The **dbt** parameter is a DBT structure initialized with DB_MULTIPLE_WRITE_INIT .
+
+#### data
+
+A pointer to the bytes to be copied into the bulk buffer.
+
+#### dlen
+
+The number of bytes to be copied.
+
+### Class
+
+DBT
+
+### See Also
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/_meta.toml b/docs-src/api/c/_meta.toml
new file mode 100644
index 000000000..3c84dc7bc
--- /dev/null
+++ b/docs-src/api/c/_meta.toml
@@ -0,0 +1,10 @@
+# Nav/index metadata for the C API reference tree.
+#
+# `index.md` is the tree landing page (migrated from the DocBook book index,
+# the big method table). build.py uses `title` for breadcrumbs/nav labels;
+# `order` (optional) can pin a reading order for PDF/man assembly in later
+# phases. Left mostly implicit this phase since index.md already carries the
+# full ordered method table recovered from the source.
+
+title = "C API Reference"
+landing = "index.md"
diff --git a/docs-src/api/c/add_data_dir_parameter.md b/docs-src/api/c/add_data_dir_parameter.md
new file mode 100644
index 000000000..5f96ba945
--- /dev/null
+++ b/docs-src/api/c/add_data_dir_parameter.md
@@ -0,0 +1,12 @@
+---
+title: "add_data_dir"
+api-name: "add_data_dir"
+source: docs/api_reference/C/add_data_dir_parameter.html
+---
+## add_data_dir
+
+Add the path of a directory to be used as the location of the access method database files. Paths specified to the DB->open() function will be searched relative to this path. Paths set using this method are additive, and specifying more than one will result in each specified directory being searched for database files.
+
+The syntax of this parameter in the DB_CONFIG file is a single line with the string `add_data_dir`, one or more whitespace characters, and the directory name.
+
+For more information, see DB_ENV->add_data_dir() .
diff --git a/docs-src/api/c/configuration_reference.md b/docs-src/api/c/configuration_reference.md
new file mode 100644
index 000000000..44ab824e6
--- /dev/null
+++ b/docs-src/api/c/configuration_reference.md
@@ -0,0 +1,54 @@
+---
+title: "Appendix D. DB_CONFIG Parameter Reference"
+api-name: "Appendix D. DB_CONFIG Parameter Reference"
+source: docs/api_reference/C/configuration_reference.html
+---
+## Appendix D. DB_CONFIG Parameter Reference
+
+The following `DB_CONFIG` parameters can be used to manage various aspects of your application's database environment.
+
+## DB_CONFIG Parameters
+
+| DB_CONFIG Parameters | Description |
+|----|----|
+| add_data_dir | Sets the mutex alignment. |
+| mutex_set_align | Sets the mutex alignment. |
+| mutex_set_increment | Configures the number of additional mutexes to allocate. |
+| mutex_set_max | Configures the total number of mutexes to allocate. |
+| mutex_set_tas_spins | Specifies the number of times the test-and-set mutexes should spin without blocking. |
+| rep_set_clockskew | Sets the clock skew ratio. |
+| rep_set_config | Configures the Berkeley DB replication subsystem. |
+| rep_set_limit | Sets record transmission throttling. |
+| rep_set_nsites | Specifies the total number of sites in a replication group. |
+| rep_set_priority | Specifies the database environment's priority. |
+| rep_set_request | Sets a threshold before requesting retransmission of a missing message. |
+| rep_set_timeout | Specifies a variety of replication timeout values. |
+| repmgr_set_ack_policy | Specifies how master and client sites will handle acknowledgment. |
+| repmgr_site | Identifies a Replication Manager host. |
+| set_cachesize | Sets the size of the shared memory buffer pool. |
+| set_cache_max | Sets the maximum size for set_cachesize parameter. |
+| set_create_dir | Sets the directory path to create the access method database files. |
+| set_data_len | Sets the maximum number of bytes displayed by some utilities. |
+| set_flags | Configures a database environment. |
+| set_intermediate_dir_mode | Configures the directory permissions. |
+| set_lg_bsize | Sets the size of the in-memory log buffer. |
+| set_lg_dir | Sets the path of the directory for logging files. |
+| set_lg_filemode | Sets the absolute file mode for created log files. |
+| set_lg_max | Sets the maximum size of a single file in the log. |
+| set_lg_regionmax | Sets the size of the underlying logging area. |
+| set_lk_detect | Sets the maximum number of locking entities. |
+| set_lk_max_lockers | Sets the maximum number of locking entities. |
+| set_lk_max_locks | Sets the maximum number of locks supported by the Berkeley DB environment. |
+| set_lk_max_objects | Sets the maximum number of locked objects. |
+| set_lk_partitions | Sets the number of lock table partitions in the Berkeley DB environment. |
+| log_set_config | Configures the Berkeley DB logging subsystem. |
+| set_mp_max_openfd | Limits the number of file descriptors the library will open concurrently when flushing dirty pages from the cache. |
+| set_mp_max_write | Limits the number of sequential write operations |
+| set_mp_mmapsize | Sets the maximum file size. |
+| set_open_flags | Initializes specific subsystems of the Berkeley DB environment. |
+| set_shm_key | Configures the database environment's base segment ID. |
+| set_thread_count | Declares an approximate number of threads in the database environment. |
+| set_timeout | Sets timeout values for locks or transactions. |
+| set_tmp_dir | Specifies the directory path of temporary files. |
+| set_tx_max | Configures support of simultaneously active transactions. |
+| set_verbose | Enables/disables the Berkeley DB message output. |
diff --git a/docs-src/api/c/db.md b/docs-src/api/c/db.md
new file mode 100644
index 000000000..262e2d601
--- /dev/null
+++ b/docs-src/api/c/db.md
@@ -0,0 +1,305 @@
+---
+title: "Chapter 2. The DB Handle"
+api-name: "Chapter 2. The DB Handle"
+source: docs/api_reference/C/db.html
+---
+## Chapter 2. The DB Handle
+
+The DB is the handle for a single Berkeley DB database. A Berkeley DB database provides a mechanism for organizing key-data pairs of information. From the perspective of some database systems, a Berkeley DB database could be thought of as a single table within a larger database.
+
+You create a DB handle using the db_create function. For most database activities, you must then open the handle using the DB->open() method. When you are done with them, handles must be closed using the DB->close() method.
+
+Alternatively, you can create a DB and then rename, remove or verify the database without performing an open. See DB->rename() , DB->remove() or DB->verify() for information on these activities.
+
+It is possible to create databases such that they are organized within a *database environment* . Environments are optional for simple Berkeley DB applications that do not use transactions, recovery, replication or any other advanced features. For simple Berkeley DB applications, environments still offer some advantages. For example, they provide some organizational benefits on-disk (all databases are located on disk relative to the environment). Also, if you are using multiple databases, then environments allow your databases to share a common in-memory cache, which makes for more efficient usage of your hardware's resources.
+
+See DB_ENV for information on using database environments.
+
+You specify the underlying organization of the data in the database (e.g. BTree, Hash, Queue, and Recno) when you open the database. When you create a database, you are free to specify any of the available database types. On subsequent opens, you must either specify the access method used when you first opened the database, or you can specify `DB_UNKNOWN` in order to have this information retrieved for you. See the DB->open() method for information on specifying database types.
+
+## Database and Related Methods
+
+
+
+
+Database Operations
+Description
+
+
+
+
+DB->associate()
+Associate a secondary index
+
+
+DB->associate_foreign()
+Associate a foreign index
+
+
+DB->close()
+Close a database
+
+
+DB->compact()
+Compact a database
+
+
+db_create
+Create a database handle
+
+
+DB->del()
+Delete items from a database
+
+
+DB->err()
+Error message
+
+
+DB->exists()
+Return if an item appears in a database
+
+
+DB->fd()
+Return a file descriptor from a database
+
+
+DB->get()
+Get items from a database
+
+
+DB->get_byteswapped()
+Return if the underlying database is in host order
+
+
+DB->get_dbname()
+Return the file and database name
+
+
+DB->get_multiple()
+Return if the database handle references multiple databases
+
+
+DB->get_open_flags()
+Returns the flags specified to DB->open
+
+
+DB->get_type()
+Return the database type
+
+
+DB->join()
+Perform a database join on cursors
+
+
+DB->key_range()
+Return estimate of key location
+
+
+DB->open()
+Open a database
+
+
+DB->put()
+Store items into a database
+
+
+DB->remove()
+Remove a database
+
+
+DB->rename()
+Rename a database
+
+
+DB->set_priority() , DB->get_priority()
+Set/get cache page priority
+
+
+DB->stat()
+Database statistics
+
+
+DB->stat_print()
+Display database statistics
+
+
+DB->sync()
+Flush a database to stable storage
+
+
+DB->truncate()
+Empty a database
+
+
+DB->upgrade()
+Upgrade a database
+
+
+DB->verify()
+Verify/salvage a database
+
+
+DB->cursor()
+Create a cursor handle
+
+
+Database Configuration
+
+
+DB->set_alloc()
+Set local space allocation functions
+
+
+DB->set_cachesize() , DB->get_cachesize()
+Set/get the database cache size
+
+
+DB->set_create_dir() , DB->get_create_dir()
+Set/get the directory in which a database is placed
+
+
+DB->set_dup_compare()
+Set a duplicate comparison function
+
+
+DB->set_encrypt() , DB->get_encrypt_flags()
+Set/get the database cryptographic key
+
+
+DB->set_errcall()
+Set error message callback
+
+
+DB->set_errfile() , DB->get_errfile()
+Set/get error message FILE
+
+
+DB->set_errpfx() , DB->get_errpfx()
+Set/get error message prefix
+
+
+DB->set_feedback()
+Set feedback callback
+
+
+DB->set_flags() , DB->get_flags()
+Set/get general database configuration
+
+
+DB->set_lk_exclusive() , DB->get_lk_exclusive()
+Set/get exclusive database locking
+
+
+DB->set_lorder() , DB->get_lorder()
+Set/get the database byte order
+
+
+DB->set_msgcall()
+Set informational message callback
+
+
+DB->set_msgfile() , DB->get_msgfile()
+Set/get informational message FILE
+
+
+DB->set_pagesize() , DB->get_pagesize()
+Set/get the underlying database page size
+
+
+DB->set_partition()
+Set database partitioning
+
+
+DB->set_partition_dirs() , DB->get_partition_dirs()
+Set/get the directories used for database partitions
+
+
+Btree/Recno Configuration
+
+
+DB->set_append_recno()
+Set record append callback
+
+
+DB->set_bt_compare()
+Set a Btree comparison function
+
+
+DB->set_bt_compress()
+Set Btree compression functions
+
+
+DB->set_bt_minkey() , DB->get_bt_minkey()
+Set/get the minimum number of keys per Btree page
+
+
+DB->set_bt_prefix()
+Set a Btree prefix comparison function
+
+
+DB->set_re_delim() , DB->get_re_delim()
+Set/get the variable-length record delimiter
+
+
+DB->set_re_len() , DB->get_re_len()
+Set/get the fixed-length record length
+
+
+DB->set_re_pad() , DB->get_re_pad()
+Set/get the fixed-length record pad byte
+
+
+DB->set_re_source() , DB->get_re_source()
+Set/get the backing Recno text file
+
+
+Hash Configuration
+
+
+DB->set_h_compare()
+Set a Hash comparison function
+
+
+DB->set_h_ffactor() , DB->get_h_ffactor()
+Set/get the Hash table density
+
+
+DB->set_h_hash()
+Set a hashing function
+
+
+DB->set_h_nelem() , DB->get_h_nelem()
+Set/get the Hash table size
+
+
+Queue Configuration
+
+
+DB->set_q_extentsize() , DB->get_q_extentsize()
+Set/get Queue database extent size
+
+
+Heap
+
+
+DB->set_heapsize() , DB->get_heapsize()
+Set/get the database heap size
+
+
+DB->set_heap_regionsize() , DB->get_heap_regionsize()
+Set/get the database region size
+
+
+DB_HEAP_RID
+
+
+
+Database Utilities
+
+
+db_copy
+Copy a named database to a target directory
+
+
+
diff --git a/docs-src/api/c/db_archive.md b/docs-src/api/c/db_archive.md
new file mode 100644
index 000000000..675267d24
--- /dev/null
+++ b/docs-src/api/c/db_archive.md
@@ -0,0 +1,74 @@
+---
+title: "db_archive"
+api-name: "db_archive"
+source: docs/api_reference/C/db_archive.html
+---
+## db_archive
+
+``` c
+db_archive [-adlsVv] [-h home] [-P password]
+```
+
+The **db_archive** utility writes the pathnames of log files that are no longer in use (for example, no longer involved in active transactions), to the standard output, one pathname per line. These log files should be written to backup media to provide for recovery in the case of catastrophic failure (which also requires a snapshot of the database files), but they may then be deleted from the system to reclaim disk space.
+
+### Note
+
+If the application(s) that use the environment make use of any of the following methods:
+
+| |
+|----|
+| DB_ENV->add_data_dir() |
+| DB_ENV->set_data_dir() |
+| DB_ENV->set_lg_dir() |
+
+then in order for this utility to run correctly, you need a DB_CONFIG file which sets the proper paths using the add_data_dir , or set_lg_dir configuration parameters.
+
+The options are as follows:
+
+- **-a**
+
+ Write all pathnames as absolute pathnames, instead of relative to the database home directory.
+
+- **-d**
+
+ Remove log files that are no longer needed; no filenames are written. This automatic log file removal is likely to make catastrophic recovery impossible.
+
+- **-h**
+
+ Specify a home directory for the database environment; by default, the current working directory is used.
+
+- **-l**
+
+ Write out the pathnames of all the database log files, whether or not they are involved in active transactions.
+
+- **-P**
+
+ Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.
+
+- **-s**
+
+ Write the pathnames of all the database files that need to be archived in order to recover the database from catastrophic failure. If any of the database files have not been accessed during the lifetime of the current log files, **db_archive** will not include them in this output.
+
+ It is possible that some of the files to which the log refers have since been deleted from the system. In this case, **db_archive** will ignore them. When db_recover is run, any files to which the log refers that are not present during recovery are assumed to have been deleted and will not be recovered.
+
+- **-V**
+
+ Write the library version number to the standard output, and exit.
+
+- **-v**
+
+ Run in verbose mode.
+
+Log cursor handles (returned by the DB_ENV->log_cursor() method) may have open file descriptors for log files in the database environment. Also, the Berkeley DB interfaces to the database environment logging subsystem (for example, DB_ENV->log_put() and DB_TXN->abort() may allocate log cursors and have open file descriptors for log files as well. On operating systems where filesystem related system calls (for example, rename and unlink on Windows/NT) can fail if a process has an open file descriptor for the affected file, attempting to move or remove the log files listed by **db_archive** may fail. All Berkeley DB internal use of log cursors operates on active log files only and furthermore, is short-lived in nature. So, an application seeing such a failure should be restructured to close any open log cursors it may have, and otherwise to retry the operation until it succeeds. (Although the latter is not likely to be necessary; it is hard to imagine a reason to move or rename a log file in which transactions are being logged or aborted.)
+
+The **db_archive** utility uses a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, **db_archive** should always be given the chance to detach from the environment and exit gracefully. To cause **db_archive** to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).
+
+The DB_ENV->log_archive() method is the underlying method used by the **db_archive** utility. See the **db_archive** utility source code for an example of using `DB_ENV->log_archive()` in an IEEE/ANSI Std 1003.1 (POSIX) environment.
+
+The **db_archive** utility exits 0 on success, and \>0 if an error occurs.
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
diff --git a/docs-src/api/c/db_checkpoint.md b/docs-src/api/c/db_checkpoint.md
new file mode 100644
index 000000000..44e59c945
--- /dev/null
+++ b/docs-src/api/c/db_checkpoint.md
@@ -0,0 +1,71 @@
+---
+title: "db_checkpoint"
+api-name: "db_checkpoint"
+source: docs/api_reference/C/db_checkpoint.html
+---
+## db_checkpoint
+
+``` c
+db_checkpoint [-1Vv] [-h home]
+ [-k kbytes] [-L file] [-P password] [-p min]
+```
+
+The **db_checkpoint** utility is a daemon process that monitors the database log, and periodically calls DB_ENV->txn_checkpoint() to checkpoint it.
+
+The options are as follows:
+
+- **-1**
+
+ Force a single checkpoint of the log (regardless of whether or not there has been activity since the last checkpoint), and then exit.
+
+ When the **-1** flag is specified, the **db_checkpoint** utility will checkpoint the log even if unable to find an existing database environment. This functionality is useful when upgrading database environments from one version of Berkeley DB to another.
+
+- **-h**
+
+ Specify a home directory for the database environment; by default, the current working directory is used.
+
+- **-k**
+
+ Checkpoint the database at least as often as every **kbytes** of log file are written.
+
+- **-L**
+
+ Log the execution of the **db_checkpoint** utility to the specified file in the following format, where *\###* is the process ID, and the date is the time the utility was started.
+
+ ``` c
+ db_checkpoint: ### Wed Jun 15 01:23:45 EDT 1995
+ ```
+
+ This file will be removed if the **db_checkpoint** utility exits gracefully.
+
+- **-P**
+
+ Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.
+
+- **-p**
+
+ Checkpoint the database at least every **min** minutes if there has been any activity since the last checkpoint.
+
+- **-V**
+
+ Write the library version number to the standard output, and exit.
+
+- **-v**
+
+ Write the time of each checkpoint attempt to the standard output.
+
+At least one of the **-1**, **-k**, and **-p** options must be specified.
+
+The **db_checkpoint** utility uses a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, **db_checkpoint** should always be given the chance to detach from the environment and exit gracefully. To cause **db_checkpoint** to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).
+
+The **db_checkpoint** utility does not attempt to create the Berkeley DB shared memory regions if they do not already exist. The application that creates the region should be started first, and once the region is created, the **db_checkpoint** utility should be started.
+
+The DB_ENV->txn_checkpoint() method is the underlying method used by the **db_checkpoint** utility. See the **db_checkpoint** utility source code for an example of using `DB_ENV->txn_checkpoint()` in a IEEE/ANSI Std 1003.1 (POSIX) environment.
+
+The **db_checkpoint** utility exits 0 on success, and \>0 if an error occurs.
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
diff --git a/docs-src/api/c/db_copy.md b/docs-src/api/c/db_copy.md
new file mode 100644
index 000000000..ce000da99
--- /dev/null
+++ b/docs-src/api/c/db_copy.md
@@ -0,0 +1,34 @@
+---
+title: "db_copy"
+api-name: "db_copy"
+source: docs/api_reference/C/db_copy.html
+---
+## db_copy
+
+``` c
+#include
+
+int
+db_copy(DB_ENV *dbenv, const char *dbfile, const char *target,
+ const char *password);
+```
+
+The `db_copy()` routine copies the named database file to the target directory. An optional password can be specified for encrypted database files. This routine can be used on operating systems that do not support atomic file system reads to create a hot backup of a database file. If the specified database file is for a QUEUE database with extents, all extent files for that database will be copied as well.
+
+### Parameters
+
+#### dbenv
+
+An open environment handle for the environment containing the database file.
+
+#### dbfile
+
+The path name to the file to be backed up. The file name is resolved using the usual BDB library name resolution rules.
+
+#### target
+
+The directory to which you want the database copied. This is specified relative to the current directory of the executing process or as an absolute path.
+
+#### password
+
+Specified only if the database file is encrypted. The resulting backup file will be encrypted as well.
diff --git a/docs-src/api/c/db_deadlock.md b/docs-src/api/c/db_deadlock.md
new file mode 100644
index 000000000..9609a4e42
--- /dev/null
+++ b/docs-src/api/c/db_deadlock.md
@@ -0,0 +1,91 @@
+---
+title: "db_deadlock"
+api-name: "db_deadlock"
+source: docs/api_reference/C/db_deadlock.html
+---
+## db_deadlock
+
+``` c
+db_deadlock [-Vv]
+ [-a e | m | n | o | W | w | y] [-h home] [-L file] [-t sec.usec]
+```
+
+The **db_deadlock** utility traverses the database environment lock region, and aborts a lock request each time it detects a deadlock or a lock request that has timed out. By default, in the case of a deadlock, a random lock request is chosen to be aborted.
+
+This utility should be run as a background daemon, or the underlying Berkeley DB deadlock detection interfaces should be called in some other way, whenever there are multiple threads or processes accessing a database and at least one of them is modifying it.
+
+The options are as follows:
+
+- **-a**
+
+ When a deadlock is detected, abort the locker:
+
+ - **m**
+
+ with the most locks
+
+ - **n**
+
+ with the fewest locks
+
+ - **o**
+
+ with the oldest locks
+
+ - **W**
+
+ with the most write locks
+
+ - **w**
+
+ with the fewest write locks
+
+ - **y**
+
+ with the youngest locks
+
+ - **e**
+
+ When lock or transaction timeouts have been specified, abort any lock request that has timed out. Note that this option does not perform the entire deadlock detection algorithm, but instead only checks for timeouts.
+
+- **-h**
+
+ Specify a home directory for the database environment; by default, the current working directory is used.
+
+- **-L**
+
+ Log the execution of the **db_deadlock** utility to the specified file in the following format, where *\###* is the process ID, and the date is the time the utility was started.
+
+ ``` c
+ db_deadlock: ### Wed Jun 15 01:23:45 EDT 1995
+ ```
+
+ This file will be removed if the **db_deadlock** utility exits gracefully.
+
+- **-t**
+
+ Check the database environment every **sec** seconds plus **usec** microseconds to see if a process has been forced to wait for a lock; if one has, review the database environment lock structures.
+
+- **-V**
+
+ Write the library version number to the standard output, and exit.
+
+- **-v**
+
+ Run in verbose mode, generating messages each time the detector runs.
+
+If the **-t** option is not specified, **db_deadlock** will run once and exit.
+
+The **db_deadlock** utility uses a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, **db_deadlock** should always be given the chance to detach from the environment and exit gracefully. To cause **db_deadlock** to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).
+
+The **db_deadlock** utility does not attempt to create the Berkeley DB shared memory regions if they do not already exist. The application which creates the region should be started first, and then, once the region is created, the **db_deadlock** utility should be started.
+
+The DB_ENV->lock_detect() method is the underlying method used by the **db_deadlock** utility. See the **db_deadlock** utility source code for an example of using `DB_ENV->lock_detect()` in a IEEE/ANSI Std 1003.1 (POSIX) environment.
+
+The **db_deadlock** utility exits 0 on success, and \>0 if an error occurs.
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
diff --git a/docs-src/api/c/db_dump.md b/docs-src/api/c/db_dump.md
new file mode 100644
index 000000000..e886cade6
--- /dev/null
+++ b/docs-src/api/c/db_dump.md
@@ -0,0 +1,125 @@
+---
+title: "db_dump"
+api-name: "db_dump"
+source: docs/api_reference/C/db_dump.html
+---
+## db_dump
+
+``` c
+db_dump [-klNpRrV] [-b blob_dir] [-d ahr]
+ [-f output] [-h home] [-P password] [-s database] [-D bytes] file
+
+db_dump [-kNpV] [-d ahr] [-f output] [-h home] -m database
+
+db_dump185 [-p] [-f output] file
+```
+
+The **db_dump** utility reads the database file **file** and writes it to the standard output using a portable flat-text format understood by the db_load utility. The **file** argument must be a file produced using the Berkeley DB library functions.
+
+The **db_dump185** utility is similar to the **db_dump** utility, except that it reads databases in the format used by Berkeley DB versions 1.85 and 1.86.
+
+The options are as follows:
+
+- **-b**
+
+ Specifies the directory where BLOB data is stored for the database you are dumping.
+
+- **-d**
+
+ Dump the specified database in a format helpful for debugging the Berkeley DB library routines.
+
+ - **a**
+
+ Display all information. See also the **-D** option.
+
+ - **h**
+
+ Display only page headers.
+
+ - **r**
+
+ Do not display the free-list or pages on the free list. This mode is used by the recovery tests.
+
+ **The output format of the ****-d** option is not standard and may change, without notice, between releases of the Berkeley DB library.****
+
+- **-D**
+
+ Specifies the maximum number of bytes to dump for each key/data item found in the specified database. This option is only valid when **-da** is also specified. This option overrides the value set for the "set_data_len" parameter in your DB_CONFIG file, if any.
+
+- **-f**
+
+ Write to the specified file instead of to the standard output.
+
+- **-h**
+
+ Specify a home directory for the database environment; by default, the current working directory is used.
+
+- **-k**
+
+ Dump record numbers from Queue and Recno databases as keys.
+
+- **-l**
+
+ List the databases stored in the file.
+
+- **-m**
+
+ Specify a named in-memory database to dump. In this case the **file** argument must be omitted.
+
+- **-N**
+
+ Do not acquire shared region mutexes while running. Other problems, such as potentially fatal errors in Berkeley DB, will be ignored as well. This option is intended only for debugging errors, and should not be used under any other circumstances.
+
+- **-P**
+
+ Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.
+
+- **-p**
+
+ If characters in either the key or data items are printing characters (as defined by **isprint**(3)), use printing characters in **file** to represent them. This option permits users to use standard text editors and tools to modify the contents of databases.
+
+ Note: different systems may have different notions about what characters are considered *printing characters* , and databases dumped in this manner may be less portable to external systems.
+
+- **-R**
+
+ Aggressively salvage data from a possibly corrupt file. The **-R** flag differs from the **-r** option in that it will return all possible data from the file at the risk of also returning already deleted or otherwise nonsensical items. Data dumped in this fashion will almost certainly have to be edited by hand or other means before the data is ready for reload into another database
+
+ Note that this option causes the utility to verify the integrity of the database before performing the database dump. If this verification fails, the utility will exit with error return `DB_VERIFY_BAD` even though the database is successfully dumped. If you are dumping a database known to be corrupt, you can safely ignore a `DB_VERIFY_BAD` error return.
+
+- **-r**
+
+ Salvage data from a possibly corrupt file. When used on a uncorrupted database, this option should return equivalent data to a normal dump, but most likely in a different order.
+
+ Note that this option causes the utility to verify the integrity of the database before performing the database dump. If this verification fails, the utility will exit with error return `DB_VERIFY_BAD` even though the database is successfully dumped. If you are dumping a database known to be corrupt, you can safely ignore a `DB_VERIFY_BAD` error return.
+
+- **-s**
+
+ Specify a single database to dump. If no database is specified, all databases in the database file are dumped.
+
+- **-V**
+
+ Write the library version number to the standard output, and exit.
+
+Dumping and reloading Hash databases that use user-defined hash functions will result in new databases that use the default hash function. Although using the default hash function may not be optimal for the new database, it will continue to work correctly.
+
+Dumping and reloading Btree databases that use user-defined prefix or comparison functions will result in new databases that use the default prefix and comparison functions. **In this case, it is quite likely that the database will be damaged beyond repair permitting neither record storage or retrieval.**
+
+The only available workaround for either case is to modify the sources for the db_load utility to load the database using the correct hash, prefix, and comparison functions.
+
+The **db_dump185** utility may not be available on your system because it is not always built when the Berkeley DB libraries and utilities are installed. If you are unable to find it, see your system administrator for further information.
+
+The **db_dump** and **db_dump185** utility output formats are documented in the Dump Output Formats section of the Berkeley DB Reference Guide.
+
+The **db_dump** utility may be used with a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, **db_dump** should always be given the chance to detach from the environment and exit gracefully. To cause **db_dump** to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).
+
+Even when using a Berkeley DB database environment, the db_dump utility does not use any kind of database locking if it is invoked with the **-d**, **-R**, or **-r** arguments. If used with one of these arguments, the **db_dump** utility may only be safely run on databases that are not being modified by any other process; otherwise, the output may be corrupt.
+
+The **db_dump** utility exits 0 on success, and \>0 if an error occurs. Note that this utility might return `DB_VERIFY_BAD` if the `-R` or `-r` command line options are used. This indicates a corrupt database. However, the dump may still have been successful.
+
+The **db_dump185** utility exits 0 on success, and \>0 if an error occurs.
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
diff --git a/docs-src/api/c/db_env_set_func_close.md b/docs-src/api/c/db_env_set_func_close.md
new file mode 100644
index 000000000..0d56923ac
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_close.md
@@ -0,0 +1,31 @@
+---
+title: "db_env_set_func_close"
+api-name: "db_env_set_func_close"
+source: docs/api_reference/C/db_env_set_func_close.html
+---
+## db_env_set_func_close
+
+``` c
+#include
+
+int
+db_env_set_func_close(int (*func_close)(int fd));
+```
+
+Replace Berkeley DB calls to the IEEE/ANSI Std 1003.1 (POSIX) **close** function with **func_close**, which must conform to the standard interface specification.
+
+The `db_env_set_func_close()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_close()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_close()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_close
+
+The **func_close** parameter is the replacement function. It must conform to the standard interface specification.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_dirfree.md b/docs-src/api/c/db_env_set_func_dirfree.md
new file mode 100644
index 000000000..6e4bb64c1
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_dirfree.md
@@ -0,0 +1,33 @@
+---
+title: "db_env_set_func_dirfree"
+api-name: "db_env_set_func_dirfree"
+source: docs/api_reference/C/db_env_set_func_dirfree.html
+---
+## db_env_set_func_dirfree
+
+``` c
+#include
+
+int
+db_env_set_func_dirfree(void (*func_dirfree)(char **namesp, int cnt));
+```
+
+The Berkeley DB library requires the ability to return any memory allocated as part of the routine which reads through a directory and creates a list of files that the directory contains (see db_env_set_func_dirlist ).
+
+The `db_env_set_func_dirfree()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_dirfree()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_dirfree()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_dirfree
+
+The **func_dirfree** parameter is a function which frees the memory returned from the db_env_set_func_dirlist function.
+
+The **namesp** and **cnt** parameters to this function are the same values as were returned by the db_env_set_func_dirlist function.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_dirlist.md b/docs-src/api/c/db_env_set_func_dirlist.md
new file mode 100644
index 000000000..3aaa1780b
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_dirlist.md
@@ -0,0 +1,36 @@
+---
+title: "db_env_set_func_dirlist"
+api-name: "db_env_set_func_dirlist"
+source: docs/api_reference/C/db_env_set_func_dirlist.html
+---
+## db_env_set_func_dirlist
+
+``` c
+#include
+
+int
+db_env_set_func_dirlist(int (*func_dirlist)(const char *dir,
+ char ***namesp, int *cntp));
+```
+
+The Berkeley DB library requires the ability to read through a directory and create a list of files that the directory contains.
+
+The db_env_set_func_dirlist method configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the db_env_set_func_dirlist method may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_dirlist()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_dirlist
+
+The **func_dirlist** parameter is the function which reads through a directory and returns a list of the files it contains.
+
+The **dir** parameter to this function is the name of the directory to be searched.
+
+The function must return a pointer to an array of nul-terminated file names into the memory location to which the **namesp** parameter refers, and a count of the number of elements in the array into the memory location to which **cntp** refers.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_exists.md b/docs-src/api/c/db_env_set_func_exists.md
new file mode 100644
index 000000000..bb00bf91e
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_exists.md
@@ -0,0 +1,38 @@
+---
+title: "db_env_set_func_exists"
+api-name: "db_env_set_func_exists"
+source: docs/api_reference/C/db_env_set_func_exists.html
+---
+## db_env_set_func_exists
+
+``` c
+#include
+
+int
+db_env_set_func_exists(int (*func_exists)(const char *path,
+ int *isdirp));
+```
+
+The Berkeley DB library requires the ability to determine whether a file exists and whether it is a file of type directory.
+
+The `db_env_set_func_exists()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_exists()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_exists()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_exists
+
+The **func_exists** parameter is the function which returns if a file exists and if it is a file of type directory.
+
+The **path** parameter to this function is the pathname of the file to be checked.
+
+If the **isdirp** parameter is non-NULL, it must be set to non-0 if **path** is a directory, and 0 if **path** is not a directory.
+
+The **func_exists** function must return the value of **errno** on failure and 0 on success.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_file_map.md b/docs-src/api/c/db_env_set_func_file_map.md
new file mode 100644
index 000000000..dd160bae9
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_file_map.md
@@ -0,0 +1,67 @@
+---
+title: "db_env_set_func_file_map"
+api-name: "db_env_set_func_file_map"
+source: docs/api_reference/C/db_env_set_func_file_map.html
+---
+## db_env_set_func_file_map
+
+``` c
+#include
+
+int
+db_env_set_func_file_map(int (*func_file_map)(DB_ENV *dbenv, char *path,
+ size_t len, int is_rdonly, void **addr),
+ int (*func_file_unmap)(DB_ENV *dbenv, void *addr));
+```
+
+The Berkeley DB library optionally uses the ability to map a file into memory.
+
+The `db_env_set_func_file_map()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_file_map()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_file_map()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_file_map
+
+The **func_file_map** parameter is the function which maps a file into memory. The function takes 5 parameters:
+
+- **dbenv**
+
+ The **dbenv** parameter is the enclosing database environment handle.
+
+- **path**
+
+ The **path** parameter is the name of file. Repeated requests for the mapping of the same name should return a reference to the same memory.
+
+- **len**
+
+ The **len** parameter is the length, in bytes, of the file.
+
+- **is_rdonly**
+
+ The **is_rdonly** parameter will be non-zero if the mapped file is read-only.
+
+- **addr**
+
+ The **addr** parameter is the memory location into which a pointer to the mapped file is returned.
+
+The **func_file_map** function must return the value of **errno** on failure and 0 on success.
+
+#### func_file_unmap
+
+The **func_file_unmap** parameter is the function which unmaps a file from memory. The function takes 2 parameters:
+
+- **dbenv**
+
+ The **dbenv** parameter is the enclosing database environment handle.
+
+- `addr`
+
+ The **addr** parameter is the value returned by the **func_file_map** function when the file or region was mapped into memory.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_free.md b/docs-src/api/c/db_env_set_func_free.md
new file mode 100644
index 000000000..ee88d9950
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_free.md
@@ -0,0 +1,31 @@
+---
+title: "db_env_set_func_free"
+api-name: "db_env_set_func_free"
+source: docs/api_reference/C/db_env_set_func_free.html
+---
+## db_env_set_func_free
+
+``` c
+#include
+
+int
+db_env_set_func_free(void (*func_free)(void *ptr));
+```
+
+Replace Berkeley DB calls to the ANSI C X3.159-1989 (ANSI C) standard **free** function with **func_free**, which must conform to the standard interface specification.
+
+The `db_env_set_func_free()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_free()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_free()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_free
+
+The **func_free** parameter is the replacement function. It must conform to the standard interface specification.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_fsync.md b/docs-src/api/c/db_env_set_func_fsync.md
new file mode 100644
index 000000000..aca6561bf
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_fsync.md
@@ -0,0 +1,31 @@
+---
+title: "db_env_set_func_fsync"
+api-name: "db_env_set_func_fsync"
+source: docs/api_reference/C/db_env_set_func_fsync.html
+---
+## db_env_set_func_fsync
+
+``` c
+#include
+
+int
+db_env_set_func_fsync(int (*func_fsync)(int fd));
+```
+
+Replace Berkeley DB calls to the IEEE/ANSI Std 1003.1 (POSIX) **fsync** function with **func_fsync**, which must conform to the standard interface specification.
+
+The `db_env_set_func_fsync()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_fsync()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_fsync` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_fsync
+
+The **func_fsync** parameter is the replacement function. It must conform to the standard interface specification.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_ftruncate.md b/docs-src/api/c/db_env_set_func_ftruncate.md
new file mode 100644
index 000000000..324015aa2
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_ftruncate.md
@@ -0,0 +1,37 @@
+---
+title: "db_env_set_func_ftruncate"
+api-name: "db_env_set_func_ftruncate"
+source: docs/api_reference/C/db_env_set_func_ftruncate.html
+---
+## db_env_set_func_ftruncate
+
+``` c
+#include
+
+int
+db_env_set_func_ftruncate(int (*func_ftruncate)(int fd, off_t offset));
+```
+
+The Berkeley DB library requires the ability to truncate a file.
+
+The `db_env_set_func_ftruncate` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_ftruncate` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_ftruncate()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_ftruncate
+
+The **func_ftruncate** parameter is the function which truncates a file.
+
+The **fd** parameter is an open file descriptor on the file.
+
+The **ftruncate** function must truncate the file to the byte length specified by the **offset** parameter.
+
+The **func_ftruncate** function must return the value of **errno** on failure and 0 on success.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_ioinfo.md b/docs-src/api/c/db_env_set_func_ioinfo.md
new file mode 100644
index 000000000..12dd1763b
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_ioinfo.md
@@ -0,0 +1,40 @@
+---
+title: "db_env_set_func_ioinfo"
+api-name: "db_env_set_func_ioinfo"
+source: docs/api_reference/C/db_env_set_func_ioinfo.html
+---
+## db_env_set_func_ioinfo
+
+``` c
+#include
+
+int
+db_env_set_func_ioinfo(int (*func_ioinfo)(const char *path,
+ int fd, u_int32_t *mbytesp, u_int32_t *bytesp, u_int32_t *iosizep));
+```
+
+The Berkeley DB library requires the ability to determine the size and I/O characteristics of a file.
+
+The `db_env_set_func_ioinfo()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_ioinfo()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_ioinfo()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_ioinfo
+
+The **func_ioinfo** parameter is the function which returns the size and I/O characteristics of a file.
+
+The **path** parameter is the pathname of the file to be checked, and the **fd** parameter is an open file descriptor on the file.
+
+If the **mbytesp** and **bytesp** parameters are non-NULL, the **ioinfo** function must return in them the size of the file: the number of megabytes in the file into the memory location to which the **mbytesp** parameter refers, and the number of bytes over and above that number of megabytes into the memory location to which the **bytesp** parameter refers.
+
+In addition, if the **iosizep** parameter is non-NULL, the **ioinfo** function must return the optimum granularity for I/O operations to the file into the memory location to which it refers.
+
+The **func_ioinfo** function must return the value of **errno** on failure and 0 on success.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_malloc.md b/docs-src/api/c/db_env_set_func_malloc.md
new file mode 100644
index 000000000..3dd0955c0
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_malloc.md
@@ -0,0 +1,31 @@
+---
+title: "db_env_set_func_malloc"
+api-name: "db_env_set_func_malloc"
+source: docs/api_reference/C/db_env_set_func_malloc.html
+---
+## db_env_set_func_malloc
+
+``` c
+#include
+
+int
+db_env_set_func_malloc(void *(*func_malloc)(size_t size));
+```
+
+Replace Berkeley DB calls to the ANSI C X3.159-1989 (ANSI C) standard **malloc** function with **func_malloc**, which must conform to the standard interface specification.
+
+The `db_env_set_func_malloc()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_malloc()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_malloc()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_malloc
+
+The **func_malloc** parameter is the replacement function. It must conform to the standard interface specification.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_open.md b/docs-src/api/c/db_env_set_func_open.md
new file mode 100644
index 000000000..aadd08787
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_open.md
@@ -0,0 +1,32 @@
+---
+title: "db_env_set_func_open"
+api-name: "db_env_set_func_open"
+source: docs/api_reference/C/db_env_set_func_open.html
+---
+## db_env_set_func_open
+
+``` c
+#include
+
+int
+db_env_set_func_open(int (*func_open)(const char *path, int flags,
+ int mode));
+```
+
+Replace Berkeley DB calls to the IEEE/ANSI Std 1003.1 (POSIX) **open** function with **func_open**, which must conform to the standard interface specification.
+
+The `db_env_set_func_open()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_open()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_open()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_open
+
+The **func_open** parameter is the replacement function. It must conform to the standard interface specification.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_pread.md b/docs-src/api/c/db_env_set_func_pread.md
new file mode 100644
index 000000000..cb9db63c7
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_pread.md
@@ -0,0 +1,32 @@
+---
+title: "db_env_set_func_pread"
+api-name: "db_env_set_func_pread"
+source: docs/api_reference/C/db_env_set_func_pread.html
+---
+## db_env_set_func_pread
+
+``` c
+#include
+
+int
+db_env_set_func_pread(ssize_t (*func_pread)(int fd, void *buf,
+ size_t nbytes, off_t offset));
+```
+
+Replace Berkeley DB calls to the IEEE/ANSI Std 1003.1 (POSIX) **pread** function with **func_pread**, which must conform to the standard interface specification.
+
+The `db_env_set_func_pread()` configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_pread()` may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_pread()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_pread
+
+The **func_pread** parameter is the replacement function. It must conform to the standard interface specification.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_pwrite.md b/docs-src/api/c/db_env_set_func_pwrite.md
new file mode 100644
index 000000000..ee381c5aa
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_pwrite.md
@@ -0,0 +1,32 @@
+---
+title: "db_env_set_func_pwrite"
+api-name: "db_env_set_func_pwrite"
+source: docs/api_reference/C/db_env_set_func_pwrite.html
+---
+## db_env_set_func_pwrite
+
+``` c
+#include
+
+int
+db_env_set_func_pwrite(ssize_t (*func_pwrite)(int fd, const void *buf,
+ size_t nbytes, off_t offset));
+```
+
+Replace Berkeley DB calls to the IEEE/ANSI Std 1003.1 (POSIX) **pwrite** function with **func_pwrite**, which must conform to the standard interface specification.
+
+The `db_env_set_func_pwrite()` configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_pwrite()` may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_pwrite()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_pwrite
+
+The **func_pwrite** parameter is the replacement function. It must conform to the standard interface specification.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_read.md b/docs-src/api/c/db_env_set_func_read.md
new file mode 100644
index 000000000..f671849d6
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_read.md
@@ -0,0 +1,32 @@
+---
+title: "db_env_set_func_read"
+api-name: "db_env_set_func_read"
+source: docs/api_reference/C/db_env_set_func_read.html
+---
+## db_env_set_func_read
+
+``` c
+#include
+
+int
+db_env_set_func_read(ssize_t (*func_read)(int fd, void *buf,
+ size_t nbytes));
+```
+
+Replace Berkeley DB calls to the IEEE/ANSI Std 1003.1 (POSIX) **read** function with **func_read**, which must conform to the standard interface specification.
+
+The `db_env_set_func_read()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_read()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_read()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_read
+
+The **func_read** parameter is the replacement function. It must conform to the standard interface specification.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_realloc.md b/docs-src/api/c/db_env_set_func_realloc.md
new file mode 100644
index 000000000..7c55f50f7
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_realloc.md
@@ -0,0 +1,31 @@
+---
+title: "db_env_set_func_realloc"
+api-name: "db_env_set_func_realloc"
+source: docs/api_reference/C/db_env_set_func_realloc.html
+---
+## db_env_set_func_realloc
+
+``` c
+#include
+
+int
+db_env_set_func_realloc(void *(*func_realloc)(void *ptr, size_t size));
+```
+
+Replace Berkeley DB calls to the ANSI C X3.159-1989 (ANSI C) standard **realloc** function with **func_realloc**, which must conform to the standard interface specification.
+
+The `db_env_set_func_realloc()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_realloc()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_realloc()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_realloc
+
+The **func_realloc** parameter is the replacement function. It must conform to the standard interface specification.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_region_map.md b/docs-src/api/c/db_env_set_func_region_map.md
new file mode 100644
index 000000000..63c83aae8
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_region_map.md
@@ -0,0 +1,65 @@
+---
+title: "db_env_set_func_region_map"
+api-name: "db_env_set_func_region_map"
+source: docs/api_reference/C/db_env_set_func_region_map.html
+---
+## db_env_set_func_region_map
+
+``` c
+#include
+
+int
+db_env_set_func_region_map(int (*func_region_map)(DB_ENV *dbenv,
+ char *path, size_t len, int *is_create, void **addr),
+ int (*func_region_unmap)(DB_ENV *dbenv, void *addr));
+```
+
+The Berkeley DB library optionally uses the ability to create shared memory regions (which may or may not be backed by physical files). The memory will be used as a shared memory region for synchronization between Berkeley DB threads/processes; while the returned memory may be of any kind (for example, anonymous memory), it must be able to support semaphores.
+
+The `db_env_set_func_region_map()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_region_map()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_region_map()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_region_map
+
+The **func_region_map** parameter is the function which creates shared memory regions. The function takes 5 parameters:
+
+- **dbenv**
+
+ The **dbenv** parameter is the enclosing database environment handle. This handle is provided to uniquely identify a shared memory region: the **dbenv** parameter and the path are a unique identifier pair for mapping any new region, and the **dbenv** parameter and the address are a unique identifier pair for unmapping any region.
+
+- **path**
+
+ The **path** parameter is the name of the region. Repeated requests for the shared regions of the same name, in the same database environment, should return a reference to the same memory.
+
+- **len**
+
+ The **len** parameter is the length, in bytes, needed for the region.
+
+- **is_create**
+
+ The memory referenced by the **is_create** parameter will be non-zero if flags to Berkeley DB allowed creation of the mapped region; the memory referenced by the **is_create** parameter must be set to non-zero if the region is created by the **func_region_map** function, and set to zero if the region is not created by the function. This returned information will determine if the region is subsequently initialized by Berkeley DB.
+
+- **addr**
+
+ The **addr** parameter is the memory location into which a pointer to the region or mapped file is returned.
+
+#### func_region_unmap
+
+The **func_region_unmap** parameter is the function which unmaps a shared memory region. The function takes 2 parameters:
+
+- **dbenv**
+
+ The **dbenv** parameter is the enclosing database environment handle.
+
+- **addr**
+
+ The **addr** parameter is the value returned by the **func_region_map** function when the region was mapped into memory.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_rename.md b/docs-src/api/c/db_env_set_func_rename.md
new file mode 100644
index 000000000..76aa2656f
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_rename.md
@@ -0,0 +1,32 @@
+---
+title: "db_env_set_func_rename"
+api-name: "db_env_set_func_rename"
+source: docs/api_reference/C/db_env_set_func_rename.html
+---
+## db_env_set_func_rename
+
+``` c
+#include
+
+int
+db_env_set_func_rename(int (*func_rename)(const char *from,
+ const char *to));
+```
+
+Replace Berkeley DB calls to the IEEE/ANSI Std 1003.1 (POSIX) **rename** function with **func_rename**, which must conform to the standard interface specification.
+
+The `db_env_set_func_rename()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_rename()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_rename()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_rename
+
+The **func_rename** parameter is the replacement function. It must conform to the standard interface specification.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_seek.md b/docs-src/api/c/db_env_set_func_seek.md
new file mode 100644
index 000000000..20c0e1860
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_seek.md
@@ -0,0 +1,39 @@
+---
+title: "db_env_set_func_seek"
+api-name: "db_env_set_func_seek"
+source: docs/api_reference/C/db_env_set_func_seek.html
+---
+## db_env_set_func_seek
+
+``` c
+#include
+
+int
+db_env_set_func_seek(int (*func_seek)(int fd, off_t offset, int whence));
+```
+
+The Berkeley DB library requires the ability to specify that a subsequent read from or write to a file will occur at a specific location in that file.
+
+The `db_env_set_func_seek()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_seek()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_seek()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_seek
+
+The **func_seek** parameter is the function which seeks to a specific location in a file.
+
+The **fd** parameter is an open file descriptor on the file.
+
+The **seek** function must cause a subsequent read from or write to the file to occur at the byte offset specified by the **offset** parameter.
+
+The **whence** parameter specifies where in the file the byte offset is relative to, as described by the IEEE/ANSI Std 1003.1 (POSIX) **lseek** system call.
+
+The **func_seek** function must return the value of **errno** on failure and 0 on success.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_unlink.md b/docs-src/api/c/db_env_set_func_unlink.md
new file mode 100644
index 000000000..63f0f814c
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_unlink.md
@@ -0,0 +1,31 @@
+---
+title: "db_env_set_func_unlink"
+api-name: "db_env_set_func_unlink"
+source: docs/api_reference/C/db_env_set_func_unlink.html
+---
+## db_env_set_func_unlink
+
+``` c
+#include
+
+int
+db_env_set_func_unlink(int (*func_unlink)(const char *path));
+```
+
+Replace Berkeley DB calls to the IEEE/ANSI Std 1003.1 (POSIX) **unlink** function with **func_unlink**, which must conform to the standard interface specification.
+
+The `db_env_set_func_unlink()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_unlink()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_unlink()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_unlink
+
+The **func_unlink** parameter is the replacement function. It must conform to the standard interface specification.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_write.md b/docs-src/api/c/db_env_set_func_write.md
new file mode 100644
index 000000000..6ef74ab50
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_write.md
@@ -0,0 +1,32 @@
+---
+title: "db_env_set_func_write"
+api-name: "db_env_set_func_write"
+source: docs/api_reference/C/db_env_set_func_write.html
+---
+## db_env_set_func_write
+
+``` c
+#include
+
+int
+db_env_set_func_write(ssize_t (*func_write)(int fd, const void *buffer,
+ size_t nbytes));
+```
+
+Replace Berkeley DB calls to the IEEE/ANSI Std 1003.1 (POSIX) **write** function with **func_write**, which must conform to the standard interface specification.
+
+The `db_env_set_func_write()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_write()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_write()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_write
+
+The **func_write** parameter is the replacement function. It must conform to the standard interface specification.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_env_set_func_yield.md b/docs-src/api/c/db_env_set_func_yield.md
new file mode 100644
index 000000000..ac8f45c60
--- /dev/null
+++ b/docs-src/api/c/db_env_set_func_yield.md
@@ -0,0 +1,39 @@
+---
+title: "db_env_set_func_yield"
+api-name: "db_env_set_func_yield"
+source: docs/api_reference/C/db_env_set_func_yield.html
+---
+## db_env_set_func_yield
+
+``` c
+#include
+
+int
+db_env_set_func_yield(int (*func_yield)(u_long secs, u_long usecs));
+```
+
+The Berkeley DB library requires the ability to yield the processor from the current thread of control to any other waiting threads of control.
+
+The **func_yield** function must be able to cause the rescheduling of all participants in the current Berkeley DB environment, whether threaded or not. It may be incorrect to supply a thread **yield** function if more than a single process is operating in the Berkeley DB environment. This is because many thread-yield functions will not allow other processes to run, and the contested lock may be held by another process, not by another thread.
+
+The `db_env_set_func_yield()` function configures all operations performed by a process and all of its threads of control, not operations confined to a single database environment.
+
+Although the `db_env_set_func_yield()` function may be called at any time during the life of the application, it should normally be called before making calls to the db_env_create or db_create methods.
+
+The `db_env_set_func_yield()` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### func_yield
+
+The **func_yield** parameter is the function which yields the processor.
+
+The **secs** parameter is the number of seconds to pause before the thread of control should run again, or 0.
+
+The **usecs** parameter is the number of microseconds to pause before the thread of control should run again, or 0.
+
+The **func_yield** function must return the value of **errno** on failure and 0 on success.
+
+### See Also
+
+Run-time configuration
diff --git a/docs-src/api/c/db_heap_rid.md b/docs-src/api/c/db_heap_rid.md
new file mode 100644
index 000000000..fc3944c6f
--- /dev/null
+++ b/docs-src/api/c/db_heap_rid.md
@@ -0,0 +1,33 @@
+---
+title: "DB_HEAP_RID"
+api-name: "DB_HEAP_RID"
+source: docs/api_reference/C/db_heap_rid.html
+---
+## DB_HEAP_RID
+
+``` c
+#include
+
+struct __db_heap_rid {
+ db_pgno_t pgno; /* Page number. */
+ db_indx_t indx; /* Index in the offset table. */
+};
+```
+
+Content used for the key in a Heap database record. Berkeley DB creates this structure for you when you create a record in a Heap database. You should never create this structure or modify the contents of this structure yourself; Berkeley DB must create and manage it for you.
+
+This structure is returned in the **key** DBT parameter of the method that you use to add a record to the Heap database.
+
+### Parameters
+
+#### pgno
+
+The database page number where the record is stored.
+
+#### indx
+
+Index in the offset table where the record can be found.
+
+### See Also
+
+Database and Related Methods ,
diff --git a/docs-src/api/c/db_hotbackup.md b/docs-src/api/c/db_hotbackup.md
new file mode 100644
index 000000000..6878a2a0e
--- /dev/null
+++ b/docs-src/api/c/db_hotbackup.md
@@ -0,0 +1,111 @@
+---
+title: "db_hotbackup"
+api-name: "db_hotbackup"
+source: docs/api_reference/C/db_hotbackup.html
+---
+## db_hotbackup
+
+``` c
+db_hotbackup [-cDEguVv] [-d data_dir ...] [-h home]
+ [-l log_dir] [-P password] -b backup_dir
+```
+
+The **db_hotbackup** utility creates "hot backup" or "hot failover" snapshots of Berkeley DB database environments. Hot backups can also be performed using the DB_ENV->backup() or DB_ENV->dbbackup() methods.
+
+The **db_hotbackup** utility performs the following steps:
+
+1. Sets the DB_HOTBACKUP_IN_PROGRESS flag in the home database environment.
+
+2. If the **-c** option is specified, checkpoint the source home database environment, and remove any unnecessary log files.
+
+3. If the target directory for the backup does not exist, it is created with mode read-write-execute for the owner.
+
+ If the target directory for the backup does exist and the **-u** option was specified, all log files in the target directory are removed; if the **-u** option was not specified, all files in the target directory are removed.
+
+4. If the **-u** option was not specified, copy application-specific files found in the database environment home directory, and any directories specified using the **-d** option, into the target directory for the backup.
+
+5. Copy all log files found in the directory specified by the **-l** option (or in the database environment home directory, if no **-l** option was specified), into the target directory for the backup.
+
+6. Perform catastrophic recovery in the target directory for the backup.
+
+7. Remove any unnecessary log files from the target directory for the backup.
+
+8. Reset the DB_HOTBACKUP_IN_PROGRESS flag in the environment.
+
+The **db_hotbackup** utility does not resolve pending transactions that are in the prepared state. Applications that use DB_TXN->prepare() must specify DB_RECOVER_FATAL when opening the environment, and run DB_ENV->txn_recover() to resolve any pending transactions, when failing over to the backup.
+
+The options are as follows:
+
+- **-b**
+
+ Specify the target directory for the backup.
+
+- **-c**
+
+ Before performing the backup, checkpoint the source database environment and remove any log files that are no longer required in that environment. **To avoid making catastrophic recovery impossible, log file removal must be integrated with log file archival.**
+
+- **-D**
+
+ Use the data and log directories listed in a DB_CONFIG configuration file in the source directory. This option has four effects:
+
+ - The specified data and log directories will be created relative to the target directory, with mode read-write-execute owner, if they do not already exist.
+
+ - In step \#3 above, all files in any source data directories specified in the DB_CONFIG file will be copied to the target data directories.
+
+ - In step \#4 above, log files will be copied from any log directory specified in the DB_CONFIG file, instead of from the default locations.
+
+ - The DB_CONFIG configuration file will be copied from the source directory to the target directory, and subsequently used for configuration if recovery is run in the target directory.
+
+ Care should be taken with the **-D** option where data and log directories are named relative to the source directory but are not subdirectories (that is, the name includes the element "..") Specifically, the constructed target directory names must be meaningful and distinct from the source directory names, otherwise running recovery in the target directory might corrupt the source data files.
+
+ **It is an error to use absolute pathnames for data or log directories in this mode, as the DB_CONFIG configuration file copied into the target directory would then point at the source directories and running recovery would corrupt the source data files.**
+
+- **-d**
+
+ Specify one or more directories that contain data files to be copied to the target directory.
+
+ **As all database files are copied into a single target directory, files named the same, stored in different source directories, would overwrite each other when copied to the target directory.**
+
+ Please note the database environment recovery log references database files as they are named by the application program. **If the application uses absolute or relative pathnames to name database files, (rather than filenames and the DB_ENV->set_data_dir() method or the DB_CONFIG configuration file to specify filenames), running recovery in the target directory may not properly find the copies of the files or might even find the source files, potentially resulting in corruption.**
+
+- **-F**
+
+ Directly copy from the filesystem. This option can **CORRUPT** the backup if used while the environment is active and the operating system does not support atomic file system reads. This option is known to be safe only on UNIX systems, not Linux or Windows systems.
+
+- **-g**
+
+ Turn on debugging options. In particular this will leave the log files in the backup directory after running recovery.
+
+- **-h**
+
+ Specify the source directory for the backup. That is, the database environment home directory.
+
+- **-l**
+
+ Specify a source directory that contains log files; if none is specified, the database environment home directory will be searched for log files. If a relative path is specified, the path is evaluated relative to the home directory.
+
+- **-P**
+
+ Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.
+
+- **-u**
+
+ Update a pre-existing hot backup snapshot by copying in new log files. If the **-u** option is specified, no databases will be copied into the target directory. If applications that update the environment are using the transactional bulk insert optimization, this option must be used with special care. For more information, see the section on Hot Backup in the *Getting Started With Transaction Processing Guide* .
+
+- **-V**
+
+ Write the library version number to the standard output, and exit.
+
+- **-v**
+
+ Run in verbose mode, listing operations as they are done.
+
+The **db_hotbackup** utility uses a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, **db_hotbackup** should always be given the chance to detach from the environment and exit gracefully. To cause **db_hotbackup** to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).
+
+The **db_hotbackup** utility exits 0 on success, and \>0 if an error occurs.
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
diff --git a/docs-src/api/c/db_load.md b/docs-src/api/c/db_load.md
new file mode 100644
index 000000000..42a22bda5
--- /dev/null
+++ b/docs-src/api/c/db_load.md
@@ -0,0 +1,173 @@
+---
+title: "db_load"
+api-name: "db_load"
+source: docs/api_reference/C/db_load.html
+---
+## db_load
+
+``` c
+db_load [-nTV] [-b blob_dir] [-c name=value] [-f file]
+ [-h home] [-P password] [-o blob_threshold]
+ [-t btree | hash | queue | recno] file
+
+db_load [-r lsn | fileid] [-h home] [-P password] file
+```
+
+The **db_load** utility reads from the standard input and loads it into the database **file**. The database **file** is created if it does not already exist.
+
+The input to **db_load** must be in the output format specified by the db_dump utility or as specified by the **-T** option below.
+
+The options are as follows:
+
+- **-b**
+
+ Identifies the directory where BLOB data is stored. If this option is not specified, then BLOB data is placed in a subdirectory within the DB's environment. See also the **-o** option.
+
+- **-c**
+
+ Specify configuration options ignoring any value they may have based on the input. The command-line format is **name=value**. See the Supported Keywords section below for a list of keywords supported by the **-c** option.
+
+- **-f**
+
+ Read from the specified **input** file instead of from the standard input.
+
+- **-h**
+
+ Specify a home directory for the database environment.
+
+ If a home directory is specified, the database environment is opened using the DB_INIT_LOCK , DB_INIT_LOG , DB_INIT_MPOOL , DB_INIT_TXN , and DB_USE_ENVIRON flags to DB_ENV->open() (This means that **db_load** can be used to load data into databases while they are in use by other processes.) If the DB_ENV->open() call fails, or if no home directory is specified, the database is still updated, but the environment is ignored; for example, no locking is done.
+
+- **-n**
+
+ Do not overwrite existing keys in the database when loading into an already existing database. If a key/data pair cannot be loaded into the database for this reason, a warning message is displayed on the standard error output, and the key/data pair are skipped.
+
+- **-o**
+
+ Identifies the BLOB threshold in bytes. This threshold determines when a data item will be stored as a BLOB. Data items sized less than this threshold are stored as normal data within the database. Data items larger than this size are stored on-disk in a subdirectory set aside for the purpose. Use the **-b** command line option to identify where BLOB data is stored.
+
+- **-P**
+
+ Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.
+
+- **-r**
+
+ Reset the database's file ID or log sequence numbers (LSNs).
+
+ All database pages in transactional environments contain references to the environment's log records. In order to copy a database into a different database environment, database page references to the old environment's log records must be reset, otherwise data corruption can occur when the database is modified in the new environment. The **-r** **lsn** option resets a database's log sequence numbers.
+
+ All databases contain an ID string used to identify the database in the database environment cache. If a database is copied, and used in the same environment as another file with the same ID string, corruption can occur. The **-r** **fileid** option resets a database's file ID to a new value.
+
+ **In both cases, the physical file specified by the ****file** argument is modified in-place.****
+
+- **-T**
+
+ The **-T** option allows non-Berkeley DB applications to easily load text files into databases.
+
+ If the database to be created is of type Btree or Hash, or the keyword **keys** is specified as set, the input must be paired lines of text, where the first line of the pair is the key item, and the second line of the pair is its corresponding data item. If the database to be created is of type Queue or Recno and the keyword **keys** is not set, the input must be lines of text, where each line is a new data item for the database.
+
+ A simple escape mechanism, where newline and backslash (\\ characters are special, is applied to the text input. Newline characters are interpreted as record separators. Backslash characters in the text will be interpreted in one of two ways: If the backslash character precedes another backslash character, the pair will be interpreted as a literal backslash. If the backslash character precedes any other character, the two characters following the backslash will be interpreted as a hexadecimal specification of a single character; for example, \0a is a newline character in the ASCII character set.
+
+ For this reason, any backslash or newline characters that naturally occur in the text input must be escaped to avoid misinterpretation by **db_load** .
+
+ If the **-T** option is specified, the underlying access method type must be specified using the **-t** option.
+
+- **-t**
+
+ Specify the underlying access method. If no **-t** option is specified, the database will be loaded into a database of the same type as was dumped; for example, a Hash database will be created if a Hash database was dumped.
+
+ Btree and Hash databases may be converted from one to the other. Queue and Recno databases may be converted from one to the other. If the **-k** option was specified on the call to db_dump then Queue and Recno databases may be converted to Btree or Hash, with the key being the integer record number.
+
+- **-V**
+
+ Write the library version number to the standard output, and exit.
+
+The **db_load** utility may be used with a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, **db_load** should always be given the chance to detach from the environment and exit gracefully. To cause **db_load** to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).
+
+The **db_load** utility exits 0 on success, 1 if one or more key/data pairs were not loaded into the database because the key already existed, and \>1 if an error occurs.
+
+### Examples
+
+The **db_load** utility can be used to load text files into databases. For example, the following command loads the standard UNIX */etc/passwd* file into a database, with the login name as the key item and the entire password entry as the data item:
+
+``` c
+ awk -F: '{print $1; print $0}' < /etc/passwd |
+ sed 's/\\/\\\\/g' | db_load -T -t hash passwd.db
+```
+
+Note that backslash characters naturally occurring in the text are escaped to avoid interpretation as escape characters by **db_load** .
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
+
+### Supported Keywords
+
+The following keywords are supported for the **-c** command-line option to the **db_load** utility. See the DB_ENV->open() method for further discussion of these keywords and what values should be specified.
+
+The parenthetical listing specifies how the value part of the **name=value** pair is interpreted. Items listed as (boolean) expect value to be **1** (set) or **0** (unset). Items listed as (number) convert value to a number. Items listed as (string) use the string value without modification.
+
+- **bt_minkey (number)**
+
+ The minimum number of keys per page.
+
+- **chksum (boolean)**
+
+ Enable page checksums.
+
+- **database (string)**
+
+ The database to load.
+
+- **db_lorder (number)**
+
+ The byte order for integers in the stored database metadata. For big endian systems, the order should be 4,321 while for little endian systems is should be 1,234.
+
+- **db_pagesize (number)**
+
+ The size of database pages, in bytes.
+
+- **duplicates (boolean)**
+
+ The value of the DB_DUP flag.
+
+- **dupsort (boolean)**
+
+ The value of the DB_DUPSORT flag.
+
+- **extentsize (number)**
+
+ The size of database extents, in pages, for Queue databases configured to use extents.
+
+- **h_ffactor (number)**
+
+ The density within the Hash database.
+
+- **h_nelem (number)**
+
+ The size of the Hash database.
+
+- **keys (boolean)**
+
+ Specify whether keys are present for Queue or Recno databases.
+
+- **re_len (number)**
+
+ Specify the length for fixed-length records. This number represents different things, depending on the access method the database is using. See the DB->set_re_len() method for details on what this number represents.
+
+- **re_pad (string)**
+
+ Specify the fixed-length record pad character.
+
+- **recnum (boolean)**
+
+ The value of the DB_RECNUM flag.
+
+- **renumber (boolean)**
+
+ The value of the DB_RENUMBER flag.
+
+- **subdatabase (string)**
+
+ The subdatabase to load.
diff --git a/docs-src/api/c/db_log_verify.md b/docs-src/api/c/db_log_verify.md
new file mode 100644
index 000000000..40cb41ae3
--- /dev/null
+++ b/docs-src/api/c/db_log_verify.md
@@ -0,0 +1,98 @@
+---
+title: "db_log_verify"
+api-name: "db_log_verify"
+source: docs/api_reference/C/db_log_verify.html
+---
+## db_log_verify
+
+``` c
+
+
+ db_log_verify [-cNvV] [-h home to verify] [-H temporary home]
+ [-P password] [-C cache size]
+ [-b start lsn] [-e end lsn] [-s start time] [-z end time]
+ [-d database file name] [-D database name]
+
+```
+
+The **db_log_verify** utility verifies the log files of a specific database environment. This utility verifies a specific range of log records, or changed log records of a specific database.
+
+### Note
+
+If the application(s) that use the environment make use of the DB_ENV->set_lg_dir() method, then in order for this utility to run correctly, you need a DB_CONFIG file which sets the proper paths using the set_lg_dir configuration parameter.
+
+The options are as follows:
+
+- **-C**
+
+ Specify the cache size (in megabytes) of the temporary database environment internally used during the log verification.
+
+- **-b**
+
+ Specify the starting log record (by lsn) to verify.
+
+- **-c**
+
+ Specify whether to continue the verification after an error is detected. If not specified, the verification stops when the first error is detected.
+
+- **-D**
+
+ Specify a database name. Only log records related to this database are verified.
+
+- **-d**
+
+ Specify a database file name. Only log records related this database file are verified.
+
+- **-e**
+
+ Specify the ending log record by lsn.
+
+- **-h**
+
+ Specify a home directory of the database environment whose log is to be verified.
+
+- **-H**
+
+ Specify a home directory for this utility to create a temporarily database environment to store runtime data during the verification.
+
+ It is an error to specify the same directory as the -h option. If this directory is not specified, all temporary databases created during the verification will be in-memory, which is not a problem if the log files to verify are not huge.
+
+- **-N**
+
+ Do not acquire shared region mutexes while running. Other problems, such as potentially fatal errors in Berkeley DB, are ignored as well. This option is intended only for debugging errors, and should not be used under any other circumstances.
+
+- **-P**
+
+ Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.
+
+- **-s**
+
+ Specify the starting log record by time. The time range specified is not precise because the lsn of the most recent time point is used as the starting lsn.
+
+- **-V**
+
+ Write the library version number to the standard output and exit.
+
+- **-v**
+
+ Enable verbose mode to display verbose output during the verification process.
+
+- **-z**
+
+ Specify the ending log record by time. The time range specified is not precise because the lsn of the most recent time point is used as the ending lsn.
+
+To specify a range of log records, you must provide either an lsn range or a time range. You can neither specify both nor specify an lsn and a time as a range.
+
+If the log footprint is over several megabytes, specify a home directory and a big cache size for log verification internal use. Else, the process' private memory may be exhausted before the verification completes.
+
+The **db_log_verify** utility does not perform the locking function, even in Berkeley DB environments that are configured with a locking subsystem. All errors are written to stderr, and all normal and verbose messages are written to stdout.
+
+The **db_log_verify** utility can be used with a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**). To avoid environment corruption when using a Berkeley DB environment, **db_log_verify** must be given the chance to detach from the environment and exit gracefully. For the **db_log_verify** utility to release all environment resources and exit, send an interrupt signal (SIGINT) to it.
+
+The **db_log_verify** utility returns a non-zero error value on failure and 0 on success.
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
diff --git a/docs-src/api/c/db_printlog.md b/docs-src/api/c/db_printlog.md
new file mode 100644
index 000000000..96ccb81bd
--- /dev/null
+++ b/docs-src/api/c/db_printlog.md
@@ -0,0 +1,63 @@
+---
+title: "db_printlog"
+api-name: "db_printlog"
+source: docs/api_reference/C/db_printlog.html
+---
+## db_printlog
+
+``` c
+db_printlog [-NrV] [-b start-LSN] [-e stop-LSN] [-h home] [-P password]
+ [-D bytes]
+```
+
+The **db_printlog** utility is a debugging utility that dumps Berkeley DB log files in a human-readable format.
+
+### Note
+
+If the application(s) that use the environment make use of the DB_ENV->set_lg_dir() method, then in order for this utility to run correctly, you need a DB_CONFIG file which sets the proper paths using the set_lg_dir configuration parameter.
+
+The options are as follows:
+
+- **-b**
+
+ Display log records starting at log sequence number (LSN) **start-LSN**; **start-LSN** is specified as a file number, followed by a slash (/) character, followed by an offset number, with no intervening whitespace.
+
+- **-D**
+
+ Specifies the maximum number of bytes to display for each key/data item found in the log. This option overrides the "set_data_len" parameter found in your DB_CONFIG file, if any.
+
+- **-e**
+
+ Stop displaying log records at log sequence number (LSN) **stop-LSN**; **stop-LSN** is specified as a file number, followed by a slash (/) character, followed by an offset number, with no intervening whitespace.
+
+- **-h**
+
+ Specify a home directory for the database environment; by default, the current working directory is used.
+
+- **-N**
+
+ Do not acquire shared region mutexes while running. Other problems, such as potentially fatal errors in Berkeley DB, will be ignored as well. This option is intended only for debugging errors, and should not be used under any other circumstances.
+
+- **-P**
+
+ Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.
+
+- **-r**
+
+ Read the log files in reverse order.
+
+- **-V**
+
+ Write the library version number to the standard output, and exit.
+
+For more information on the **db_printlog** output and using it to debug applications, see Reviewing Berkeley DB log files .
+
+The **db_printlog** utility uses a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, **db_printlog** should always be given the chance to detach from the environment and exit gracefully. To cause **db_printlog** to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).
+
+The **db_printlog** utility exits 0 on success, and \>0 if an error occurs.
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
diff --git a/docs-src/api/c/db_recover.md b/docs-src/api/c/db_recover.md
new file mode 100644
index 000000000..4eff21c50
--- /dev/null
+++ b/docs-src/api/c/db_recover.md
@@ -0,0 +1,106 @@
+---
+title: "db_recover"
+api-name: "db_recover"
+source: docs/api_reference/C/db_recover.html
+---
+## db_recover
+
+``` c
+db_recover [-cefVv] [-h home] [-P password] [-t [[CC]YY]MMDDhhmm[.SS]]]
+```
+
+The **db_recover** utility must be run after an unexpected application, Berkeley DB, or system failure to restore the database to a consistent state. All committed transactions are guaranteed to appear after **db_recover** has run, and all uncommitted transactions will be completely undone.
+
+Note that this utility performs the same action as if the environment is opened with the DB_RECOVER flag. If `DB_RECOVER` is specified on environment open, then use of this utility is not necessary.
+
+### Note
+
+If the application(s) that use the environment make use of any of the following methods:
+
+| |
+|----|
+| DB_ENV->add_data_dir() |
+| DB_ENV->set_data_dir() |
+| DB_ENV->set_lg_dir() |
+
+then in order for this utility to run correctly, you need a DB_CONFIG file which sets the proper paths using the add_data_dir , or set_lg_dir configuration parameters.
+
+The options are as follows:
+
+- **-c**
+
+ Perform catastrophic recovery instead of normal recovery.
+
+- **-e**
+
+ Retain the environment after running recovery. This option will rarely be used unless a DB_CONFIG file is present in the home directory. If a DB_CONFIG file is not present, then the regions will be created with default parameter values.
+
+- **-f**
+
+ Display a message on the standard output showing the percent of recovery completed.
+
+- **-h**
+
+ Specify a home directory for the database environment; by default, the current working directory is used.
+
+- **-P**
+
+ Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.
+
+- **-t**
+
+ Recover to the time specified rather than to the most current possible date. The timestamp argument should be in the form `[[CC]YY]MMDDhhmm[.SS]` where each pair of letters represents the following:
+
+ - **CC**
+
+ The first two digits of the year (the century).
+
+ - **YY**
+
+ The second two digits of the year. If "YY" is specified, but "CC" is not, a value for "YY" between 69 and 99 results in a "CC" value of 19. Otherwise, a "CC" value of 20 is used.
+
+ - **MM**
+
+ The month of the year, from 1 to 12.
+
+ - **DD**
+
+ The day of the month, from 1 to 31.
+
+ - **hh**
+
+ The hour of the day, from 0 to 23.
+
+ - **mm**
+
+ The minute of the hour, from 0 to 59.
+
+ - **SS**
+
+ The second of the minute, from 0 to 61.
+
+ If the "CC" and "YY" letter pairs are not specified, the values default to the current year. If the "SS" letter pair is not specified, the value defaults to 0.
+
+- **-V**
+
+ Write the library version number to the standard output, and exit.
+
+- **-v**
+
+ Run in verbose mode.
+
+In the case of catastrophic recovery, an archival copy — or *snapshot* — of all database files must be restored along with all of the log files written since the database file snapshot was made. (If disk space is a problem, log files may be referenced by symbolic links). For further information on creating a database snapshot, see Archival Procedures . For further information on performing recovery, see Recovery Procedures .
+
+If the failure was not catastrophic, the files present on the system at the time of failure are sufficient to perform recovery.
+
+If log files are missing, **db_recover** will identify the missing log file(s) and fail, in which case the missing log files need to be restored and recovery performed again.
+
+The **db_recover** utility uses a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, **db_recover** should always be given the chance to detach from the environment and exit gracefully. To cause **db_recover** to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).
+
+The **db_recover** utility exits 0 on success, and \>0 if an error occurs.
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
diff --git a/docs-src/api/c/db_replicate.md b/docs-src/api/c/db_replicate.md
new file mode 100644
index 000000000..fef8692d1
--- /dev/null
+++ b/docs-src/api/c/db_replicate.md
@@ -0,0 +1,69 @@
+---
+title: "db_replicate"
+api-name: "db_replicate"
+source: docs/api_reference/C/db_replicate.html
+---
+## db_replicate
+
+``` c
+db_replicate [-MVv] [-h home]
+ [-L file] [-P password] [-T num_threads] [-t secs]
+```
+
+The **db_replicate** utility is a daemon process that provides replication/HA services on a transactional environment. This utility enables you to upgrade an existing Transactional Data Store application to an HA application with minor modifications. For more information on the db_replicate utility, see the Running Replication Using the db_replicate Utility section in the *Berkeley DB Programmer's Reference Guide.*
+
+### Note
+
+This utility is not supported for use with the DB SQL APIs.
+
+The options are as follows:
+
+- **-h**
+
+ Specify a home directory for the database environment; by default, the current working directory is used.
+
+- **-L**
+
+ Log the execution of the **db_replicate** utility to the specified file in the following format, where *\###* is the process ID, and the date is the time the utility was started.
+
+ ``` c
+ db_replicate: ### Wed Jun 15 01:23:45 EDT 1995
+ ```
+
+ Additionally, events such as site role changes will be noted in the log file. This file will be removed if the **db_replicate** utility exits gracefully.
+
+- **-M**
+
+ Start the **db_replicate** utility to be the master site of the replication group. Otherwise, the site will be started as a client replica.
+
+- **-P**
+
+ Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.
+
+- **-T**
+
+ Specify the number of replication message processing threads.
+
+- **-t**
+
+ Specify how often (in seconds) the utility will check for program interruption and resend the last log record.
+
+- **-V**
+
+ Write the library version number to the standard output, and exit.
+
+- **-v**
+
+ Turn on replication verbose messages. These messages will be written to the standard output and will be quite voluminous.
+
+The **db_replicate** utility uses a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, **db_replicate** should always be given the chance to detach from the environment and exit gracefully. To cause **db_replicate** to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).
+
+The **db_replicate** utility does not attempt to create the Berkeley DB shared memory regions if they do not already exist. The application that creates the region should be started first, and once the region is created, the **db_replicate** utility should be started. The application must use the DB_INIT_REP and DB_THREAD flags when creating the environment.
+
+The **db_replicate** utility exits 0 on success, and \>0 if an error occurs.
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
diff --git a/docs-src/api/c/db_site.md b/docs-src/api/c/db_site.md
new file mode 100644
index 000000000..9577ddf71
--- /dev/null
+++ b/docs-src/api/c/db_site.md
@@ -0,0 +1,8 @@
+---
+title: "The DB_SITE Handle"
+api-name: "The DB_SITE Handle"
+source: docs/api_reference/C/db_site.html
+---
+## The DB_SITE Handle
+
+The DB_SITE handle is used by Replication Manager applications to manage and configure replication sites. You create a DB_SITE handle using the DB_ENV->repmgr_site() , DB_ENV->repmgr_site_by_eid() , or DB_ENV->repmgr_local_site() , methods. All DB_SITE handles must be closed before closing DB_ENV handles. Use the DB_SITE->close() method to close a DB_SITE handle.
diff --git a/docs-src/api/c/db_sql_codegen.md b/docs-src/api/c/db_sql_codegen.md
new file mode 100644
index 000000000..866d38e24
--- /dev/null
+++ b/docs-src/api/c/db_sql_codegen.md
@@ -0,0 +1,265 @@
+---
+title: "db_sql_codegen"
+api-name: "db_sql_codegen"
+source: docs/api_reference/C/db_sql_codegen.html
+---
+## db_sql_codegen
+
+``` c
+db_sql_codegen [-i ] [-o ]
+ [-h ] [-t ]
+```
+
+**Db_sql_codegen** is a utility program that translates a schema description written in a SQL Data Definition Language dialect into C code that implements the schema using Berkeley DB. It is intended to provide a quick and easy means of getting started with Berkeley DB for users who are already conversant with SQL. It also introduces a convenient way to express a Berkeley DB schema in a format that is both external to the program that uses it and compatible with relational databases.
+
+The **db_sql_codegen** command reads DDL from an input stream, and writes C code to an output stream. With no command line options, it will read from stdin and write to stdout. A more common usage mode would be to supply the DDL in a named input file (-i option). With only the -i option, **db_sql_codegen** will produce two files: a C-language source code (.c) file and a C-language header (.h) file, with names that are derived from the name of the input file. You can also control the names of these output files with the -o and -h options. The -x option causes the generated code to be transaction-aware. Finally, the -t option will produce a simple application that invokes the generated function API. This is a C-language source file that includes a main function, and serves the dual purposes of providing a simple test for the generated C code, and of being an example of how to use the generated API.
+
+The options are as follows:
+
+- **-i**\
+
+ Names the input file containing SQL DDL.
+
+- **-o** \
+
+ Names the output C-language source code file.
+
+- **-h** \
+
+ Names the output C-language header file.
+
+- **-t** \
+
+ Names the output C-langage test file.
+
+- **-x**
+
+ Sets the default transaction mode to TRANSACTIONAL.
+
+The **db_sql_codegen** utility exits 0 on success, and \>0 if an error occurs.
+
+Note that the **db_sql_codegen** utility is built only when --enable-sql_codegen option is passed as an argument when you are configuring Berkeley DB. For more information, see "Configuring Berkeley DB"
+
+### Input Syntax
+
+The input file can contain the following SQL DDL statements.
+
+- **CREATE DATABASE**
+
+ The DDL must contain a CREATE DATABASE statement. The syntax is simply
+
+ ``` c
+ CREATE DATABASE name;
+ ```
+
+ . The name given here is used as the name of the Berkeley DB environment in which the Berkeley DB databases are created.
+
+- **CREATE TABLE**
+
+ Each CREATE TABLE statement produces functions to create and delete a primary Berkeley DB database. Also produced are functions to perform record insertion, retrieval and deletion on this database.
+
+ CREATE TABLE establishes the field set of records that can be stored in the Berkeley DB database. Every CREATE TABLE statement must identify a primary key to be used as the lookup key in the Berkeley DB database.
+
+ Here is an example to illustrate the syntax of CREATE TABLE that is accepted by **db_sql_codegen** :
+
+ ``` c
+ CREATE TABLE person (person_id INTEGER PRIMARY KEY,
+ name VARCHAR(64),
+ age INTEGER);
+ ```
+
+ This results in the creation of functions to manage a database in which every record is an instance of the following C language data structure:
+
+ ``` c
+ typedef struct _person_data {
+ int person_id;
+ char name[PERSON_DATA_NAME_LENGTH];
+ int age;
+ } person_data;
+ ```
+
+- **CREATE INDEX** You can create secondary Berkeley DB databases to be used as indexes into a primary database. For example, to make an index on the "name" field of the "person" table mentioned above, the SQL DDL would be:
+
+ ``` c
+ CREATE INDEX name_index ON person(name);
+ ```
+
+ This causes **db_sql_codegen** to emit functions to manage creation and deletion of a secondary database called "name_index," which is associated with the "person" database and is set up to perform lookups on the "name" field.
+
+### Hint Comments
+
+The SQL DDL input may contain comments. Two types of comments are recognized. C-style comments begin with "/\*" and end with "\*/". These comments may extend over multiple lines.
+
+Single line comments begin with "--" and run to the end of the line.
+
+If the first character of a comment is "+" then the comment is interpreted as a "hint comment." Hint comments can be used to configure Berkeley DB features that cannot be represented in SQL DDL.
+
+Hint comments are comma-separated lists of property assignments of the form "property=value." Hint comments apply to the SQL DDL statement that immediately precedes their appearance in the input. For example:
+
+``` c
+CREATE DATABASE peopledb; /*+ CACHESIZE = 16m */
+```
+
+This causes the generated environment creation function to set the cache size to sixteen megabytes.
+
+In addition to the CACHESIZE example above, two other hint comment keywords are recognized: DBTYPE and MODE.
+
+After a CREATE TABLE or CREATE INDEX statement, you may set the database type by assigning the DBTYPE property in a hint comment. Possible values for DBTYPE are BTREE and HASH.
+
+After a CREATE DATABASE or CREATE TABLE statement, you may tell **db_sql_codegen** whether to generate transaction-aware code by assigning the MODE property in a hint comment. The possible values for MODE are TRANSACTIONAL and NONTRANSACTIONAL. By default, generated code is not transaction-aware. If MODE=TRANSACTIONAL appears on a CREATE DATABASE statement, then the default for every CREATE TABLE statement becomes TRANSACTIONAL. Individual CREATE TABLE statements may have MODE=TRANSACTIONAL or MODE=NONTRANSACTIONAL, to control whether the code generated for accessing and updating the associated Berkeley DB database is transaction aware.
+
+### Transactions
+
+By default, the code generated by **db_sql_codegen** is not transaction-aware. This means that the generated API for reading and updating BDB databases operates in nontransactional mode. When transactional mode is enabled, either through the command-line option **-x** or by the inclusion of MODE-setting hint comments in the DDL source, the generated data access functions take an extra argument which is a pointer to DB_TXN. To use transactions, application code must acquire a DB_TXN from a call to DB_ENV-\>txn_begin, and supply a pointer to this object when invoking the db_sql_codegen-generated functions that requre such an argument.
+
+Transaction-aware APIs that were generated by db_sql_codegen can be used in nontransactional mode by passing NULL for the DB_TXN pointer arguments.
+
+For more information about using BDB transactions, please consult the documentation for Transaction Subsystem and Related Methods .
+
+### Type Mapping
+
+**db_sql_codegen** must map the schema expressed as SQL types into C language types. It implements the following mappings:
+
+``` c
+BIN char[]
+VARBIN char[]
+CHAR char[]
+VARCHAR char[]
+VARCHAR2 char[]
+BIT char
+TINYINT char
+SMALLINT short
+INTEGER int
+INT int
+BIGINT long
+REAL float
+DOUBLE double
+FLOAT double
+DECIMAL double
+NUMERIC double
+NUMBER(p,s) int, long, float, or double
+```
+
+While BIN/VARBIN and CHAR/VARCHAR are both represented as char arrays, the latter are treated as null-terminated C strings, while the former are treated as binary data.
+
+The Oracle type NUMBER is mapped to different C types, depending on its precision and scale values. If scale is 0, then it is mapped to an integer type (long if precision is greater than 9). Otherwise it is mapped to a floating point type (float if precision is less than 7, otherwise double).
+
+### Output
+
+Depending on the options given on the command line, **db_sql_codegen** can produce three separate files: a .c file containing function definitions that implement the generated API; a .h file containing constants, data structures and prototypes of the generated functions; and a second .c file that contains a sample program that invokes the generated API. The latter program is usually referred to as a smoke test.
+
+Given the following sample input in a file named "people.sql":
+
+``` c
+CREATE DATABASE peopledb;
+CREATE TABLE person (person_id INTEGER PRIMARY KEY,
+ name VARCHAR(64),
+ age INTEGER);
+CREATE INDEX name_index ON person(name);
+```
+
+The command
+
+``` c
+db_sql_codegen -i people.sql -t test_people.c
+```
+
+Will produce files named people.h, people.c, and test_people.c.
+
+The file people.h will contain the information needed to use the generated API. Among other things, an examination of the generated .h file will reveal:
+
+``` c
+#define PERSON_DATA_NAME_LENGTH 63
+```
+
+This is just a constant for the length of the string mapped from the VARCHAR field.
+
+``` c
+typedef struct _person_data {
+ int person_id;
+ char name[PERSON_DATA_NAME_LENGTH];
+ int age;
+} person_data;
+```
+
+This is the data structure that represents the record type that is stored in the person database. There's that constant being used.
+
+``` c
+int create_peopledb_env(DB_ENV **envpp);
+int create_person_database(DB_ENV *envp, DB **dbpp);
+int create_name_index_secondary(DB_ENV *envp, DB *primary_dbp,
+ DB **secondary_dbpp);
+```
+
+These functions must be invoked to initialize the Berkeley DB environment. However, see the next bit:
+
+``` c
+extern DB_ENV * peopledb_envp;
+extern DB *person_dbp;
+extern DB *name_index_dbp;
+
+int initialize_peopledb_environment();
+```
+
+For convenience, **db_sql_codegen** provides global variables for the environment and database, and a single initialization function that sets up the environment for you. You may choose to use the globals and the single initialization function, or you may declare your own DB_ENV and DB pointers, and invoke the individual create\_\* functions yourself.
+
+The word "create" in these function names might be confusing. It means "create the environment/database if it doesn't already exist; otherwise open it."
+
+All of the functions in the generated API return Berkeley DB error codes. If the return value is non-zero, there was an error of some kind, and an explanatory message should have been printed on stderr.
+
+``` c
+int person_insert_struct(DB *dbp, person_data *personp);
+int person_insert_fields(DB * dbp,
+ int person_id,
+ char *name,
+ int age);
+```
+
+These are the functions that you'd use to store a record in the database. The first form takes a pointer to the data structure that represents this record. The second form takes each field as a separate argument.
+
+If two records with the same primary key value are stored, the first one is lost.
+
+``` c
+int get_person_data(DB *dbp, int person_key, person_data *data);
+```
+
+This function retrieves a record from the database. It seeks the record with the supplied key, and populates the supplied structure with the contents of the record. If no matching record is found, the function returns DB_NOTFOUND.
+
+``` c
+int delete_person_key(DB *dbp, int person_key);
+```
+
+This function removes the record matching the given key.
+
+``` c
+typedef void (*person_iteration_callback)(void *user_data,
+ person_data *personp);
+
+int person_full_iteration(DB *dbp,
+ person_iteration_callback user_func,
+ void *user_data);
+```
+
+This function performs a complete iteration over every record in the person table. The user must provide a callback function which is invoked once for every record found. The user's callback function must match the prototype provided in the typedef "person_iteration_callback." In the callback, the "user_data" argument is passed unchanged from the "user_data" argument given to person_full_iteration. This is provided so that the caller of person_full_iteration can communicate some context information to the callback function. The "personp" argument to the callback is a pointer to the record that was retrieved from the database. Personp points to data that is valid only for the duration of the callback invocation.
+
+``` c
+int name_index_query_iteration(DB *secondary_dbp,
+ char *name_index_key,
+ person_iteration_callback user_func,
+ void *user_data);
+```
+
+This function performs lookups through the secondary index database. Because duplicate keys are allowed in secondary indexes, this query might return multiple instances. This function takes as an argument a pointer to a user-written callback function, which must match the function prototype typedef mentioned above (person_iteration_callback). The callback is invoked once for each record that matches the secondary key.
+
+### Test output
+
+The test output file is useful as an example of how to invoke the generated API. It will contain calls to the functions mentioned above, to store a single record and retrieve it by primary key and through the secondary index.
+
+To compile the test, you would issue a command such as
+
+``` c
+ cc -I$BDB_INSTALL/include -L$BDB_INSTALL/lib -o test_people people.c \
+ test_people.c -ldb-4.8
+```
+
+This will produce the executable file test_people, which can be run to exercise the generated API. The program generated from people.sql will create a database environment in a directory named "peopledb." This directory must be created before the program is run.
diff --git a/docs-src/api/c/db_stat.md b/docs-src/api/c/db_stat.md
new file mode 100644
index 000000000..2ee0a00e1
--- /dev/null
+++ b/docs-src/api/c/db_stat.md
@@ -0,0 +1,149 @@
+---
+title: "db_stat"
+api-name: "db_stat"
+source: docs/api_reference/C/db_stat.html
+---
+## db_stat
+
+``` c
+db_stat -d file [-fN] [-h home] [-P password] [-s database]
+
+db_stat [-cEelmNrtVxZ] [-C Aclop] [-h home] [-L A] [-M Ah] [-R A]
+ [-P password]
+```
+
+The **db_stat** utility displays statistics for Berkeley DB environments.
+
+The options are as follows:
+
+- **-C**
+
+ Display detailed information about the locking subsystem.
+
+ - **A**
+
+ Display all information.
+
+ - **c**
+
+ Display lock conflict matrix.
+
+ - **l**
+
+ Display lockers within hash chains.
+
+ - **o**
+
+ Display lock objects within hash chains.
+
+ - **p**
+
+ Display locking subsystem parameters.
+
+- **-c**
+
+ Display locking subsystem statistics, as described in the DB_ENV->lock_stat() method.
+
+- **-d**
+
+ Display database statistics for the specified file, as described in the DB->stat() method.
+
+ If the database contains multiple databases and the **-s** flag is not specified, the statistics are for the internal database that describes the other databases the file contains, and not for the file as a whole.
+
+- **-E**
+
+ Display detailed information about the database environment.
+
+- **-e**
+
+ Display information about the database environment, including all configured subsystems of the database environment.
+
+- **-f**
+
+ Display only those database statistics that can be acquired without traversing the database.
+
+- **-h**
+
+ Specify a home directory for the database environment; by default, the current working directory is used.
+
+- **-l**
+
+ Display logging subsystem statistics, as described in the DB_ENV->log_stat() method.
+
+- **-L**
+
+ Display all logging subsystem statistics.
+
+ - **A**
+
+ Display all information.
+
+- **-M**
+
+ Display detailed information about the cache.
+
+ - **A**
+
+ Display all information.
+
+ - **h**
+
+ Display buffers within hash chains.
+
+- **-m**
+
+ Display cache statistics, as described in the DB_ENV->memp_stat() method.
+
+- **-N**
+
+ Do not acquire shared region mutexes while running. Other problems, such as potentially fatal errors in Berkeley DB, will be ignored as well. This option is intended only for debugging errors, and should not be used under any other circumstances.
+
+- **-P**
+
+ Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.
+
+- **-R**
+
+ Display detailed information about the replication subsystem.
+
+ - **A**
+
+ Display all information.
+
+- **-r**
+
+ Display replication statistics, as described in in the DB_ENV->rep_stat() method.
+
+- **-s**
+
+ Display statistics for the specified database contained in the file specified with the **-d** flag.
+
+- **-t**
+
+ Display transaction subsystem statistics, as described in the DB_ENV->txn_stat() method.
+
+- **-V**
+
+ Write the library version number to the standard output, and exit.
+
+- **-x**
+
+ Display mutex subsystem statistics, as described in the DB_ENV->mutex_stat() method.
+
+- **-Z**
+
+ Reset the statistics after reporting them; valid only with the **-C**, **-c**, **-E**, **-e**, **-L**, **-l**, **-M**, **-m**, **-R**, **-r**, and **-t** options.
+
+Values normally displayed in quantities of bytes are displayed as a combination of gigabytes (GB), megabytes (MB), kilobytes (KB), and bytes (B). Otherwise, values smaller than 10 million are displayed without any special notation, and values larger than 10 million are displayed as a number followed by "M".
+
+The **db_stat** utility may be used with a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, **db_stat** should always be given the chance to detach from the environment and exit gracefully. To cause **db_stat** to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).
+
+The **db_stat** utility exits 0 on success, and \>0 if an error occurs.
+
+For information on the statistics feature for Berkeley DB SQL interface, see Command Line Features Unique to dbsql .
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
diff --git a/docs-src/api/c/db_tuner.md b/docs-src/api/c/db_tuner.md
new file mode 100644
index 000000000..5c489ffe0
--- /dev/null
+++ b/docs-src/api/c/db_tuner.md
@@ -0,0 +1,38 @@
+---
+title: "db_tuner"
+api-name: "db_tuner"
+source: docs/api_reference/C/db_tuner.html
+---
+## db_tuner
+
+``` c
+db_tuner [-c cachesize] -d file [-h home] [-s database] [-v]
+```
+
+The **db_tuner** utility analyzes the data in a btree database, and suggests a page size that is likely to deliver optimal operation.
+
+### Note
+
+The **db_tuner** utility assumes that databases are compacted when analysing the data. The analysis is based on a static view of the data and the data access and update patterns are not take into account.
+
+The options are as follows:
+
+- **-c**
+
+ Specify a value of the cachesize, otherwise, the default value will be set.
+
+- **-d**
+
+ Display database statistics for the specified file. If the database contains multiple databases and the -s flag is not specified, the statistics are for the internal database that describes the other databases the file contains, and not for the file as a whole.
+
+- **-h**
+
+ Specify a home directory for the database environment.
+
+- **-s**
+
+ Display page size recommendation for the specified database contained in the file specified with the -d flag.
+
+- **-v**
+
+ Display verbose information.
diff --git a/docs-src/api/c/db_upgrade.md b/docs-src/api/c/db_upgrade.md
new file mode 100644
index 000000000..72db631cc
--- /dev/null
+++ b/docs-src/api/c/db_upgrade.md
@@ -0,0 +1,54 @@
+---
+title: "db_upgrade"
+api-name: "db_upgrade"
+source: docs/api_reference/C/db_upgrade.html
+---
+## db_upgrade
+
+``` c
+db_upgrade [-NsVv] [-h home] [-P password] file ...
+```
+
+The **db_upgrade** utility upgrades the Berkeley DB version of one or more files and the databases they contain to the current release version.
+
+The options are as follows:
+
+- **-h**
+
+ Specify a home directory for the database environment; by default, the current working directory is used.
+
+- **-N**
+
+ Do not acquire shared region mutexes while running. Other problems, such as potentially fatal errors in Berkeley DB, will be ignored as well. This option is intended only for debugging errors, and should not be used under any other circumstances.
+
+- **-P**
+
+ Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.
+
+- **-s**
+
+ This flag is only meaningful when upgrading databases from releases before the Berkeley DB 3.1 release.
+
+ As part of the upgrade from the Berkeley DB 3.0 release to the 3.1 release, the on-disk format of duplicate data items changed. To correctly upgrade the format requires that applications specify whether duplicate data items in the database are sorted or not. Specifying the **-s** flag means that the duplicates are sorted; otherwise, they are assumed to be unsorted. Incorrectly specifying the value of this flag may lead to database corruption.
+
+ Because the **db_upgrade** utility upgrades a physical file (including all the databases it contains), it is not possible to use **db_upgrade** to upgrade files where some of the databases it includes have sorted duplicate data items, and some of the databases it includes have unsorted duplicate data items. If the file does not have more than a single database, if the databases do not support duplicate data items, or if all the databases that support duplicate data items support the same style of duplicates (either sorted or unsorted), **db_upgrade** will work correctly as long as the **-s** flag is correctly specified. Otherwise, the file cannot be upgraded using **db_upgrade** , and must be upgraded manually using the db_dump and db_load utilities.
+
+- **-V**
+
+ Write the library version number to the standard output, and exit.
+
+- **-v**
+
+ Run in verbose mode, displaying a message for each successful upgrade.
+
+**It is important to realize that Berkeley DB database upgrades are done in place, and so are potentially destructive.** This means that if the system crashes during the upgrade procedure, or if the upgrade procedure runs out of disk space, the databases may be left in an inconsistent and unrecoverable state. See Upgrading databases for more information.
+
+The **db_upgrade** utility may be used with a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, **db_upgrade** should always be given the chance to detach from the environment and exit gracefully. To cause **db_upgrade** to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).
+
+The **db_upgrade** utility exits 0 on success, and \>0 if an error occurs.
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
diff --git a/docs-src/api/c/db_verify.md b/docs-src/api/c/db_verify.md
new file mode 100644
index 000000000..c413285c8
--- /dev/null
+++ b/docs-src/api/c/db_verify.md
@@ -0,0 +1,52 @@
+---
+title: "db_verify"
+api-name: "db_verify"
+source: docs/api_reference/C/db_verify.html
+---
+## db_verify
+
+``` c
+db_verify [-NoqV] [-h home] [-P password] file ...
+```
+
+The **db_verify** utility verifies the structure of one or more files and the databases they contain.
+
+The options are as follows:
+
+- **-h**
+
+ Specify a home directory for the database environment; by default, the current working directory is used.
+
+- **-o**
+
+ Skip the database checks for btree and duplicate sort order and for hashing.
+
+ If the file being verified contains databases with non-default comparison or hashing configurations, calling the **db_verify** utility without the **-o** flag will usually return failure. The **-o** flag causes **db_verify** to ignore database sort or hash ordering and allows **db_verify** to be used on these files. To fully verify these files, verify them explicitly using the DB->verify() method, after configuring the correct comparison or hashing functions.
+
+- **-N**
+
+ Do not acquire shared region mutexes while running. Other problems, such as potentially fatal errors in Berkeley DB, will be ignored as well. This option is intended only for debugging errors, and should not be used under any other circumstances.
+
+- **-P**
+
+ Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.
+
+- **-q**
+
+ Suppress the printing of any error descriptions, simply exit success or failure.
+
+- **-V**
+
+ Write the library version number to the standard output, and exit.
+
+The **db_verify** utility does not perform any locking, even in Berkeley DB environments that are configured with a locking subsystem. As such, it should only be used on files that are not being modified by another thread of control.
+
+The **db_verify** utility may be used with a Berkeley DB environment (as described for the **-h** option, the environment variable **DB_HOME**, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, **db_verify** should always be given the chance to detach from the environment and exit gracefully. To cause **db_verify** to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).
+
+The **db_verify** utility exits 0 on success, and \>0 if an error occurs.
+
+### Environment Variables
+
+#### DB_HOME
+
+If the **-h** option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in the DB_ENV->open() method.
diff --git a/docs-src/api/c/dbassociate.md b/docs-src/api/c/dbassociate.md
new file mode 100644
index 000000000..af0b5c14f
--- /dev/null
+++ b/docs-src/api/c/dbassociate.md
@@ -0,0 +1,135 @@
+---
+title: "DB->associate()"
+api-name: "DB->associate()"
+source: docs/api_reference/C/dbassociate.html
+---
+## DB-\>associate()
+
+``` c
+#include
+
+int
+DB->associate(DB *primary, DB_TXN *txnid, DB *secondary,
+ int (*callback)(DB *secondary,
+ const DBT *key, const DBT *data, DBT *result), u_int32_t flags);
+```
+
+The `DB->associate()` function is used to declare one database a secondary index for a primary database. The DB handle that you call the `associate()` method from is the primary database.
+
+After a secondary database has been "associated" with a primary database, all updates to the primary will be automatically reflected in the secondary and all reads from the secondary will return corresponding data from the primary. Note that as primary keys must be unique for secondary indices to work, the primary database must be configured without support for duplicate data items. See Secondary Indices in the *Berkeley DB Programmer's Reference Guide* for more information.
+
+The `DB->associate()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### primary
+
+The **primary** parameter should be a database handle for the primary database that is to be indexed.
+
+#### txnid
+
+If the operation is part of an application-specified transaction, the **txnid** parameter is a transaction handle returned from DB_ENV->txn_begin() ; if the operation is part of a Berkeley DB Concurrent Data Store group, the **txnid** parameter is a handle returned from DB_ENV->cdsgroup_begin() ; otherwise NULL. If no transaction handle is specified, but the operation occurs in a transactional database, the operation will be implicitly transaction protected.
+
+#### secondary
+
+The **secondary** parameter should be an open database handle of either a newly created and empty database that is to be used to store a secondary index, or of a database that was previously associated with the same primary and contains a secondary index. Note that it is not safe to associate as a secondary database a handle that is in use by another thread of control or has open cursors. If the handle was opened with the DB_THREAD flag it is safe to use it in multiple threads of control after the `DB->associate()` method has returned. Note also that either secondary keys must be unique or the secondary database must be configured with support for duplicate data items.
+
+#### callback
+
+The **callback** parameter is a callback function that creates the set of secondary keys corresponding to a given primary key and data pair.
+
+The callback parameter may be NULL if both the primary and secondary database handles were opened with the DB_RDONLY flag.
+
+The callback takes four arguments:
+
+- `secondary`
+
+ The **secondary** parameter is the database handle for the secondary.
+
+- `key`
+
+ The **key** parameter is a DBT referencing the primary key.
+
+- `data`
+
+ The **data** parameter is a DBT referencing the primary data item.
+
+- `result`
+
+ The **result** parameter is a zeroed DBT in which the callback function should fill in **data** and **size** fields that describe the secondary key or keys.
+
+### Note
+
+Berkeley DB is not re-entrant. Callback functions should not attempt to make library calls (for example, to release locks or close open handles). Re-entering Berkeley DB is not guaranteed to work correctly, and the results are undefined.
+
+The result DBT can have the following flags set in its **flags** field:
+
+- `DB_DBT_APPMALLOC`
+
+ If the callback function needs to allocate memory for the **result** data field (rather than simply pointing into the primary key or datum), DB_DBT_APPMALLOC should be set in the **flags** field of the **result** DBT , which indicates that Berkeley DB should free the memory when it is done with it.
+
+- `DB_DBT_MULTIPLE`
+
+ To return multiple secondary keys, DB_DBT_MULTIPLE should be set in the **flags** field of the **result** DBT , which indicates Berkeley DB should treat the **size** field as the number of secondary keys (zero or more), and the **data** field as a pointer to an array of that number of DBT s describing the set of secondary keys.
+
+ **When multiple secondary keys are returned, keys may not be repeated**. In other words, there must be no repeated record numbers in the array for Recno and Queue databases, and keys must not compare equally using the secondary database's comparison function for Btree and Hash databases. If keys are repeated, operations may fail and the secondary may become inconsistent with the primary.
+
+ The DB_DBT_APPMALLOC flag may be set for any DBT in the array of returned DBT 's to indicate that Berkeley DB should free the memory referenced by that particular DBT 's data field when it is done with it.
+
+ The DB_DBT_APPMALLOC flag may be combined with DB_DBT_MULTIPLE in the **result** DBT 's **flag** field to indicate that Berkeley DB should free the array once it is done with all of the returned keys.
+
+In addition, the callback can optionally return the following special value:
+
+- `DB_DONOTINDEX`
+
+ If any key/data pair in the primary yields a null secondary key and should be left out of the secondary index, the callback function may optionally return DB_DONOTINDEX. Otherwise, the callback function should return 0 in case of success or an error outside of the Berkeley DB name space in case of failure; the error code will be returned from the Berkeley DB call that initiated the callback.
+
+ If the callback function returns DB_DONOTINDEX for any key/data pairs in the primary database, the secondary index will not contain any reference to those key/data pairs, and such operations as cursor iterations and range queries will reflect only the corresponding subset of the database. If this is not desirable, the application should ensure that the callback function is well-defined for all possible values and never returns DB_DONOTINDEX.
+
+ Returning DB_DONOTINDEX is equivalent to setting DB_DBT_MULTIPLE on the **result** DBT and setting the **size** field to zero.
+
+#### flags
+
+The **flags** parameter must be set to 0 or by bitwise inclusively **OR**'ing together one or more of the following values:
+
+- `DB_CREATE`
+
+ If the secondary database is empty, walk through the primary and create an index to it in the empty secondary. This operation is potentially very expensive.
+
+ If the secondary database has been opened in an environment configured with transactions, the entire secondary index creation is performed in the context of a single transaction.
+
+ Care should be taken not to use a newly-populated secondary database in another thread of control until the `DB->associate()` call has returned successfully in the first thread.
+
+ If transactions are not being used, care should be taken not to modify a primary database being used to populate a secondary database, in another thread of control, until the `DB->associate()` call has returned successfully in the first thread. If transactions are being used, Berkeley DB will perform appropriate locking and the application need not do any special operation ordering.
+
+- `DB_IMMUTABLE_KEY`
+
+ Specifies the secondary key is immutable.
+
+ This flag can be used to optimize updates when the secondary key in a primary record will never be changed after the primary record is inserted. For immutable secondary keys, a best effort is made to avoid calling the secondary callback function when primary records are updated. This optimization may reduce the overhead of update operations significantly if the callback function is expensive.
+
+ Be sure to specify this flag only if the secondary key in the primary record is never changed. If this rule is violated, the secondary index will become corrupted, that is, it will become out of sync with the primary.
+
+### Errors
+
+The `DB->associate()` method may fail and return one of the following non-zero errors:
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### EINVAL
+
+If the secondary database handle has already been associated with this or another database handle; the secondary database handle is not open; the primary database has been configured to allow duplicates; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbassociate_foreign.md b/docs-src/api/c/dbassociate_foreign.md
new file mode 100644
index 000000000..29935f103
--- /dev/null
+++ b/docs-src/api/c/dbassociate_foreign.md
@@ -0,0 +1,106 @@
+---
+title: "DB->associate_foreign()"
+api-name: "DB->associate_foreign()"
+source: docs/api_reference/C/dbassociate_foreign.html
+---
+## DB-\>associate_foreign()
+
+``` c
+#include
+
+int
+DB->associate_foreign(DB *foreign, DB *secondary,,
+ int (*callback)(DB *secondary,
+ const DBT *key, DBT *data, const DBT *foreignkey, int *changed),
+ u_int32_t flags);
+```
+
+The `DB->associate_foreign()` function is used to declare one database a foreign constraint for a secondary database. The DB handle that you call the `associate_foreign()` method from is the foreign database.
+
+After a foreign database has been "associated" with a secondary database, all keys inserted into the secondary must exist in the foreign database. Attempting to add a record with a foreign key that does not exist in the foreign database will cause the put method to fail and return `DB_FOREIGN_CONFLICT`.
+
+Deletions in the foreign database affect the secondary in a manner defined by the flags parameter. See Foreign Indices in the *Berkeley DB Programmer's Reference Guide* for more information.
+
+The `DB->associate_foreign()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### foreign
+
+The **foreign** parameter should be a database handle for the foreign database.
+
+#### secondary
+
+The **secondary** parameter should be an open database handle of a database that contains a secondary index who's keys also exist in the **foreign** database.
+
+#### callback
+
+The **callback** parameter is a callback function that nullifies the foreign key portion of a data DBT .
+
+The callback parameter must be NULL if either DB_FOREIGN_ABORT or DB_FOREIGN_CASCADE is set.
+
+The callback takes four arguments:
+
+- `secondary`
+
+ The **secondary** parameter is the database handle for the secondary.
+
+- `key`
+
+ The **key** parameter is a DBT referencing the primary key.
+
+- `data`
+
+ The **data** parameter is a DBT referencing the primary data item to be updated.
+
+- `foreignkey`
+
+ The **foreignkey** parameter is a DBT referencing the foreign key which is being deleted.
+
+- `changed`
+
+ The **changed** parameter is a pointer to a boolean value, indicated whether **data** has changed.
+
+### Note
+
+Berkeley DB is not re-entrant. Callback functions should not attempt to make library calls (for example, to release locks or close open handles). Re-entering Berkeley DB is not guaranteed to work correctly, and the results are undefined.
+
+#### flags
+
+The **flags** parameter must be set to one of the following values:
+
+- `DB_FOREIGN_ABORT`
+
+ Abort the deletion of a key in the foreign database and return DB_FOREIGN_CONFLICT if that key exists in the secondary database. The deletion should be protected by a transaction to ensure database integrity after the aborted delete.
+
+- `DB_FOREIGN_CASCADE`
+
+ The deletion of a key in the foreign database will also delete that key from the secondary database (and the corresponding entry in the secondary's primary database.)
+
+- `DB_FOREIGN_NULLIFY`
+
+ The deletion of a key in the foreign database will call the nullification function passed to associate_foreign and update the secondary database with the changed data.
+
+### Errors
+
+The `DB->associate_foreign()` method may fail and return one of the following non-zero errors:
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### EINVAL
+
+If the foreign database handle is a secondary index; the foreign database handle has been configured to allow duplicates; the foreign database handle is a renumbering recno database; callback is configured and DB_FOREIGN_NULLIFY is not; DB_FOREIGN_NULLIFY is configured and callback is not.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbc.md b/docs-src/api/c/dbc.md
new file mode 100644
index 000000000..32e0d40a0
--- /dev/null
+++ b/docs-src/api/c/dbc.md
@@ -0,0 +1,30 @@
+---
+title: "Chapter 3. The DBcursor Handle"
+api-name: "Chapter 3. The DBcursor Handle"
+source: docs/api_reference/C/dbc.html
+---
+## Chapter 3. The DBcursor Handle
+
+A DBcursor object is a handle for a cursor into a Berkeley DB database.
+
+DBcursor handles are not free-threaded. Cursor handles may be shared by multiple threads if access is serialized by the application.
+
+You create a DBcursor using the DB->cursor() method.
+
+If the cursor is to be used to perform operations on behalf of a transaction, the cursor must be opened and closed within the context of that single transaction.
+
+Once DBcursor->close() has been called, the handle may not be accessed again, regardless of the method's return.
+
+## Database Cursors and Related Methods
+
+| Database Cursors and Related Methods | Description |
+|----|----|
+| DB->cursor() | Create a cursor handle |
+| DBcursor->close() | Close a cursor handle |
+| DBcursor->cmp() | Compare two cursors for equality. |
+| DBcursor->count() | Return count of duplicates for current key |
+| DBcursor->del() | Delete current key/data pair |
+| DBcursor->dup() | Duplicate the cursor handle |
+| DBcursor->get() | Retrieve by cursor |
+| DBcursor->put() | Store by cursor |
+| DBcursor->set_priority() , DBcursor->get_priority() | Set/get the cursor's cache priority |
diff --git a/docs-src/api/c/dbcclose.md b/docs-src/api/c/dbcclose.md
new file mode 100644
index 000000000..a944666cc
--- /dev/null
+++ b/docs-src/api/c/dbcclose.md
@@ -0,0 +1,51 @@
+---
+title: "DBcursor->close()"
+api-name: "DBcursor->close()"
+source: docs/api_reference/C/dbcclose.html
+---
+## DBcursor-\>close()
+
+``` c
+#include
+
+int
+DBcursor->close(DBC *DBcursor);
+```
+
+The `DBcursor->close()` method discards the cursor.
+
+It is possible for the `DBcursor->close()` method to return DB_LOCK_DEADLOCK , signaling that any enclosing transaction should be aborted. If the application is already intending to abort the transaction, this error should be ignored, and the application should proceed.
+
+After the `DBcursor->close()` method has been called, regardless of its return value, you can not use the cursor handle again.
+
+It is not required to close the cursor explicitly before closing the database handle or the transaction handle that owns this cursor because, closing a database handle or a transaction handle closes those open cursors.
+
+However, it is recommended that you always close all cursor handles immediately after their use to promote concurrency and to release resources such as page locks.
+
+The `DBcursor->close()` method returns a non-zero error value on failure and 0 on success.
+
+### Errors
+
+The `DBcursor->close()` method may fail and return one of the following non-zero errors:
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### EINVAL
+
+If the cursor is already closed; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DBcursor
+
+### See Also
+
+Database Cursors and Related Methods
diff --git a/docs-src/api/c/dbccmp.md b/docs-src/api/c/dbccmp.md
new file mode 100644
index 000000000..391480475
--- /dev/null
+++ b/docs-src/api/c/dbccmp.md
@@ -0,0 +1,56 @@
+---
+title: "DBcursor->cmp()"
+api-name: "DBcursor->cmp()"
+source: docs/api_reference/C/dbccmp.html
+---
+## DBcursor-\>cmp()
+
+``` c
+#include
+
+int
+DBcursor->cmp(DBC *DBcursor,
+ DBC *other_cursor, int *result, u_int32_t flags);
+```
+
+The `DBcursor->cmp()` method compares two cursors for equality. Two cursors are equal if and only if they are positioned on the same item in the same database.
+
+The `DBcursor->cmp()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### other_cursor
+
+The **other_cursor** parameter references another cursor handle that will be used as the comparator.
+
+#### result
+
+If the call is successful and both cursors are positioned on the same item, result is set to zero. If the call is successful but the cursors are not positioned on the same item, result is set to a non-zero value. If the call is unsuccessful, the value of result should be ignored.
+
+#### flags
+
+The **flags** parameter is currently unused, and must be set to 0.
+
+### Errors
+
+The `DBcursor->cmp()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+- If either of the cursors are already closed.
+
+- If the cursors have been opened against different databases.
+
+- If either of the cursors have not been positioned.
+
+- If the other_dbc parameter is NULL.
+
+- If the result parameter is NULL.
+
+### Class
+
+DBcursor
+
+### See Also
+
+Database Cursors and Related Methods
diff --git a/docs-src/api/c/dbccount.md b/docs-src/api/c/dbccount.md
new file mode 100644
index 000000000..7e73702f8
--- /dev/null
+++ b/docs-src/api/c/dbccount.md
@@ -0,0 +1,51 @@
+---
+title: "DBcursor->count()"
+api-name: "DBcursor->count()"
+source: docs/api_reference/C/dbccount.html
+---
+## DBcursor-\>count()
+
+``` c
+#include
+
+int
+DBcursor->count(DBC *DBcursor, db_recno_t *countp, u_int32_t flags);
+```
+
+The `DBcursor->count()` method returns a count of the number of data items for the key to which the cursor refers.
+
+The `DBcursor->count()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### countp
+
+The **countp** parameter references memory into which the count of the number of duplicate data items is copied.
+
+#### flags
+
+The **flags** parameter is currently unused, and must be set to 0.
+
+### Errors
+
+The `DBcursor->count()` method may fail and return one of the following non-zero errors:
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### EINVAL
+
+If the cursor has not been initialized; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DBcursor
+
+### See Also
+
+Database Cursors and Related Methods
diff --git a/docs-src/api/c/dbcdel.md b/docs-src/api/c/dbcdel.md
new file mode 100644
index 000000000..6f71a0c78
--- /dev/null
+++ b/docs-src/api/c/dbcdel.md
@@ -0,0 +1,85 @@
+---
+title: "DBcursor->del()"
+api-name: "DBcursor->del()"
+source: docs/api_reference/C/dbcdel.html
+---
+## DBcursor-\>del()
+
+``` c
+#include
+
+int
+DBcursor->del(DBC *DBcursor, u_int32_t flags);
+```
+
+The `DBcursor->del()` method deletes the key/data pair to which the cursor refers.
+
+When called on a cursor opened on a database that has been made into a secondary index using the DB->associate() method, the DB->del() method deletes the key/data pair from the primary database and all secondary indices.
+
+The cursor position is unchanged after a delete, and subsequent calls to cursor functions expecting the cursor to refer to an existing key will fail.
+
+The `DBcursor->del()` method will return DB_KEYEMPTY if the element has already been deleted. The `DBcursor->del()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flags
+
+The **flags** parameter must be set to 0 or one of the following values:
+
+- `DB_CONSUME`
+
+ If the database is of type DB_QUEUE then this flag may be set to force the head of the queue to move to the first non-deleted item in the queue. Normally this is only done if the deleted item is exactly at the head when deleted.
+
+### Errors
+
+The `DBcursor->del()` method may fail and return one of the following non-zero errors:
+
+#### DB_FOREIGN_CONFLICT
+
+A foreign key constraint violation has occurred. This can be caused by one of two things:
+
+1. An attempt was made to add a record to a constrained database, and the key used for that record does not exist in the foreign key database.
+
+2. DB_FOREIGN_ABORT was declared for a foreign key database, and then subsequently a record was deleted from the foreign key database without first removing it from the constrained secondary database.
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### DB_SECONDARY_BAD
+
+A secondary index references a nonexistent primary key.
+
+#### EACCES
+
+An attempt was made to modify a read-only database.
+
+#### EINVAL
+
+If the cursor has not been initialized; or if an invalid flag value or parameter was specified.
+
+#### EPERM
+
+Write attempted on read-only cursor when the DB_INIT_CDB flag was specified to DB_ENV->open() .
+
+### Class
+
+DBcursor
+
+### See Also
+
+Database Cursors and Related Methods
diff --git a/docs-src/api/c/dbcdup.md b/docs-src/api/c/dbcdup.md
new file mode 100644
index 000000000..02adb7835
--- /dev/null
+++ b/docs-src/api/c/dbcdup.md
@@ -0,0 +1,55 @@
+---
+title: "DBcursor->dup()"
+api-name: "DBcursor->dup()"
+source: docs/api_reference/C/dbcdup.html
+---
+## DBcursor-\>dup()
+
+``` c
+#include
+
+int
+DBcursor->dup(DBC *DBcursor, DBC **cursorp, u_int32_t flags);
+```
+
+The `DBcursor->dup()` method creates a new cursor that uses the same transaction and locker ID as the original cursor. This is useful when an application is using locking and requires two or more cursors in the same thread of control.
+
+The `DBcursor->dup()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### cursorp
+
+The `DBcursor->dup()` method returns the newly created cursor in **cursorp**.
+
+#### flags
+
+The **flags** parameter must be set to 0 or the following flag:
+
+- `DB_POSITION`
+
+ The newly created cursor is initialized to refer to the same position in the database as the original cursor (if any) and hold the same locks (if any). If the DB_POSITION flag is not specified, or the original cursor does not hold a database position and locks, the created cursor is uninitialized and will behave like a cursor newly created using the DB->cursor() method.
+
+### Errors
+
+The `DBcursor->dup()` method may fail and return one of the following non-zero errors:
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DBcursor
+
+### See Also
+
+Database Cursors and Related Methods
diff --git a/docs-src/api/c/dbcget.md b/docs-src/api/c/dbcget.md
new file mode 100644
index 000000000..35a1d45d5
--- /dev/null
+++ b/docs-src/api/c/dbcget.md
@@ -0,0 +1,266 @@
+---
+title: "DBcursor->get()"
+api-name: "DBcursor->get()"
+source: docs/api_reference/C/dbcget.html
+---
+## DBcursor-\>get()
+
+``` c
+#include
+
+int
+DBcursor->get(DBC *DBcursor,
+ DBT *key, DBT *data, u_int32_t flags);
+
+int
+DBcursor->pget(DBC *DBcursor,
+ DBT *key, DBT *pkey, DBT *data, u_int32_t flags);
+```
+
+The `DBcursor->get()` method retrieves key/data pairs from the database. The address and length of the key are returned in the object to which **key** refers (except for the case of the DB_SET flag, in which the **key** object is unchanged), and the address and length of the data are returned in the object to which **data** refers.
+
+When called on a cursor opened on a database that has been made into a secondary index using the DB->associate() method, the `DBcursor->get()` and `DBcursor->pget()` methods return the key from the secondary index and the data item from the primary database. In addition, the `DBcursor->pget()` method returns the key from the primary database. In databases that are not secondary indices, the `DBcursor->pget()` method will always fail.
+
+Modifications to the database during a sequential scan will be reflected in the scan; that is, records inserted behind a cursor will not be returned while records inserted in front of a cursor will be returned.
+
+In Queue and Recno databases, missing entries (that is, entries that were never explicitly created or that were created and then deleted) will be skipped during a sequential scan.
+
+Unless otherwise specified, the `DBcursor->get()` method returns a non-zero error value on failure and 0 on success.
+
+If `DBcursor->get()` fails for any reason, the state of the cursor will be unchanged.
+
+### Parameters
+
+#### key
+
+The key DBT operated on.
+
+If DB_DBT_PARTIAL is set for the DBT used for this parameter, and if the **flags** parameter is set to DB_GET_BOTH , DB_GET_BOTH_RANGE , DB_SET , or DB_SET_RECNO , then this method will fail and return `EINVAL`.
+
+#### pkey
+
+The return key from the primary database. If DB_DBT_PARTIAL is set for the DBT used for this parameter, then this method will fail and return `EINVAL`.
+
+#### data
+
+The data DBT operated on.
+
+#### flags
+
+The **flags** parameter must be set to one of the following values:
+
+- `DB_CURRENT`
+
+ Return the key/data pair to which the cursor refers.
+
+ The `DBcursor->get()` method will return DB_KEYEMPTY if DB_CURRENT is set and the cursor key/data pair was deleted.
+
+- `DB_FIRST`
+
+ The cursor is set to refer to the first key/data pair of the database, and that pair is returned. If the first key has duplicate values, the first data item in the set of duplicates is returned.
+
+ If the database is a Queue or Recno database, `DBcursor->get()` using the DB_FIRST flag will ignore any keys that exist but were never explicitly created by the application, or were created and later deleted.
+
+ The `DBcursor->get()` method will return DB_NOTFOUND if DB_FIRST is set and the database is empty.
+
+- `DB_GET_BOTH`
+
+ Move the cursor to the specified key/data pair of the database. The cursor is positioned to a key/data pair if both the key and data match the values provided on the key and data parameters.
+
+ In all other ways, this flag is identical to the DB_SET flag.
+
+ When used with `DBcursor->pget()` on a secondary index handle, both the secondary and primary keys must be matched by the secondary and primary key item in the database. It is an error to use the DB_GET_BOTH flag with the `DBcursor->get()` version of this method and a cursor that has been opened on a secondary index handle.
+
+- `DB_GET_BOTH_RANGE`
+
+ Move the cursor to the specified key/data pair of the database. The key parameter must be an exact match with a key in the database. The data item retrieved is the item in a duplicate set that is the smallest value which is greater than or equal to the value provided by the data parameter (as determined by the comparison function). If this flag is specified on a database configured without sorted duplicate support, the behavior is identical to the `DB_GET_BOTH` flag. Returns the datum associated with the given key/data pair.
+
+ In all other ways, this flag is identical to the DB_GET_BOTH flag.
+
+- `DB_GET_RECNO`
+
+ Return the record number associated with the cursor. The record number will be returned in **data**, as described in DBT . The **key** parameter is ignored.
+
+ For DB_GET_RECNO to be specified, the underlying database must be of type Btree, and it must have been created with the DB_RECNUM flag.
+
+ When called on a cursor opened on a database that has been made into a secondary index, the `DBcursor->get()` and `DBcursor->pget()` methods return the record number of the primary database in **data**. In addition, the `DBcursor->pget()` method returns the record number of the secondary index in **pkey**. If either underlying database is not of type Btree or is not created with the DB_RECNUM flag, the out-of-band record number of 0 is returned.
+
+- `DB_JOIN_ITEM`
+
+ Do not use the data value found in all of the cursors as a lookup key for the primary database, but simply return it in the key parameter instead. The data parameter is left unchanged.
+
+ For DB_JOIN_ITEM to be specified, the underlying cursor must have been returned from the DB->join() method.
+
+ This flag is not supported for Heap databases.
+
+- `DB_LAST`
+
+ The cursor is set to refer to the last key/data pair of the database, and that pair is returned. If the last key has duplicate values, the last data item in the set of duplicates is returned.
+
+ If the database is a Queue or Recno database, `DBcursor->get()` using the DB_LAST flag will ignore any keys that exist but were never explicitly created by the application, or were created and later deleted.
+
+ The `DBcursor->get()` method will return DB_NOTFOUND if DB_LAST is set and the database is empty.
+
+- `DB_NEXT`
+
+ If the cursor is not yet initialized, DB_NEXT is identical to DB_FIRST. Otherwise, the cursor is moved to the next key/data pair of the database, and that pair is returned. In the presence of duplicate key values, the value of the key may not change.
+
+ If the database is a Queue or Recno database, `DBcursor->get()` using the DB_NEXT flag will skip any keys that exist but were never explicitly created by the application, or those that were created and later deleted.
+
+ The `DBcursor->get()` method will return DB_NOTFOUND if DB_NEXT is set and the cursor is already on the last record in the database.
+
+- `DB_NEXT_DUP`
+
+ If the next key/data pair of the database is a duplicate data record for the current key/data pair, the cursor is moved to the next key/data pair of the database, and that pair is returned.
+
+ The `DBcursor->get()` method will return DB_NOTFOUND if DB_NEXT_DUP is set and the next key/data pair of the database is not a duplicate data record for the current key/data pair.
+
+ If using a Heap database, this flag results in this method returning DB_NOTFOUND .
+
+- `DB_NEXT_NODUP`
+
+ If the cursor is not yet initialized, DB_NEXT_NODUP is identical to DB_FIRST. Otherwise, the cursor is moved to the next non-duplicate key of the database, and that key/data pair is returned.
+
+ If the database is a Queue or Recno database, `DBcursor->get()` using the DB_NEXT_NODUP flag will ignore any keys that exist but were never explicitly created by the application, or those that were created and later deleted.
+
+ The `DBcursor->get()` method will return DB_NOTFOUND if DB_NEXT_NODUP is set and no non-duplicate key/data pairs exist after the cursor position in the database.
+
+ If using a Heap database, this flag is identical to the `DB_NEXT` flag.
+
+- `DB_PREV`
+
+ If the cursor is not yet initialized, DB_PREV is identical to DB_LAST. Otherwise, the cursor is moved to the previous key/data pair of the database, and that pair is returned. In the presence of duplicate key values, the value of the key may not change.
+
+ If the database is a Queue or Recno database, `DBcursor->get()` using the DB_PREV flag will skip any keys that exist but were never explicitly created by the application, or those that were created and later deleted.
+
+ The `DBcursor->get()` method will return DB_NOTFOUND if DB_PREV is set and the cursor is already on the first record in the database.
+
+- `DB_PREV_DUP`
+
+ If the previous key/data pair of the database is a duplicate data record for the current key/data pair, the cursor is moved to the previous key/data pair of the database, and that pair is returned.
+
+ The `DBcursor->get()` method will return DB_NOTFOUND if DB_PREV_DUP is set and the previous key/data pair of the database is not a duplicate data record for the current key/data pair.
+
+ If using a Heap database, this flag results in this method returning DB_NOTFOUND .
+
+- `DB_PREV_NODUP`
+
+ If the cursor is not yet initialized, DB_PREV_NODUP is identical to DB_LAST. Otherwise, the cursor is moved to the previous non-duplicate key of the database, and that key/data pair is returned.
+
+ If the database is a Queue or Recno database, `DBcursor->get()` using the DB_PREV_NODUP flag will ignore any keys that exist but were never explicitly created by the application, or those that were created and later deleted.
+
+ The `DBcursor->get()` method will return DB_NOTFOUND if DB_PREV_NODUP is set and no non-duplicate key/data pairs exist before the cursor position in the database.
+
+ If using a Heap database, this flag is identical to the `DB_PREV` flag.
+
+- `DB_SET`
+
+ Move the cursor to the specified key/data pair of the database, and return the datum associated with the given key.
+
+ The `DBcursor->get()` method will return DB_NOTFOUND if DB_SET is set and no matching keys are found. The `DBcursor->get()` method will return DB_KEYEMPTY if DB_SET is set and the database is a Queue or Recno database, and the specified key exists, but was never explicitly created by the application or was later deleted. In the presence of duplicate key values, `DBcursor->get()` will return the first data item for the given key.
+
+- `DB_SET_RANGE`
+
+ Move the cursor to the specified key/data pair of the database. In the case of the Btree access method, the key is returned as well as the data item and the returned key/data pair is the smallest key greater than or equal to the specified key (as determined by the Btree comparison function), permitting partial key matches and range searches.
+
+ In all other ways the behavior of this flag is the same as the DB_SET flag.
+
+- `DB_SET_RECNO`
+
+ Move the cursor to the specific numbered record of the database, and return the associated key/data pair. The **data** field of the specified **key** must be a pointer to a memory location from which a `db_recno_t` may be read, as described in DBT . This memory location will be read to determine the record to be retrieved.
+
+ For DB_SET_RECNO to be specified, the underlying database must be of type Btree, and it must have been created with the DB_RECNUM flag.
+
+In addition, the following flags may be set by bitwise inclusively **OR**'ing them into the **flags** parameter:
+
+- `DB_IGNORE_LEASE`
+
+ This flag is relevant only when using a replicated environment.
+
+ Return the data item irrespective of the state of master leases. The item will be returned under all conditions: if master leases are not configured, if the request is made to a client, if the request is made to a master with a valid lease, or if the request is made to a master without a valid lease.
+
+- `DB_READ_COMMITTED`
+
+ Configure a transactional get operation to have degree 2 isolation (the read is not repeatable).
+
+- `DB_READ_UNCOMMITTED`
+
+ Database items read during a transactional call will have degree 1 isolation, including modified but not yet committed data. Silently ignored if the DB_READ_UNCOMMITTED flag was not specified when the underlying database was opened.
+
+- `DB_MULTIPLE`
+
+ Return multiple data items in the **data** parameter.
+
+ In the case of Btree or Hash databases, duplicate data items for the current key, starting at the current cursor position, are entered into the buffer. Subsequent calls with both the DB_NEXT_DUP and DB_MULTIPLE flags specified will return additional duplicate data items associated with the current key or DB_NOTFOUND if there are no additional duplicate data items to return. Subsequent calls with both the DB_NEXT and DB_MULTIPLE flags specified will return additional duplicate data items associated with the current key or if there are no additional duplicate data items will return the next key and its data items or DB_NOTFOUND if there are no additional keys in the database.
+
+ In the case of Queue, Recno, or Heap databases, data items starting at the current cursor position are entered into the buffer. The record number (or the RID, in the case of Heap) of the first record will be returned in the **key** parameter. For Queue and Recno, the record number of each subsequent returned record must be calculated from this value. For Heap databases, the RID of subsequent returned records cannot be known. Subsequent calls with the DB_MULTIPLE flag specified will return additional data items or DB_NOTFOUND if there are no additional data items to return.
+
+ The buffer to which the **data** parameter refers must be provided from user memory (see DB_DBT_USERMEM ). The buffer must be at least as large as the page size of the underlying database, aligned for unsigned integer access, and be a multiple of 1024 bytes in size. If the buffer size is insufficient, then upon return from the call the size field of the **data** parameter will have been set to an estimated buffer size, and the error DB_BUFFER_SMALL is returned. (The size is an estimate as the exact size needed may not be known until all entries are read. It is best to initially provide a relatively large buffer, but applications should be prepared to resize the buffer as necessary and repeatedly call the method.)
+
+ The multiple data items can be iterated over using the DB_MULTIPLE_NEXT macro.
+
+ The DB_MULTIPLE flag may only be used with the DB_CURRENT, DB_FIRST, DB_GET_BOTH, DB_GET_BOTH_RANGE, DB_NEXT, DB_NEXT_DUP, DB_NEXT_NODUP, DB_SET, DB_SET_RANGE, and DB_SET_RECNO options. The DB_MULTIPLE flag may not be used when accessing databases made into secondary indices using the DB->associate() method.
+
+- `DB_MULTIPLE_KEY`
+
+ Return multiple key and data pairs in the **data** parameter.
+
+ Key and data pairs, starting at the current cursor position, are entered into the buffer. Subsequent calls with both the DB_NEXT and DB_MULTIPLE_KEY flags specified will return additional key and data pairs or DB_NOTFOUND if there are no additional key and data items to return.
+
+ In the case of Btree, Hash or Heap databases, the multiple key and data pairs can be iterated over using the DB_MULTIPLE_KEY_NEXT macro.
+
+ In the case of Queue or Recno databases, the multiple record number and data pairs can be iterated over using the DB_MULTIPLE_RECNO_NEXT macro.
+
+ The buffer to which the **data** parameter refers must be provided from user memory (see DB_DBT_USERMEM ). The buffer must be at least as large as the page size of the underlying database, aligned for unsigned integer access, and be a multiple of 1024 bytes in size. If the buffer size is insufficient, then upon return from the call the size field of the **data** parameter will have been set to an estimated buffer size, and the error DB_BUFFER_SMALL is returned. (The size is an estimate as the exact size needed may not be known until all entries are read. It is best to initially provide a relatively large buffer, but applications should be prepared to resize the buffer as necessary and repeatedly call the method.)
+
+ The DB_MULTIPLE_KEY flag may only be used with the DB_CURRENT, DB_FIRST, DB_GET_BOTH, DB_GET_BOTH_RANGE, DB_NEXT, DB_NEXT_DUP, DB_NEXT_NODUP, DB_SET, DB_SET_RANGE, and DB_SET_RECNO options. The DB_MULTIPLE_KEY flag may not be used when accessing databases made into secondary indices using the DB->associate() method.
+
+- `DB_RMW`
+
+ Acquire write locks instead of read locks when doing the read, if locking is configured. Setting this flag can eliminate deadlock during a read-modify-write cycle by acquiring the write lock during the read part of the cycle so that another thread of control acquiring a read lock for the same item, in its own read-modify-write cycle, will not result in deadlock.
+
+### Errors
+
+The `DBcursor->get()` method may fail and return one of the following non-zero errors:
+
+#### DB_BUFFER_SMALL
+
+The requested item could not be returned due to undersized buffer.
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LEASE_EXPIRED
+
+The operation failed because the site's replication master lease has expired.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### DB_SECONDARY_BAD
+
+A secondary index references a nonexistent primary key.
+
+#### EINVAL
+
+If the DB_CURRENT, DB_NEXT_DUP or DB_PREV_DUP flags were specified and the cursor has not been initialized; the `DBcursor->pget()` method was called with a cursor that does not refer to a secondary index; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DBcursor
+
+### See Also
+
+Database Cursors and Related Methods
diff --git a/docs-src/api/c/dbcget_priority.md b/docs-src/api/c/dbcget_priority.md
new file mode 100644
index 000000000..409ac42e4
--- /dev/null
+++ b/docs-src/api/c/dbcget_priority.md
@@ -0,0 +1,33 @@
+---
+title: "DBcursor->get_priority()"
+api-name: "DBcursor->get_priority()"
+source: docs/api_reference/C/dbcget_priority.html
+---
+## DBcursor-\>get_priority()
+
+``` c
+#include
+
+int
+DBcursor->get_priority(DBC *DbCursor, DB_CACHE_PRIORITY *priorityp);
+```
+
+The `DBcursor->get_priority()` method returns the cache priority for pages referenced by the DBcursor handle.
+
+The `DBcursor->get_priority()` method may be called at any time during the life of the application.
+
+The `DBcursor->get_priority()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### priorityp
+
+The `DBcursor->get_priority()` method returns a reference to the cache priority for pages referenced by the DBcursor handle in **priorityp**.
+
+### Class
+
+DBcursor
+
+### See Also
+
+Database Cursors and Related Methods
diff --git a/docs-src/api/c/dbchannel_close.md b/docs-src/api/c/dbchannel_close.md
new file mode 100644
index 000000000..06a68326d
--- /dev/null
+++ b/docs-src/api/c/dbchannel_close.md
@@ -0,0 +1,41 @@
+---
+title: "DB_CHANNEL->close()"
+api-name: "DB_CHANNEL->close()"
+source: docs/api_reference/C/dbchannel_close.html
+---
+## DB_CHANNEL-\>close()
+
+``` c
+#include
+
+int
+DB_CHANNEL->close(DB_CHANNEL *channel, u_int32_t flags);
+```
+
+The `DB_CHANNEL->close()` method closes the DB_CHANNEL handle, freeing any resources allocated to the handle. All DB_CHANNEL handles must be closed before the encompassing environment handle is closed. Also, all on-going messaging operations on the channel should be allowed to complete before attempting to close the channel handle.
+
+After `DB_CHANNEL->close()` has been called, regardless of its return, the DB_CHANNEL handle may not be accessed again.
+
+The `DB_CHANNEL->close()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flags
+
+This parameter is currently unused, and must be set to 0.
+
+### Errors
+
+The `DB_CHANNEL->close()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If this method is called from a Base API application, or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Replication and Related Methods
diff --git a/docs-src/api/c/dbchannel_send_msg.md b/docs-src/api/c/dbchannel_send_msg.md
new file mode 100644
index 000000000..5843d4f2a
--- /dev/null
+++ b/docs-src/api/c/dbchannel_send_msg.md
@@ -0,0 +1,60 @@
+---
+title: "DB_CHANNEL->send_msg()"
+api-name: "DB_CHANNEL->send_msg()"
+source: docs/api_reference/C/dbchannel_send_msg.html
+---
+## DB_CHANNEL-\>send_msg()
+
+``` c
+#include
+
+int
+DB_CHANNEL->send_msg(DB_CHANNEL *channel, DBT *msg, u_int32_t nmsg,
+ u_int32_t flags);
+```
+
+The `DB_CHANNEL->send_msg()` method sends a message on the message channel. The message is sent asynchronously; the method does not wait for a response before returning. This method usually completes quickly because it only waits for the local TCP implementation to accept the bytes into its network data buffer. However, this message could block briefly for longer messages, and/or if the network data buffer is nearly full. This method could even block indefinitely if the remote site is slow to read.
+
+If you want to block while waiting for a response from a remote site, use the DB_CHANNEL->send_request() method instead of this method.
+
+The message sent by this method is received and handled at remote sites using a message dispatch callback, which is configured using the DB_ENV->repmgr_msg_dispatch() method. Note that the DB_CHANNEL-\>send_msg() method may be used within the the message dispatch callback on the remote site to send a response or acknowledgement for messages that it receives and is handling.
+
+This method may be used on channels opened to any destination (see the DB_ENV->repmgr_channel() method for a list of potential destinations).
+
+The `DB_CHANNEL->send_msg()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### msg
+
+Refers to an array of DBT handles. For more information, see The DBT Handle .
+
+Any flags provided to the DBT handles used in this array are ignored.
+
+#### nmsg
+
+Indicates how many elements are contained in the `msg` array.
+
+#### flags
+
+This parameter is currently unused, and must be set to 0.
+
+### Errors
+
+The `DB_CHANNEL->send_msg()` method may fail and return one of the following non-zero errors:
+
+#### DB_NOSERVER
+
+A message was sent to a remote site that has not configured a message dispatch call-back function. Use the DB_ENV->repmgr_msg_dispatch() method at every site belonging to the replication group to configure a message dispatch call-back function.
+
+#### EINVAL
+
+If this method is called from a Base API application, or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Replication and Related Methods
diff --git a/docs-src/api/c/dbchannel_send_request.md b/docs-src/api/c/dbchannel_send_request.md
new file mode 100644
index 000000000..40cc64485
--- /dev/null
+++ b/docs-src/api/c/dbchannel_send_request.md
@@ -0,0 +1,83 @@
+---
+title: "DB_CHANNEL->send_request()"
+api-name: "DB_CHANNEL->send_request()"
+source: docs/api_reference/C/dbchannel_send_request.html
+---
+## DB_CHANNEL-\>send_request()
+
+``` c
+#include
+
+int
+DB_CHANNEL->send_request(DB_CHANNEL *channel, DBT *request,
+ u_int32_t nrequest, DBT *response,
+ db_timeout_t timeout, u_int32_t flags);
+```
+
+The `DB_CHANNEL->send_request()` method sends a message on the message channel. The message is sent synchronously; the method blocks waiting for a response before returning. If a response is not received within the timeout value configured for this request, this method returns with an error condition.
+
+If you do not want to block while waiting for a response from a remote site, use the DB_CHANNEL->send_msg() method.
+
+The message sent by this method is received and handled at remote sites using a message dispatch callback, which is configured using the DB_ENV->repmgr_msg_dispatch() method.
+
+The `DB_CHANNEL->send_request()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### request
+
+Refers to an array of DBT handles. For more information, see The DBT Handle .
+
+Any flags provided to the DBT handles used in this array are ignored.
+
+#### nrequest
+
+Indicates how many elements are contained in the `msg` array.
+
+#### response
+
+Points to a single DBT handle, which is used to receive the response from the remote site. By default, the response is expected to be a single-part message. If there is a possibility that the response could be a multi-part message, specify `DB_MULTIPLE` to this method's **flags** parameter.
+
+The response DBT should specify one of the following flags: `DB_DBT_MALLOC`, `DB_DBT_REALLOC`, or `DB_DBT_USERMEM`.
+
+For more information on configuring and using DBTs, see The DBT Handle .
+
+Note that the response DBT can be empty. In this way an application can send an acknowledgement even if there is no other information that needs to be sent.
+
+#### timeout
+
+Configures the amount of time that may elapse while this method waits for a response from the remote site. If this timeout period elapses without a response, this method returns with an error condition.
+
+The timeout value must be specified as an unsigned 32-bit number of microseconds, limiting the maximum timeout to roughly 71 minutes.
+
+A timeout value of `0` indicates that the channel's default timeout value should be used. This default is configured using the DB_CHANNEL->set_timeout() method.
+
+#### flags
+
+This parameter must be set to either `DB_MULTIPLE` or 0.
+
+If there is a possibility that the response can consist of multiple DBT handles, specify `DB_MULTIPLE` to this parameter. In that case, the response buffer is formatted for bulk operations.
+
+### Errors
+
+The `DB_CHANNEL->send_request()` method may fail and return one of the following non-zero errors:
+
+#### DB_BUFFER_SMALL
+
+`DB_MULTIPLE` was not specified for the response DBT, but the remote site sent a response consisting of more than one DBT; or a buffer supplied using `DB_DBT_USERMEM` was not large enough to contain the message response.
+
+#### DB_NOSERVER
+
+A message was sent to a remote site that has not configured a message dispatch call-back function. Use the DB_ENV->repmgr_msg_dispatch() method at every site belonging to the replication group to configure a message dispatch call-back function.
+
+#### EINVAL
+
+If this method is called from a Base API application, or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Replication and Related Methods
diff --git a/docs-src/api/c/dbchannel_set_timeout.md b/docs-src/api/c/dbchannel_set_timeout.md
new file mode 100644
index 000000000..d72af362f
--- /dev/null
+++ b/docs-src/api/c/dbchannel_set_timeout.md
@@ -0,0 +1,39 @@
+---
+title: "DB_CHANNEL->set_timeout()"
+api-name: "DB_CHANNEL->set_timeout()"
+source: docs/api_reference/C/dbchannel_set_timeout.html
+---
+## DB_CHANNEL-\>set_timeout()
+
+``` c
+#include
+
+int
+DB_CHANNEL->set_timeout(DB_CHANNEL *channel, db_timeout_t timeout);
+```
+
+The `DB_CHANNEL->set_timeout()` method sets the default timeout value for the DB_CHANNEL handle. This timeout is used by the DB_CHANNEL->send_request() method.
+
+The `DB_CHANNEL->set_timeout()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### timeout
+
+Configures the amount of time that may elapse while the DB_CHANNEL->send_request() method waits for a message response. The timeout value must be specified as an unsigned 32-bit number of microseconds, limiting the maximum timeout to roughly 71 minutes.
+
+### Errors
+
+The `DB_CHANNEL->set_timeout()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If this method is called from a Base API application, or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Replication and Related Methods
diff --git a/docs-src/api/c/dbclose.md b/docs-src/api/c/dbclose.md
new file mode 100644
index 000000000..80cc2be4e
--- /dev/null
+++ b/docs-src/api/c/dbclose.md
@@ -0,0 +1,91 @@
+---
+title: "DB->close()"
+api-name: "DB->close()"
+source: docs/api_reference/C/dbclose.html
+---
+## DB-\>close()
+
+``` c
+#include
+
+int
+DB->close(DB *db, u_int32_t flags);
+```
+
+The `DB->close()` method flushes cached database information to disk, closes any open cursors, frees allocated resources, and closes underlying files. When the close operation for a cursor fails, the method returns a non-zero error value for the first instance of such an error, and continues to close the rest of the cursors and database handles.
+
+Although closing a database handle will close any open cursors, it is recommended that applications explicitly close all their DBcursor handles before closing the database. The reason why is that when the cursor is explicitly closed, the memory allocated for it is reclaimed; however, this will *not* happen if you close a database while cursors are still opened.
+
+The same rule, for the same reasons, hold true for DB_TXN handles. Simply make sure you close all your transaction handles before closing your database handle.
+
+Because key/data pairs are cached in memory, applications should make a point to always either close database handles or sync their data to disk (using the DB->sync() method) before exiting, to ensure that any data cached in main memory are reflected in the underlying file system.
+
+When called on a database that is the primary database for a secondary index, the primary database should be closed only after all secondary indices referencing it have been closed.
+
+When multiple threads are using the DB concurrently, only a single thread may call the `DB->close()` method.
+
+The DB handle may not be accessed again after `DB->close()` is called, regardless of its return.
+
+If you do not close the DB handle explicitly, it will be closed when the environment handle that owns the DB handle is closed.
+
+The `DB->close()` method returns a non-zero error value on failure and 0 on success. The error values that `DB->close()` method returns include the error values of `DBcursor->close()` and the following:
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### EINVAL
+
+If the cursor is already closed; or if an invalid flag value or parameter was specified.
+
+### Parameters
+
+#### flags
+
+The **flags** parameter must be set to 0 or be set to the following value:
+
+- `DB_NOSYNC`
+
+ Do not flush cached information to disk. This flag is a dangerous option. It should be set only if the application is doing logging (with transactions) so that the database is recoverable after a system or application crash, or if the database is always generated from scratch after any system or application crash.
+
+ **It is important to understand that flushing cached information to disk only minimizes the window of opportunity for corrupted data.** Although unlikely, it is possible for database corruption to happen if a system or application crash occurs while writing data to the database. To ensure that database corruption never occurs, applications must either: use transactions and logging with automatic recovery; use logging and application-specific recovery; or edit a copy of the database, and once all applications using the database have successfully called `DB->close()`, atomically replace the original database with the updated copy.
+
+ Note that this flag only works when the database has been opened using an environment.
+
+### Errors
+
+The `DB->close()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+The error messages returned for the first error encountered when `DB->close()` method closes any open cursors include:
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### EINVAL
+
+If the cursor is already closed; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbcompact.md b/docs-src/api/c/dbcompact.md
new file mode 100644
index 000000000..e2538a8a3
--- /dev/null
+++ b/docs-src/api/c/dbcompact.md
@@ -0,0 +1,136 @@
+---
+title: "DB->compact()"
+api-name: "DB->compact()"
+source: docs/api_reference/C/dbcompact.html
+---
+## DB-\>compact()
+
+``` c
+#include
+
+int
+DB->compact(DB *db, DB_TXN *txnid,
+ DBT *start, DBT *stop, DB_COMPACT *c_data, u_int32_t flags, DBT *end);
+```
+
+The `DB->compact()` method compacts Btree, Hash, and Recno access method databases, and optionally returns unused Btree, Hash or Recno database pages to the underlying filesystem.
+
+The `DB->compact()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### txnid
+
+If the operation is part of an application-specified transaction, the **txnid** parameter is a transaction handle returned from DB_ENV->txn_begin() ; if the operation is part of a Berkeley DB Concurrent Data Store group, the **txnid** parameter is a handle returned from DB_ENV->cdsgroup_begin() ; otherwise NULL.
+
+If a transaction handle is supplied to this method, then the operation is performed using that transaction. In this event, large sections of the tree may be locked during the course of the transaction.
+
+If no transaction handle is specified, but the operation occurs in a transactional database, the operation will be implicitly transaction protected using multiple transactions. These transactions will be periodically committed to avoid locking large sections of the tree. Any deadlocks encountered cause the compaction operation to be retried from the point of the last transaction commit.
+
+#### start
+
+If non-NULL, the **start** parameter is the starting point for compaction. For a Btree or Recno database, compaction will start at the smallest key greater than or equal to the specified key. For a Hash database, the compaction will start in the bucket specified by the integer stored in the key. If NULL, compaction will start at the beginning of the database.
+
+#### stop
+
+If non-NULL, the **stop** parameter is the stopping point for compaction. For a Btree or Recno database, compaction will stop at the page with the smallest key greater than the specified key. For a Hash database, compaction will stop in the bucket specified by the integer stored in the key. If NULL, compaction will stop at the end of the database.
+
+#### c_data
+
+If non-NULL, the **c_data** parameter contains additional compaction configuration parameters, and returns compaction operation statistics, in a structure of type `DB_COMPACT`.
+
+The following input configuration fields are available from the `DB_COMPACT` structure:
+
+- `int compact_fillpercent;`
+
+ If non-zero, this provides the goal for filling pages, specified as a percentage between 1 and 100. Any page in the database not at or above this percentage full will be considered for compaction. The default behavior is to consider every page for compaction, regardless of its page fill percentage.
+
+- `int compact_pages;`
+
+ If non-zero, the call will return after the specified number of pages have been freed, or no more pages can be freed.
+
+- `db_timeout_t compact_timeout;`
+
+ If non-zero, and no **txnid** parameter was specified, this parameter identifies the lock timeout used for implicit transactions, in microseconds.
+
+The following output statistics fields are available from the `DB_COMPACT` structure:
+
+- `u_int32_t compact_deadlock;`
+
+ An output statistics parameter: if no **txnid** parameter was specified, the number of deadlocks which occurred.
+
+- `u_int32_t compact_pages_examine;`
+
+ An output statistics parameter: the number of database pages reviewed during the compaction phase.
+
+- `u_int32_t compact_empty_buckets;`
+
+ An output statistics parameter: the number of empty hash buckets that were found the compaction phase.
+
+- `u_int32_t compact_pages_free;`
+
+ An output statistics parameter: the number of database pages freed during the compaction phase.
+
+- `u_int32_t compact_levels;`
+
+ An output statistics parameter: the number of levels removed from the Btree or Recno database during the compaction phase.
+
+- `u_int32_t compact_pages_truncated;`
+
+ An output statistics parameter: the number of database pages returned to the filesystem.
+
+#### flags
+
+The **flags** parameter must be set to 0 or one of the following values:
+
+- `DB_FREELIST_ONLY`
+
+ Do no page compaction, only returning pages to the filesystem that are already free and at the end of the file.
+
+- `DB_FREE_SPACE`
+
+ Return pages to the filesystem when possible. If this flag is not specified, pages emptied as a result of compaction will be placed on the free list for re-use, but never returned to the filesystem.
+
+ Note that only pages at the end of a file can be returned to the filesystem. Because of the one-pass nature of the compaction algorithm, any unemptied page near the end of the file inhibits returning pages to the file system. A repeated call to the `DB->compact()` method with a low **compact_fillpercent** may be used to return pages in this case.
+
+#### end
+
+If non-NULL, the **end** parameter will be filled with the database key marking the end of the compaction operation in a Btree or Recno database. This is generally the first key of the page where the operation stopped. For a Hash database, this will hold the integer value representing which bucket the compaction stopped in.
+
+### Errors
+
+The `DB->compact()` method may fail and return one of the following non-zero errors:
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### EACCES
+
+An attempt was made to modify a read-only database.
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbcput.md b/docs-src/api/c/dbcput.md
new file mode 100644
index 000000000..7e631e47b
--- /dev/null
+++ b/docs-src/api/c/dbcput.md
@@ -0,0 +1,137 @@
+---
+title: "DBcursor->put()"
+api-name: "DBcursor->put()"
+source: docs/api_reference/C/dbcput.html
+---
+## DBcursor-\>put()
+
+``` c
+#include
+
+int
+DBcursor->put(DBC *DBcursor, DBT *key, DBT *data, u_int32_t flags);
+```
+
+The `DBcursor->put()` method stores key/data pairs into the database.
+
+Unless otherwise specified, the `DBcursor->put()` method returns a non-zero error value on failure and 0 on success.
+
+If `DBcursor->put()` fails for any reason, the state of the cursor will be unchanged. If `DBcursor->put()` succeeds and an item is inserted into the database, the cursor is always positioned to refer to the newly inserted item.
+
+### Parameters
+
+#### key
+
+The key DBT operated on.
+
+If creating a new record in a Heap database, the key DBT must be empty. The `put` method will return the new record's Record ID (RID) in the key DBT .
+
+#### data
+
+The data DBT operated on.
+
+#### flags
+
+The **flags** parameter must be set to one of the following values:
+
+- `DB_AFTER`
+
+ In the case of the Btree and Hash access methods, insert the data element as a duplicate element of the key to which the cursor refers. The new element appears immediately after the current cursor position. It is an error to specify DB_AFTER if the underlying Btree or Hash database is not configured for unsorted duplicate data items. The **key** parameter is ignored.
+
+ In the case of the Recno access method, it is an error to specify DB_AFTER if the underlying Recno database was not created with the DB_RENUMBER flag. If the DB_RENUMBER flag was specified, a new key is created, all records after the inserted item are automatically renumbered, and the key of the new record is returned in the structure to which the **key** parameter refers. The initial value of the **key** parameter is ignored. See DB->open() for more information.
+
+ The DB_AFTER flag may not be specified to the Queue access method.
+
+ The `DBcursor->put()` method will return DB_NOTFOUND if the current cursor record has already been deleted and the underlying access method is Hash.
+
+- `DB_BEFORE`
+
+ In the case of the Btree and Hash access methods, insert the data element as a duplicate element of the key to which the cursor refers. The new element appears immediately before the current cursor position. It is an error to specify DB_AFTER if the underlying Btree or Hash database is not configured for unsorted duplicate data items. The **key** parameter is ignored.
+
+ In the case of the Recno access method, it is an error to specify DB_BEFORE if the underlying Recno database was not created with the DB_RENUMBER flag. If the DB_RENUMBER flag was specified, a new key is created, the current record and all records after it are automatically renumbered, and the key of the new record is returned in the structure to which the **key** parameter refers. The initial value of the **key** parameter is ignored. See DB->open() for more information.
+
+ The DB_BEFORE flag may not be specified to the Queue access method.
+
+ The `DBcursor->put()` method will return DB_NOTFOUND if the current cursor record has already been deleted and the underlying access method is Hash.
+
+- `DB_CURRENT`
+
+ Overwrite the data of the key/data pair to which the cursor refers with the specified data item. The **key** parameter is ignored.
+
+ The `DBcursor->put()` method will return DB_NOTFOUND if the current cursor record has already been deleted.
+
+- `DB_KEYFIRST`
+
+ Insert the specified key/data pair into the database.
+
+ If the underlying database supports duplicate data items, and if the key already exists in the database and a duplicate sort function has been specified, the inserted data item is added in its sorted location. If the key already exists in the database and no duplicate sort function has been specified, the inserted data item is added as the first of the data items for that key.
+
+- `DB_KEYLAST`
+
+ Insert the specified key/data pair into the database.
+
+ If the underlying database supports duplicate data items, and if the key already exists in the database and a duplicate sort function has been specified, the inserted data item is added in its sorted location. If the key already exists in the database, and no duplicate sort function has been specified, the inserted data item is added as the last of the data items for that key.
+
+- `DB_NODUPDATA`
+
+ In the case of the Btree and Hash access methods, insert the specified key/data pair into the database, unless a key/data pair comparing equally to it already exists in the database. If a matching key/data pair already exists in the database, DB_KEYEXIST is returned. The DB_NODUPDATA flag may only be specified if the underlying database has been configured to support sorted duplicate data items.
+
+ The DB_NODUPDATA flag may not be specified to the Queue or Recno access methods.
+
+### Errors
+
+The `DBcursor->put()` method may fail and return one of the following non-zero errors:
+
+#### DB_KEYEXIST
+
+An attempt was made to insert a duplicate key into a database not configured for duplicate data.
+
+#### DB_FOREIGN_CONFLICT
+
+A foreign key constraint violation has occurred. This can be caused by one of two things:
+
+1. An attempt was made to add a record to a constrained database, and the key used for that record does not exist in the foreign key database.
+
+2. DB_FOREIGN_ABORT was declared for a foreign key database, and then subsequently a record was deleted from the foreign key database without first removing it from the constrained secondary database.
+
+#### DB_HEAP_FULL
+
+An attempt was made to add or update a record in a Heap database. However, the size of the database was constrained using the DB->set_heapsize() method, and that limit has been reached.
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### EACCES
+
+An attempt was made to modify a read-only database.
+
+#### EINVAL
+
+If the DB_AFTER, DB_BEFORE or DB_CURRENT flags were specified and the cursor has not been initialized; the DB_AFTER or DB_BEFORE flags were specified and a duplicate sort function has been specified; the DB_CURRENT flag was specified, a duplicate sort function has been specified, and the data item of the referenced key/data pair does not compare equally to the **data** parameter; the DB_AFTER or DB_BEFORE flags were specified, and the underlying access method is Queue; an attempt was made to add a record to a fixed-length database that was too large to fit; an attempt was made to add a record to a secondary index; or if an invalid flag value or parameter was specified.
+
+#### EPERM
+
+Write attempted on read-only cursor when the DB_INIT_CDB flag was specified to DB_ENV->open() .
+
+### Class
+
+DBcursor
+
+### See Also
+
+Database Cursors and Related Methods
diff --git a/docs-src/api/c/dbcreate.md b/docs-src/api/c/dbcreate.md
new file mode 100644
index 000000000..62f70d2f6
--- /dev/null
+++ b/docs-src/api/c/dbcreate.md
@@ -0,0 +1,56 @@
+---
+title: "db_create"
+api-name: "db_create"
+source: docs/api_reference/C/dbcreate.html
+---
+## db_create
+
+``` c
+#include
+
+int db_create(DB **dbp, DB_ENV *dbenv, u_int32_t flags);
+```
+
+The `db_create()` function creates a DB structure that is the handle for a Berkeley DB database. This function allocates memory for the structure, returning a pointer to the structure in the memory to which **dbp** refers. To release the allocated memory and discard the handle, call the DB->close() , DB->remove() , DB->rename() , or DB->verify() methods.
+
+DB handles are free-threaded if the DB_THREAD flag is specified to the DB->open() method when the database is opened or if the database environment in which the database is opened is free-threaded. The handle should not be closed while any other handle that refers to the database is in use; for example, database handles must not be closed while cursor handles into the database remain open, or transactions that include operations on the database have not yet been committed or aborted. Once the DB->close() , DB->remove() , DB->rename() , or DB->verify() methods are called, the handle may not be accessed again, regardless of the method's return.
+
+The DB handle contains a special field, `app_private`, which is declared as type `void *`. This field is provided for the use of the application program. It is initialized to NULL and is not further used by Berkeley DB in any way.
+
+The `db_create` function returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dbp
+
+The **dbp** parameter references the memory into which the returned structure pointer is stored.
+
+#### dbenv
+
+If the **dbenv** parameter is NULL, the database is standalone; that is, it is not part of any Berkeley DB environment.
+
+If the **dbenv** parameter is not NULL, the database is created within the specified Berkeley DB environment. The database access methods automatically make calls to the other subsystems in Berkeley DB, based on the enclosing environment. For example, if the environment has been configured to use locking, the access methods will automatically acquire the correct locks when reading and writing pages of the database.
+
+#### flags
+
+The **flags** parameter must be set to 0 or the following value:
+
+- `DB_XA_CREATE`
+
+ Instead of creating a standalone database, create a database intended to be accessed via applications running under an X/Open conformant Transaction Manager. The database will be opened in the environment specified by the OPENINFO parameter of the GROUPS section of the ubbconfig file. See the XA Introduction section in the Berkeley DB Reference Guide for more information.
+
+### Errors
+
+The `db_create()` function may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbcset_priority.md b/docs-src/api/c/dbcset_priority.md
new file mode 100644
index 000000000..5d3c04c1d
--- /dev/null
+++ b/docs-src/api/c/dbcset_priority.md
@@ -0,0 +1,55 @@
+---
+title: "DBcursor->set_priority()"
+api-name: "DBcursor->set_priority()"
+source: docs/api_reference/C/dbcset_priority.html
+---
+## DBcursor-\>set_priority()
+
+``` c
+#include
+
+int
+DBcursor->set_priority(DBC *DbCursor, DB_CACHE_PRIORITY priority);
+```
+
+Set the cache priority for pages referenced by the DBcursor handle.
+
+The priority of a page biases the replacement algorithm to be more or less likely to discard a page when space is needed in the buffer pool. The bias is temporary, and pages will eventually be discarded if they are not referenced again. The `DBcursor->set_priority()` method is only advisory, and does not guarantee pages will be treated in a specific way.
+
+The `DBcursor->set_priority()` method may be called at any time during the life of the application.
+
+The `DBcursor->set_priority()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### priority
+
+The **priority** parameter must be set to one of the following values:
+
+- `DB_PRIORITY_VERY_LOW`
+
+ The lowest priority: pages are the most likely to be discarded.
+
+- `DB_PRIORITY_LOW`
+
+ The next lowest priority.
+
+- `DB_PRIORITY_DEFAULT`
+
+ The default priority.
+
+- `DB_PRIORITY_HIGH`
+
+ The next highest priority.
+
+- `DB_PRIORITY_VERY_HIGH`
+
+ The highest priority: pages are the least likely to be discarded.
+
+### Class
+
+DBcursor
+
+### See Also
+
+Database Cursors and Related Methods
diff --git a/docs-src/api/c/dbcursor.md b/docs-src/api/c/dbcursor.md
new file mode 100644
index 000000000..ee552f787
--- /dev/null
+++ b/docs-src/api/c/dbcursor.md
@@ -0,0 +1,83 @@
+---
+title: "DB->cursor()"
+api-name: "DB->cursor()"
+source: docs/api_reference/C/dbcursor.html
+---
+## DB-\>cursor()
+
+``` c
+#include
+
+int
+DB->cursor(DB *db, DB_TXN *txnid, DBC **cursorp, u_int32_t flags);
+```
+
+The `DB->cursor()` method returns a created database cursor.
+
+Cursors may span threads, but only serially, that is, the application must serialize access to the cursor handle.
+
+The `DB->cursor()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### txnid
+
+To transaction-protect cursor operations, cursors must be opened and closed within the context of a transaction. The **txnid** parameter specifies the transaction context in which the cursor may be used.
+
+Cursor operations are not automatically transaction-protected, even if the DB_AUTO_COMMIT flag is specified to the DB_ENV->set_flags() or DB->open() methods. If cursor operations are to be transaction-protected, the **txnid** parameter must be a transaction handle returned from DB_ENV->txn_begin() ; otherwise, NULL.
+
+#### cursorp
+
+The **cursorp** parameter references memory into which a pointer to the allocated cursor is copied.
+
+#### flags
+
+The **flags** parameter must be set to 0 or by bitwise inclusively **OR**'ing together one or more of the following values:
+
+- `DB_CURSOR_BULK`
+
+ Configure a cursor to optimize for bulk operations. Each successive operation on a cursor configured with this flag attempts to continue on the same database page as the previous operation, falling back to a search if a different page is required. This avoids searching if there is a high degree of locality between cursor operations. This flag is currently only effective with the btree access method. For other access methods, this flag is ignored.
+
+- `DB_READ_COMMITTED`
+
+ Configure a transactional cursor to have degree 2 isolation. This ensures the stability of the current data item read by this cursor but permits data read by this cursor to be modified or deleted prior to the commit of the transaction for this cursor.
+
+- `DB_READ_UNCOMMITTED`
+
+ Configure a transactional cursor to have degree 1 isolation. Read operations performed by the cursor may return modified but not yet committed data. Silently ignored if the DB_READ_UNCOMMITTED flag was not specified when the underlying database was opened.
+
+- `DB_WRITECURSOR`
+
+ Specify that the cursor will be used to update the database. The underlying database environment must have been opened using the DB_INIT_CDB flag.
+
+- `DB_TXN_SNAPSHOT`
+
+ Configure a transactional cursor to operate with read-only snapshot isolation . For databases with the DB_MULTIVERSION flag set, data values will be read as they are when the cursor is opened, without taking read locks.
+
+ This flag implicitly begins a transaction that is committed when the cursor is closed.
+
+ This flag is silently ignored if DB_MULTIVERSION is not set on the underlying database or if a transaction is supplied in the **txnid** parameter.
+
+### Errors
+
+The `DB->cursor()` method may fail and return one of the following non-zero errors:
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database Cursors and Related Methods
diff --git a/docs-src/api/c/dbdel.md b/docs-src/api/c/dbdel.md
new file mode 100644
index 000000000..0ae757986
--- /dev/null
+++ b/docs-src/api/c/dbdel.md
@@ -0,0 +1,109 @@
+---
+title: "DB->del()"
+api-name: "DB->del()"
+source: docs/api_reference/C/dbdel.html
+---
+## DB-\>del()
+
+``` c
+#include
+
+int
+DB->del(DB *db, DB_TXN *txnid, DBT *key, u_int32_t flags);
+```
+
+The `DB->del()` method removes key/data pairs from the database. The key/data pair associated with the specified **key** is discarded from the database. In the presence of duplicate key values, all records associated with the designated key will be discarded.
+
+When called on a database that has been made into a secondary index using the DB->associate() method, the `DB->del()` method deletes the key/data pair from the primary database and all secondary indices.
+
+The `DB->del()` method will return DB_NOTFOUND if the specified key is not in the database. The `DB->del()` method will return DB_KEYEMPTY if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted. Unless otherwise specified, the `DB->del()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### txnid
+
+If the operation is part of an application-specified transaction, the **txnid** parameter is a transaction handle returned from DB_ENV->txn_begin() ; if the operation is part of a Berkeley DB Concurrent Data Store group, the **txnid** parameter is a handle returned from DB_ENV->cdsgroup_begin() ; otherwise NULL. If no transaction handle is specified, but the operation occurs in a transactional database, the operation will be implicitly transaction protected.
+
+#### key
+
+The key DBT operated on.
+
+#### flags
+
+The **flags** parameter must be set to 0 or one of the following values:
+
+- `DB_CONSUME`
+
+ If the database is of type DB_QUEUE then this flag may be set to force the head of the queue to move to the first non-deleted item in the queue. Normally this is only done if the deleted item is exactly at the head when deleted.
+
+- `DB_MULTIPLE`
+
+ Delete multiple data items using keys from the buffer to which the **key** parameter refers.
+
+ To delete records in bulk by key with the btree or hash access methods, construct a bulk buffer in the **key** DBT using DB_MULTIPLE_WRITE_INIT and DB_MULTIPLE_WRITE_NEXT . To delete records in bulk by record number, construct the **key** DBT using DB_MULTIPLE_RECNO_WRITE_INIT and DB_MULTIPLE_RECNO_WRITE_NEXT with a data size of zero.
+
+ A successful bulk delete operation is logically equivalent to a loop through each key/data pair, performing a DB->del() for each one.
+
+ See the DBT and Bulk Operations for more information on working with bulk updates.
+
+ The `DB_MULTIPLE` flag may only be used alone.
+
+- `DB_MULTIPLE_KEY`
+
+ Delete multiple data items using keys and data from the buffer to which the **key** parameter refers.
+
+ To delete records in bulk with the btree or hash access methods, construct a bulk buffer in the **key** DBT using DB_MULTIPLE_WRITE_INIT and DB_MULTIPLE_KEY_WRITE_NEXT . To delete records in bulk with the recno or hash access methods, construct a bulk buffer in the **key** DBT using DB_MULTIPLE_RECNO_WRITE_INIT and DB_MULTIPLE_RECNO_WRITE_NEXT .
+
+ See the DBT and Bulk Operations for more information on working with bulk updates.
+
+ The `DB_MULTIPLE_KEY` flag may only be used alone.
+
+### Errors
+
+The `DB->del()` method may fail and return one of the following non-zero errors:
+
+#### DB_FOREIGN_CONFLICT
+
+A foreign key constraint violation has occurred. This can be caused by one of two things:
+
+1. An attempt was made to add a record to a constrained database, and the key used for that record does not exist in the foreign key database.
+
+2. DB_FOREIGN_ABORT was declared for a foreign key database, and then subsequently a record was deleted from the foreign key database without first removing it from the constrained secondary database.
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### DB_SECONDARY_BAD
+
+A secondary index references a nonexistent primary key.
+
+#### EACCES
+
+An attempt was made to modify a read-only database.
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dberr.md b/docs-src/api/c/dberr.md
new file mode 100644
index 000000000..697caa19b
--- /dev/null
+++ b/docs-src/api/c/dberr.md
@@ -0,0 +1,64 @@
+---
+title: "DB->err()"
+api-name: "DB->err()"
+source: docs/api_reference/C/dberr.html
+---
+## DB-\>err()
+
+``` c
+#include
+
+void
+DB->err(DB *db, int error, const char *fmt, ...);
+
+void
+DB->errx(DB *db, const char *fmt, ...);
+```
+
+The DB_ENV->err() , `DB_ENV->errx()`, `DB->err()` and `DB->errx()` methods provide error-messaging functionality for applications written using the Berkeley DB library.
+
+The `DB->err()` and DB_ENV->err() methods construct an error message consisting of the following elements:
+
+- **An optional prefix string**
+
+ If no error callback function has been set using the DB_ENV->set_errcall() method, any prefix string specified using the DB_ENV->set_errpfx() method, followed by two separating characters: a colon and a \ character.
+
+- **An optional printf-style message**
+
+ The supplied message **fmt**, if non-NULL, in which the ANSI C X3.159-1989 (ANSI C) printf function specifies how subsequent parameters are converted for output.
+
+- **A separator**
+
+ Two separating characters: a colon and a \ character.
+
+- **A standard error string**
+
+ The standard system or Berkeley DB library error string associated with the **error** value, as returned by the db_strerror method.
+
+The `DB->errx()` and `DB_ENV->errx()` methods are the same as the `DB->err()` and DB_ENV->err() methods, except they do not append the final separator characters and standard error string to the error message.
+
+This constructed error message is then handled as follows:
+
+- If an error callback function has been set (see DB->set_errcall() and DB_ENV->set_errcall() ), that function is called with two parameters: any prefix string specified (see DB->set_errpfx() and DB_ENV->set_errpfx() ) and the error message.
+
+- If a C library FILE \* has been set (see DB->set_errfile() and DB_ENV->set_errfile() ), the error message is written to that output stream.
+
+- If none of these output options have been configured, the error message is written to stderr, the standard error output stream.
+
+### Parameters
+
+#### error
+
+The **error** parameter is the error value for which the DB_ENV->err() and `DB->err()` methods will display an explanatory string.
+
+#### fmt
+
+The **fmt** parameter is an optional printf-style message to display.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbexists.md b/docs-src/api/c/dbexists.md
new file mode 100644
index 000000000..fb0f45258
--- /dev/null
+++ b/docs-src/api/c/dbexists.md
@@ -0,0 +1,53 @@
+---
+title: "DB->exists()"
+api-name: "DB->exists()"
+source: docs/api_reference/C/dbexists.html
+---
+## DB-\>exists()
+
+``` c
+#include
+
+int
+DB->exists(DB *db, DB_TXN *txnid, DBT *key, u_int32_t flags);
+```
+
+The `DB->exists()` method returns whether the specified key appears in the database.
+
+The `DB->exists()` method will return DB_NOTFOUND if the specified key is not in the database. The `DB->exists()` method will return DB_KEYEMPTY if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted.
+
+### Parameters
+
+#### txnid
+
+If the operation is part of an application-specified transaction, the **txnid** parameter is a transaction handle returned from DB_ENV->txn_begin() ; if the operation is part of a Berkeley DB Concurrent Data Store group, the **txnid** parameter is a handle returned from DB_ENV->cdsgroup_begin() ; otherwise NULL. If no transaction handle is specified, but the operation occurs in a transactional database, the operation will be implicitly transaction protected.
+
+#### key
+
+The key DBT operated on.
+
+#### flags
+
+The **flags** parameter must be set to zero or by bitwise inclusively **OR**'ing together one or more of the following values:
+
+- `DB_READ_COMMITTED`
+
+ Configure a transactional read operation to have degree 2 isolation (the read is not repeatable).
+
+- `DB_READ_UNCOMMITTED`
+
+ Configure a transactional read operation to have degree 1 isolation, reading modified but not yet committed data. Silently ignored if the DB_READ_UNCOMMITTED flag was not specified when the underlying database was opened.
+
+- `DB_RMW`
+
+ Acquire write locks instead of read locks when doing the read, if locking is configured. Setting this flag can eliminate deadlock during a read-modify-write cycle by acquiring the write lock during the read part of the cycle so that another thread of control acquiring a read lock for the same item, in its own read-modify-write cycle, will not result in deadlock.
+
+ Because the `DB->exists()` method will not hold locks across Berkeley DB calls in non-transactional operations, the DB_RMW flag to the `DB->exists()` call is meaningful only in the presence of transactions.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbfd.md b/docs-src/api/c/dbfd.md
new file mode 100644
index 000000000..77a80443d
--- /dev/null
+++ b/docs-src/api/c/dbfd.md
@@ -0,0 +1,35 @@
+---
+title: "DB->fd()"
+api-name: "DB->fd()"
+source: docs/api_reference/C/dbfd.html
+---
+## DB-\>fd()
+
+``` c
+#include
+
+int
+DB->fd(DB *db, int *fdp);
+```
+
+The `DB->fd()` method provides access to a file descriptor representative of the underlying database. A file descriptor referring to the same file will be returned to all processes that call DB->open() with the same **file** parameter.
+
+This file descriptor may be safely used as a parameter to the **fcntl**(2) and **flock**(2) locking functions.
+
+The `DB->fd()` method only supports a coarse-grained form of locking. Applications should instead use the Berkeley DB lock manager where possible.
+
+The `DB->fd()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### fdp
+
+The **fdp** parameter references memory into which the current file descriptor is copied.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbget.md b/docs-src/api/c/dbget.md
new file mode 100644
index 000000000..e521e8a53
--- /dev/null
+++ b/docs-src/api/c/dbget.md
@@ -0,0 +1,168 @@
+---
+title: "DB->get()"
+api-name: "DB->get()"
+source: docs/api_reference/C/dbget.html
+---
+## DB-\>get()
+
+``` c
+#include
+
+int
+DB->get(DB *db,
+ DB_TXN *txnid, DBT *key, DBT *data, u_int32_t flags);
+
+int
+DB->pget(DB *db,
+ DB_TXN *txnid, DBT *key, DBT *pkey, DBT *data, u_int32_t flags);
+```
+
+The `DB->get()` method retrieves key/data pairs from the database. The address and length of the data associated with the specified **key** are returned in the structure to which **data** refers.
+
+In the presence of duplicate key values, `DB->get()` will return the first data item for the designated key. Duplicates are sorted by:
+
+- Their sort order, if a duplicate sort function was specified.
+
+- Any explicit cursor designated insertion.
+
+- By insert order. This is the default behavior.
+
+**Retrieval of duplicates requires the use of cursor operations.** See DBcursor->get() for details.
+
+When called on a database that has been made into a secondary index using the DB->associate() method, the `DB->get()` and `DB->pget()` methods return the key from the secondary index and the data item from the primary database. In addition, the `DB->pget()` method returns the key from the primary database. In databases that are not secondary indices, the `DB->pget()` method will always fail.
+
+The `DB->get()` method will return DB_NOTFOUND if the specified key is not in the database. The `DB->get()` method will return DB_KEYEMPTY if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted. Unless otherwise specified, the `DB->get()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### txnid
+
+If the operation is part of an application-specified transaction, the **txnid** parameter is a transaction handle returned from DB_ENV->txn_begin() ; if the operation is part of a Berkeley DB Concurrent Data Store group, the **txnid** parameter is a handle returned from DB_ENV->cdsgroup_begin() ; otherwise NULL. If no transaction handle is specified, but the operation occurs in a transactional database, the operation will be implicitly transaction protected.
+
+#### key
+
+The key DBT operated on.
+
+If DB_DBT_PARTIAL is set for the DBT used for this parameter, and if the **flags** parameter is not set to DB_CONSUME DB_CONSUME_WAIT , or DB_SET_RECNO , then this method will fail and return `EINVAL`.
+
+#### pkey
+
+The **pkey** parameter is the return key from the primary database. If DB_DBT_PARTIAL is set for the DBT used for this parameter, then this method will fail and return `EINVAL`.
+
+#### data
+
+The data DBT operated on.
+
+#### flags
+
+The **flags** parameter must be set to 0 or one of the following values:
+
+- `DB_CONSUME`
+
+ Return the record number and data from the available record closest to the head of the queue, and delete the record. The record number will be returned in **key**, as described in DBT . The data will be returned in the **data** parameter. A record is available if it is not deleted and is not currently locked. The underlying database must be of type Queue for DB_CONSUME to be specified.
+
+- `DB_CONSUME_WAIT`
+
+ The DB_CONSUME_WAIT flag is the same as the DB_CONSUME flag, except that if the Queue database is empty, the thread of control will wait until there is data in the queue before returning. The underlying database must be of type Queue for DB_CONSUME_WAIT to be specified.
+
+ If lock or transaction timeouts have been specified, the `DB->get()` method with the DB_CONSUME_WAIT flag may return DB_LOCK_NOTGRANTED . This failure, by itself, does not require the enclosing transaction be aborted.
+
+- `DB_GET_BOTH`
+
+ Retrieve the key/data pair only if both the key and data match the arguments.
+
+ When using a secondary index handle, the `DB_GET_BOTH`: flag causes:
+
+ - the `DB->pget()` version of this method to retun the secondary key/primary key/data tuple only if both the primary and secondary keys match the arguments.
+
+ - the `DB->get()` version of this method to result in an error.
+
+- `DB_SET_RECNO`
+
+ Retrieve the specified numbered key/data pair from a database. Upon return, both the **key** and **data** items will have been filled in.
+
+ The **data** field of the specified **key** must be a pointer to a logical record number (that is, a **db_recno_t**). This record number determines the record to be retrieved.
+
+ For DB_SET_RECNO to be specified, the underlying database must be of type Btree, and it must have been created with the DB_RECNUM flag.
+
+In addition, the following flags may be set by bitwise inclusively **OR**'ing them into the **flags** parameter:
+
+- `DB_IGNORE_LEASE`
+
+ Return the data item irrespective of the state of master leases. The item will be returned under all conditions: if master leases are not configured, if the request is made to a client, if the request is made to a master with a valid lease, or if the request is made to a master without a valid lease.
+
+- `DB_MULTIPLE`
+
+ Return multiple data items in the buffer to which the **data** parameter refers.
+
+ In the case of Btree or Hash databases, all of the data items associated with the specified key are entered into the buffer. In the case of Queue, Recno or Heap databases, all of the data items in the database, starting at, and subsequent to, the specified key, are entered into the buffer.
+
+ The buffer to which the **data** parameter refers must be provided from user memory (see DB_DBT_USERMEM ). The buffer must be at least as large as the page size of the underlying database, aligned for unsigned integer access, and be a multiple of 1024 bytes in size. If the buffer size is insufficient, then upon return from the call the size field of the **data** parameter will have been set to an estimated buffer size, and the error DB_BUFFER_SMALL is returned. (The size is an estimate as the exact size needed may not be known until all entries are read. It is best to initially provide a relatively large buffer, but applications should be prepared to resize the buffer as necessary and repeatedly call the method.)
+
+ The DB_MULTIPLE flag may only be used alone, or with the DB_GET_BOTH and DB_SET_RECNO options. The DB_MULTIPLE flag may not be used when accessing databases made into secondary indices using the DB->associate() method.
+
+ See the DBT and Bulk Operations for more information on working with bulk get.
+
+- `DB_READ_COMMITTED`
+
+ Configure a transactional get operation to have degree 2 isolation (the read is not repeatable).
+
+- `DB_READ_UNCOMMITTED`
+
+ Configure a transactional get operation to have degree 1 isolation, reading modified but not yet committed data. Silently ignored if the DB_READ_UNCOMMITTED flag was not specified when the underlying database was opened.
+
+- `DB_RMW`
+
+ Acquire write locks instead of read locks when doing the read, if locking is configured. Setting this flag can eliminate deadlock during a read-modify-write cycle by acquiring the write lock during the read part of the cycle so that another thread of control acquiring a read lock for the same item, in its own read-modify-write cycle, will not result in deadlock.
+
+ Because the `DB->get()` method will not hold locks across Berkeley DB calls in non-transactional operations, the DB_RMW flag to the `DB->get()` call is meaningful only in the presence of transactions.
+
+### Errors
+
+The `DB->get()` method may fail and return one of the following non-zero errors:
+
+#### DB_BUFFER_SMALL
+
+The requested item could not be returned due to undersized buffer.
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### DB_LOCK_NOTGRANTED
+
+The `DB_CONSUME_WAIT` flag was specified, lock or transaction timers were configured and the lock could not be granted before the wait-time expired.
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LEASE_EXPIRED
+
+The operation failed because the site's replication master lease has expired.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### DB_SECONDARY_BAD
+
+A secondary index references a nonexistent primary key.
+
+#### EINVAL
+
+If a record number of 0 was specified; the DB_THREAD flag was specified to the DB->open() method and none of the DB_DBT_MALLOC , DB_DBT_REALLOC or DB_DBT_USERMEM flags were set in the DBT ; the `DB->pget()` method was called with a DB handle that does not refer to a secondary index; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbget_bt_minkey.md b/docs-src/api/c/dbget_bt_minkey.md
new file mode 100644
index 000000000..ebe6f9502
--- /dev/null
+++ b/docs-src/api/c/dbget_bt_minkey.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_bt_minkey()"
+api-name: "DB->get_bt_minkey()"
+source: docs/api_reference/C/dbget_bt_minkey.html
+---
+## DB-\>get_bt_minkey()
+
+``` c
+#include
+
+int
+DB->get_bt_minkey(DB *db, u_int32_t *bt_minkeyp);
+```
+
+The `DB->get_bt_minkey()` method returns the minimum number of key/data pairs intended to be stored on any single Btree leaf page. This value can be set using the DB->set_bt_minkey() method.
+
+The `DB->get_bt_minkey()` method may be called at any time during the life of the application.
+
+The `DB->get_bt_minkey()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### bt_minkeyp
+
+The `DB->get_bt_minkey()` method returns the minimum number of key/data pairs intended to be stored on any single Btree leaf page in **bt_minkeyp**.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_bt_minkey()
diff --git a/docs-src/api/c/dbget_byteswapped.md b/docs-src/api/c/dbget_byteswapped.md
new file mode 100644
index 000000000..f90b5b454
--- /dev/null
+++ b/docs-src/api/c/dbget_byteswapped.md
@@ -0,0 +1,41 @@
+---
+title: "DB->get_byteswapped()"
+api-name: "DB->get_byteswapped()"
+source: docs/api_reference/C/dbget_byteswapped.html
+---
+## DB-\>get_byteswapped()
+
+``` c
+#include
+
+int
+DB->get_byteswapped(DB *db, int *isswapped);
+```
+
+The `DB->get_byteswapped()` method returns whether the underlying database files were created on an architecture of the same byte order as the current one, or if they were not (that is, big-endian on a little-endian machine, or vice versa). This information may be used to determine whether application data needs to be adjusted for this architecture or not.
+
+The `DB->get_byteswapped()` method may not be called before the DB->open() method is called.
+
+The `DB->get_byteswapped()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### isswapped
+
+If the underlying database files were created on an architecture of the same byte order as the current one, 0 is stored into the memory location referenced by **isswapped**. If the underlying database files were created on an architecture of a different byte order as the current one, 1 is stored into the memory location referenced by **isswapped**.
+
+### Errors
+
+The `DB->get_byteswapped()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called before DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbget_cachesize.md b/docs-src/api/c/dbget_cachesize.md
new file mode 100644
index 000000000..493d1bc5c
--- /dev/null
+++ b/docs-src/api/c/dbget_cachesize.md
@@ -0,0 +1,42 @@
+---
+title: "DB->get_cachesize()"
+api-name: "DB->get_cachesize()"
+source: docs/api_reference/C/dbget_cachesize.html
+---
+## DB-\>get_cachesize()
+
+``` c
+#include
+
+int
+DB->get_cachesize(DB *db,
+ u_int32_t *gbytesp, u_int32_t *bytesp, int *ncachep);
+```
+
+The `DB->get_cachesize()` method returns the current size and composition of the cache. These values may be set using the DB->set_cachesize() method.
+
+The `DB->get_cachesize()` method may be called at any time during the life of the application.
+
+The `DB->get_cachesize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### gbytesp
+
+The **gbytesp** parameter references memory into which the gigabytes of memory in the cache is copied.
+
+#### bytesp
+
+The **bytesp** parameter references memory into which the additional bytes of memory in the cache is copied.
+
+#### ncachep
+
+The **ncachep** parameter references memory into which the number of caches is copied.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_cachesize()
diff --git a/docs-src/api/c/dbget_create_dir.md b/docs-src/api/c/dbget_create_dir.md
new file mode 100644
index 000000000..2222196bc
--- /dev/null
+++ b/docs-src/api/c/dbget_create_dir.md
@@ -0,0 +1,41 @@
+---
+title: "DB->get_create_dir()"
+api-name: "DB->get_create_dir()"
+source: docs/api_reference/C/dbget_create_dir.html
+---
+## DB-\>get_create_dir()
+
+``` c
+#include
+
+int
+DB->get_create_dir(DB *db, const char **dirp);
+```
+
+Determine which directory a database file will be created in or was found in.
+
+The `DB->get_create_dir()` method may be called at any time.
+
+The `DB->get_create_dir()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dirp
+
+The **dirp** will be set to the directory specified in the call to DB->set_create_dir() method on this handle or to the directory that the database was found in after DB->open() has been called.
+
+### Errors
+
+The `DB->get_create_dir()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbget_dbname.md b/docs-src/api/c/dbget_dbname.md
new file mode 100644
index 000000000..cd92adbd7
--- /dev/null
+++ b/docs-src/api/c/dbget_dbname.md
@@ -0,0 +1,35 @@
+---
+title: "DB->get_dbname()"
+api-name: "DB->get_dbname()"
+source: docs/api_reference/C/dbget_dbname.html
+---
+## DB-\>get_dbname()
+
+``` c
+#include
+
+int
+DB->get_dbname(DB *db, const char **filenamep, const char **dbnamep);
+```
+
+The `DB->get_dbname()` method returns the filename and database name used by the DB handle.
+
+The `DB->get_dbname()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### filenamep
+
+The **filenamep** parameter references memory into which a pointer to the current filename is copied.
+
+#### dbnamep
+
+The **dbnamep** parameter references memory into which a pointer to the current database name is copied.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbget_encrypt_flags.md b/docs-src/api/c/dbget_encrypt_flags.md
new file mode 100644
index 000000000..549777d18
--- /dev/null
+++ b/docs-src/api/c/dbget_encrypt_flags.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_encrypt_flags()"
+api-name: "DB->get_encrypt_flags()"
+source: docs/api_reference/C/dbget_encrypt_flags.html
+---
+## DB-\>get_encrypt_flags()
+
+``` c
+#include
+
+int
+DB->get_encrypt_flags(DB *db, u_int32_t *flagsp);
+```
+
+The `DB->get_encrypt_flags()` method returns the encryption flags. This flag can be set using the DB->set_encrypt() method.
+
+The `DB->get_encrypt_flags()` method may be called at any time during the life of the application.
+
+The `DB->get_encrypt_flags()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flagsp
+
+The `DB->get_encrypt_flags()` method returns the encryption flags in **flagsp**.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_encrypt()
diff --git a/docs-src/api/c/dbget_errfile.md b/docs-src/api/c/dbget_errfile.md
new file mode 100644
index 000000000..d08ac1d6f
--- /dev/null
+++ b/docs-src/api/c/dbget_errfile.md
@@ -0,0 +1,31 @@
+---
+title: "DB->get_errfile()"
+api-name: "DB->get_errfile()"
+source: docs/api_reference/C/dbget_errfile.html
+---
+## DB-\>get_errfile()
+
+``` c
+#include
+
+void
+DB->get_errfile(DB *db, FILE **errfilep);
+```
+
+The `DB->get_errfile()` method returns the `FILE *`, as set by the DB->set_errfile() method.
+
+The `DB->get_errfile()` method may be called at any time during the life of the application.
+
+### Parameters
+
+#### errfilep
+
+The `DB->get_errfile()` method returns the FILE \* in **errfilep**.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_errfile()
diff --git a/docs-src/api/c/dbget_errpfx.md b/docs-src/api/c/dbget_errpfx.md
new file mode 100644
index 000000000..b37de8f25
--- /dev/null
+++ b/docs-src/api/c/dbget_errpfx.md
@@ -0,0 +1,30 @@
+---
+title: "DB->get_errpfx()"
+api-name: "DB->get_errpfx()"
+source: docs/api_reference/C/dbget_errpfx.html
+---
+## DB-\>get_errpfx()
+
+``` c
+#include
+
+void DB->get_errpfx(DB *db, const char **errpfxp);
+```
+
+The `DB->get_errpfx()` method returns the error prefix.
+
+The `DB->get_errpfx()` method may be called at any time during the life of the application.
+
+### Parameters
+
+#### errpfxp
+
+The `DB->get_errpfx()` method returns a reference to the error prefix in **errpfxp**.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_errpfx()
diff --git a/docs-src/api/c/dbget_flags.md b/docs-src/api/c/dbget_flags.md
new file mode 100644
index 000000000..6a805c8fd
--- /dev/null
+++ b/docs-src/api/c/dbget_flags.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_flags()"
+api-name: "DB->get_flags()"
+source: docs/api_reference/C/dbget_flags.html
+---
+## DB-\>get_flags()
+
+``` c
+#include
+
+int
+DB->get_flags(DB *db, u_int32_t *flagsp);
+```
+
+The `DB->get_flags()` method returns the current database flags as set by the DB->set_flags() method.
+
+The `DB->get_flags()` method may be called at any time during the life of the application.
+
+The `DB->get_flags()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flagsp
+
+The `DB->get_flags()` method returns the current flags in **flagsp**.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_flags()
diff --git a/docs-src/api/c/dbget_h_ffactor.md b/docs-src/api/c/dbget_h_ffactor.md
new file mode 100644
index 000000000..ead783567
--- /dev/null
+++ b/docs-src/api/c/dbget_h_ffactor.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_h_ffactor()"
+api-name: "DB->get_h_ffactor()"
+source: docs/api_reference/C/dbget_h_ffactor.html
+---
+## DB-\>get_h_ffactor()
+
+``` c
+#include
+
+int
+DB->get_h_ffactor(DB *db, u_int32_t *h_ffactorp);
+```
+
+The `DB->get_h_ffactor()` method returns the hash table density as set by the DB->set_h_ffactor() method. The hash table density is the number of items that Berkeley DB tries to place in a hash bucket before splitting the hash bucket.
+
+The `DB->get_h_ffactor()` method may be called at any time during the life of the application.
+
+The `DB->get_h_ffactor()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### h_ffactorp
+
+The `DB->get_h_ffactor()` method returns the hash table density in **h_ffactorp**.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_h_ffactor()
diff --git a/docs-src/api/c/dbget_h_nelem.md b/docs-src/api/c/dbget_h_nelem.md
new file mode 100644
index 000000000..abf29f2c8
--- /dev/null
+++ b/docs-src/api/c/dbget_h_nelem.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_h_nelem()"
+api-name: "DB->get_h_nelem()"
+source: docs/api_reference/C/dbget_h_nelem.html
+---
+## DB-\>get_h_nelem()
+
+``` c
+#include
+
+int
+DB->get_h_nelem(DB *db, u_int32_t *h_nelemp);
+```
+
+The `DB->get_h_nelem()` method returns the estimate of the final size of the hash table as set by the DB->set_h_nelem() method.
+
+The `DB->get_h_nelem()` method may be called at any time during the life of the application.
+
+The `DB->get_h_nelem()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### h_nelemp
+
+The `DB->get_h_nelem()` method returns the estimate of the final size of the hash table in **h_nelemp**.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_h_nelem()
diff --git a/docs-src/api/c/dbget_heap_regionsize.md b/docs-src/api/c/dbget_heap_regionsize.md
new file mode 100644
index 000000000..621e1cab8
--- /dev/null
+++ b/docs-src/api/c/dbget_heap_regionsize.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_heap_regionsize()"
+api-name: "DB->get_heap_regionsize()"
+source: docs/api_reference/C/dbget_heap_regionsize.html
+---
+## DB-\>get_heap_regionsize()
+
+``` c
+#include
+
+int
+DB->get_heap_regionsize(DB *db, u_int32_t *npagesp);
+```
+
+Used when the underlying database is configured to use the Heap access method. This method returns the number of pages in a region. This value may be set using the DB->set_heap_regionsize() method.
+
+The `DB->get_heap_regionsize()` method may be called at any time during the life of the application.
+
+The `DB->get_heap_regionsize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### npagesp
+
+The **npagesp** parameter references memory into which is copied the number of pages in a region.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_heap_regionsize()
diff --git a/docs-src/api/c/dbget_heapsize.md b/docs-src/api/c/dbget_heapsize.md
new file mode 100644
index 000000000..add400927
--- /dev/null
+++ b/docs-src/api/c/dbget_heapsize.md
@@ -0,0 +1,37 @@
+---
+title: "DB->get_heapsize()"
+api-name: "DB->get_heapsize()"
+source: docs/api_reference/C/dbget_heapsize.html
+---
+## DB-\>get_heapsize()
+
+``` c
+#include
+
+int
+DB->get_heapsize(DB *db, u_int32_t *gbytesp, u_int32_t *bytesp);
+```
+
+Used when the underlying database is configured to use the Heap access method. This method returns the maximum size of the database's heap file. This value may be set using the DB->set_heapsize() method.
+
+The `DB->get_heapsize()` method may be called at any time during the life of the application.
+
+The `DB->get_heapsize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### gbytesp
+
+The **gbytesp** parameter references memory into which is copied the maximum number of gigabytes in the heap.
+
+#### bytesp
+
+The **bytesp** parameter references memory into which is copied the additional bytes in the heap.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_heapsize()
diff --git a/docs-src/api/c/dbget_lk_exclusive.md b/docs-src/api/c/dbget_lk_exclusive.md
new file mode 100644
index 000000000..f87a1e668
--- /dev/null
+++ b/docs-src/api/c/dbget_lk_exclusive.md
@@ -0,0 +1,37 @@
+---
+title: "DB->get_lk_exclusive()"
+api-name: "DB->get_lk_exclusive()"
+source: docs/api_reference/C/dbget_lk_exclusive.html
+---
+## DB-\>get_lk_exclusive()
+
+``` c
+#include
+
+int
+DB->get_lk_exclusive(DB *db, int *onoff, int *nowait);
+```
+
+Returns whether the database handle is configured to obtain a write lock on the entire database. This can be set using the DB->set_lk_exclusive() method.
+
+The `DB->get_lk_exclusive()` method may be called at any time during the life of the application.
+
+The `DB->get_lk_exclusive()` always returns `0`.
+
+### Parameters
+
+#### onoff
+
+Indicates whether the handle is configured for exclusive database locking. If `0`, it is not configured for exclusive locking. If `1`, then it is configured for exclusive locking.
+
+#### nowait
+
+Indicates whether the handle is configured for immediate locking. If `0`, then the locking operation will block until it can obtain an exclusive database lock. If `1`, then the locking operation will error out if it cannot immediately obtain an exclusive lock.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_lk_exclusive()
diff --git a/docs-src/api/c/dbget_lorder.md b/docs-src/api/c/dbget_lorder.md
new file mode 100644
index 000000000..eecbcfc53
--- /dev/null
+++ b/docs-src/api/c/dbget_lorder.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_lorder()"
+api-name: "DB->get_lorder()"
+source: docs/api_reference/C/dbget_lorder.html
+---
+## DB-\>get_lorder()
+
+``` c
+#include
+
+int
+DB->get_lorder(DB *db, int *lorderp);
+```
+
+The `DB->get_lorder()` method returns the database byte order; a byte order of 4,321 indicates a big endian order, and a byte order of 1,234 indicates a little endian order. This value is set using the DB->set_lorder() method.
+
+The `DB->get_lorder()` method may be called at any time during the life of the application.
+
+The `DB->get_lorder()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### lorderp
+
+The `DB->get_lorder()` method returns the database byte order in **lorderp**.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_lorder()
diff --git a/docs-src/api/c/dbget_mpf.md b/docs-src/api/c/dbget_mpf.md
new file mode 100644
index 000000000..65ded4456
--- /dev/null
+++ b/docs-src/api/c/dbget_mpf.md
@@ -0,0 +1,27 @@
+---
+title: "DB->get_mpf()"
+api-name: "DB->get_mpf()"
+source: docs/api_reference/C/dbget_mpf.html
+---
+## DB-\>get_mpf()
+
+``` c
+#include
+
+DB_MPOOLFILE *
+DB->get_mpf(DB *db);
+```
+
+The `DB->get_mpf()` method returns the handle for the cache file underlying the database.
+
+The `DB->get_mpf()` method should be used with caution on a replication client site. This method exposes an internal structure that may not be valid after a client site synchronizes with its master site.
+
+The `DB->get_mpf()` method may be called at any time during the life of the application.
+
+### Class
+
+DB
+
+### See Also
+
+Memory Pools and Related Methods
diff --git a/docs-src/api/c/dbget_msgfile.md b/docs-src/api/c/dbget_msgfile.md
new file mode 100644
index 000000000..72867dc88
--- /dev/null
+++ b/docs-src/api/c/dbget_msgfile.md
@@ -0,0 +1,31 @@
+---
+title: "DB->get_msgfile()"
+api-name: "DB->get_msgfile()"
+source: docs/api_reference/C/dbget_msgfile.html
+---
+## DB-\>get_msgfile()
+
+``` c
+#include
+
+void
+DB->get_msgfile(DB *db, FILE **msgfilep);
+```
+
+The `DB->get_msgfile()` method returns the `FILE *` used to output informational or statistical messages. This file handle is configured using the DB->set_msgfile() method.
+
+The `DB->get_msgfile()` method may be called at any time during the life of the application.
+
+### Parameters
+
+#### msgfilep
+
+The `DB->get_msgfile()` method returns the `FILE *` in **msgfilep**.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_msgfile()
diff --git a/docs-src/api/c/dbget_multiple.md b/docs-src/api/c/dbget_multiple.md
new file mode 100644
index 000000000..b2bca808c
--- /dev/null
+++ b/docs-src/api/c/dbget_multiple.md
@@ -0,0 +1,27 @@
+---
+title: "DB->get_multiple()"
+api-name: "DB->get_multiple()"
+source: docs/api_reference/C/dbget_multiple.html
+---
+## DB-\>get_multiple()
+
+``` c
+#include
+
+int
+DB->get_multiple(DB *db);
+```
+
+This method returns non-zero if the DB handle references a physical file supporting multiple databases, and 0 otherwise.
+
+In this case, the DB handle is a handle on a database whose key values are the names of the databases stored in the physical file and whose data values are opaque objects. No keys or data values may be modified or stored using the database handle.
+
+This method may not be called before the DB->open() method is called.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbget_open_flags.md b/docs-src/api/c/dbget_open_flags.md
new file mode 100644
index 000000000..49ae0774d
--- /dev/null
+++ b/docs-src/api/c/dbget_open_flags.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_open_flags()"
+api-name: "DB->get_open_flags()"
+source: docs/api_reference/C/dbget_open_flags.html
+---
+## DB-\>get_open_flags()
+
+``` c
+#include
+
+int
+DB->get_open_flags(DB *db, u_int32_t *flagsp);
+```
+
+The `DB->get_open_flags()` method returns the current open method flags. That is, this method returns the flags that were specified when DB->open() was called.
+
+The `DB->get_open_flags()` method may not be called before the `DB->open()` method is called.
+
+The `DB->get_open_flags()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flagsp
+
+The `DB->get_open_flags()` method returns the current open method flags in **flagsp**.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbget_pagesize.md b/docs-src/api/c/dbget_pagesize.md
new file mode 100644
index 000000000..af048ab48
--- /dev/null
+++ b/docs-src/api/c/dbget_pagesize.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_pagesize()"
+api-name: "DB->get_pagesize()"
+source: docs/api_reference/C/dbget_pagesize.html
+---
+## DB-\>get_pagesize()
+
+``` c
+#include
+
+int
+DB->get_pagesize(DB *db, u_int32_t *pagesizep);
+```
+
+The `DB->get_pagesize()` method returns the database's current page size, as set by the DB->set_pagesize() method. Note that if `DB->set_pagesize()` was not called by your application, then the default pagesize is selected based on the underlying filesystem I/O block size. If you call `DB->get_pagesize()` before you have opened the database, the value returned by this method is therefore the underlying filesystem I/O block size.
+
+The `DB->get_pagesize()` method may be called only after the database has been opened.
+
+The `DB->get_pagesize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### pagesizep
+
+The `DB->get_pagesize()` method returns the page size in **pagesizep**.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_pagesize()
diff --git a/docs-src/api/c/dbget_partition_callback.md b/docs-src/api/c/dbget_partition_callback.md
new file mode 100644
index 000000000..aadd50725
--- /dev/null
+++ b/docs-src/api/c/dbget_partition_callback.md
@@ -0,0 +1,38 @@
+---
+title: "DB->get_partition_callback()"
+api-name: "DB->get_partition_callback()"
+source: docs/api_reference/C/dbget_partition_callback.html
+---
+## DB-\>get_partition_callback()
+
+``` c
+#include
+
+int
+DB->get_partition_callback(DB *db, u_int32_t *partsp,
+ u_int32_t (**callback_fcn) (DB *dbp, DBT *key);
+```
+
+The `DB->get_partition_callback()` method returns the partitioning information as set by the DB->set_partition() method.
+
+The `DB->get_partition_callback()` method may be called at any time during the life of the application.
+
+The `DB->get_partition_callback()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### partsp
+
+The `DB->get_partition_callback()` method returns number of partitions in the **partsp** parameter.
+
+#### callback_fcn
+
+The **callback_fcn** parameter will be set to the partitioning function.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_partition()
diff --git a/docs-src/api/c/dbget_partition_dirs.md b/docs-src/api/c/dbget_partition_dirs.md
new file mode 100644
index 000000000..52d6e88ee
--- /dev/null
+++ b/docs-src/api/c/dbget_partition_dirs.md
@@ -0,0 +1,41 @@
+---
+title: "DB->get_partition_dirs()"
+api-name: "DB->get_partition_dirs()"
+source: docs/api_reference/C/dbget_partition_dirs.html
+---
+## DB-\>get_partition_dirs()
+
+``` c
+#include
+
+int
+DB->get_partition_dirs(DB *db, const char ***dirsp);
+```
+
+Determine which directorise the database partitions files will be created in or were found in.
+
+The `DB->get_partition_dirs()` method may be called at any time.
+
+The `DB->get_partition_dirs()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dirsp
+
+The **dirsp** will be set to the array of directories specified in the call to DB->set_partition_dirs() method on this handle or to the directoreies that the database partitions were found in after DB->open() has been called.
+
+### Errors
+
+The `DB->get_partition_dirs()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbget_partition_keys.md b/docs-src/api/c/dbget_partition_keys.md
new file mode 100644
index 000000000..bbb64bff8
--- /dev/null
+++ b/docs-src/api/c/dbget_partition_keys.md
@@ -0,0 +1,37 @@
+---
+title: "DB->get_partition_keys()"
+api-name: "DB->get_partition_keys()"
+source: docs/api_reference/C/dbget_partition_keys.html
+---
+## DB-\>get_partition_keys()
+
+``` c
+#include
+
+int
+DB->get_partition_keys(DB *db, u_int32_t *partsp, DBT *keysp);
+```
+
+The `DB->get_partition_keys()` method returns the partitioning information as set by the DB->set_partition() method.
+
+The `DB->get_partition_keys()` method may be called at any time during the life of the application.
+
+The `DB->get_partition_keys()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### partsp
+
+The `DB->get_partition_keys()` method returns number of partitions in the **partsp** parameter.
+
+#### keysp
+
+The **keysp** parameter will be set to the array of partitioning keys.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_partition()
diff --git a/docs-src/api/c/dbget_priority.md b/docs-src/api/c/dbget_priority.md
new file mode 100644
index 000000000..f664db5a7
--- /dev/null
+++ b/docs-src/api/c/dbget_priority.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_priority()"
+api-name: "DB->get_priority()"
+source: docs/api_reference/C/dbget_priority.html
+---
+## DB-\>get_priority()
+
+``` c
+#include
+
+int
+DB->get_priority(DB *db, DB_CACHE_PRIORITY *priorityp);
+```
+
+The `DB->get_priority()` method returns the cache priority for pages referenced by the DB handle. This priority value is set using the DB->set_priority() method.
+
+The `DB->get_priority()` method may be called only after the database has been opened.
+
+The `DB->get_priority()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### priorityp
+
+The `DB->get_priority()` method returns a reference to the cache priority in **priorityp**. See DB->set_priority() for a list of possible priorities.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_priority()
diff --git a/docs-src/api/c/dbget_q_extentsize.md b/docs-src/api/c/dbget_q_extentsize.md
new file mode 100644
index 000000000..26daf5a2c
--- /dev/null
+++ b/docs-src/api/c/dbget_q_extentsize.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_q_extentsize()"
+api-name: "DB->get_q_extentsize()"
+source: docs/api_reference/C/dbget_q_extentsize.html
+---
+## DB-\>get_q_extentsize()
+
+``` c
+#include
+
+int
+DB->get_q_extentsize(DB *db, u_int32_t *extentsizep);
+```
+
+The `DB->get_q_extentsize()` method returns the number of pages in an extent. This value is used only for Queue databases and is set using the DB->set_q_extentsize() method.
+
+The `DB->get_q_extentsize()` method may be called only after the database has been opened.
+
+The `DB->get_q_extentsize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### extentsizep
+
+The `DB->get_q_extentsize()` method returns the number of pages in an extent in **extentsizep**. If used on a handle that has not yet been opened, `0` is returned.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_q_extentsize()
diff --git a/docs-src/api/c/dbget_re_delim.md b/docs-src/api/c/dbget_re_delim.md
new file mode 100644
index 000000000..10e777d91
--- /dev/null
+++ b/docs-src/api/c/dbget_re_delim.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_re_delim()"
+api-name: "DB->get_re_delim()"
+source: docs/api_reference/C/dbget_re_delim.html
+---
+## DB-\>get_re_delim()
+
+``` c
+#include
+
+int
+DB->get_re_delim(DB *db, int *delimp);
+```
+
+The `DB->get_re_delim()` method returns the delimiting byte, which is used to mark the end of a record in the backing source file for the Recno access method. This value is set using the DB->set_re_delim() method.
+
+The `DB->get_re_delim()` method may be called only after the database has been opened.
+
+The `DB->get_re_delim()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### delimp
+
+The `DB->get_re_delim()` method returns the delimiting byte in **delimp**. If this method is called on a handle that has not yet been opened, then the default delimiting byte is returned. See DB->set_re_delim() for details.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_re_delim()
diff --git a/docs-src/api/c/dbget_re_len.md b/docs-src/api/c/dbget_re_len.md
new file mode 100644
index 000000000..c6cf4d497
--- /dev/null
+++ b/docs-src/api/c/dbget_re_len.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_re_len()"
+api-name: "DB->get_re_len()"
+source: docs/api_reference/C/dbget_re_len.html
+---
+## DB-\>get_re_len()
+
+``` c
+#include
+
+int
+DB->get_re_len(DB *db, u_int32_t *re_lenp);
+```
+
+The `DB->get_re_len()` method returns the length of the records held in a Queue access method database. This value can be set using the DB->set_re_len() method.
+
+The `DB->get_re_len()` method may be called only after the database has been opened.
+
+The `DB->get_re_len()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### re_lenp
+
+The `DB->get_re_len()` method returns the record length in **re_lenp**. If the record length has never been set using DB->set_re_len() , then `0` is returned.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_re_len()
diff --git a/docs-src/api/c/dbget_re_pad.md b/docs-src/api/c/dbget_re_pad.md
new file mode 100644
index 000000000..fcddff551
--- /dev/null
+++ b/docs-src/api/c/dbget_re_pad.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_re_pad()"
+api-name: "DB->get_re_pad()"
+source: docs/api_reference/C/dbget_re_pad.html
+---
+## DB-\>get_re_pad()
+
+``` c
+#include
+
+int
+DB->get_re_pad(DB *db, int *re_padp);
+```
+
+The `DB->get_re_pad()` method returns the pad character used for short, fixed-length records used by the Queue and Recno access methods. This character is set using the DB->set_re_pad() method.
+
+The `DB->get_re_pad()` method may be called only after the database has been opened.
+
+The `DB->get_re_pad()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### re_padp
+
+The `DB->get_re_pad()` method returns the pad character in **re_padp**. If used on a handle that has not yet been opened, the default pad character is returned. See the DB->set_re_pad() method description for what that default value is.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_re_pad()
diff --git a/docs-src/api/c/dbget_re_source.md b/docs-src/api/c/dbget_re_source.md
new file mode 100644
index 000000000..441a1259d
--- /dev/null
+++ b/docs-src/api/c/dbget_re_source.md
@@ -0,0 +1,33 @@
+---
+title: "DB->get_re_source()"
+api-name: "DB->get_re_source()"
+source: docs/api_reference/C/dbget_re_source.html
+---
+## DB-\>get_re_source()
+
+``` c
+#include
+
+int
+DB->get_re_source(DB *db, const char **sourcep);
+```
+
+The `DB->get_re_source()` method returns the source file used by the Recno access method. This file is configured for the Recno access method using the DB->set_re_source() method.
+
+The `DB->get_re_source()` method may be called only after the database has been opened.
+
+The `DB->get_re_source()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### sourcep
+
+The `DB->get_re_source()` method returns a reference to the source file in **sourcep**.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->set_re_source()
diff --git a/docs-src/api/c/dbget_transactional.md b/docs-src/api/c/dbget_transactional.md
new file mode 100644
index 000000000..db091f073
--- /dev/null
+++ b/docs-src/api/c/dbget_transactional.md
@@ -0,0 +1,25 @@
+---
+title: "DB->get_transactional()"
+api-name: "DB->get_transactional()"
+source: docs/api_reference/C/dbget_transactional.html
+---
+## DB-\>get_transactional()
+
+``` c
+#include
+
+int
+DB->get_transactional(DB *db);
+```
+
+The `DB->get_transactional()` method returns non-zero if the DB handle has been opened in a transactional mode, otherwise it returns `0`.
+
+The `DB->get_transactional()` method may be called at any time during the life of the application.
+
+### Class
+
+DB
+
+### See Also
+
+Transaction Subsystem and Related Methods
diff --git a/docs-src/api/c/dbget_type.md b/docs-src/api/c/dbget_type.md
new file mode 100644
index 000000000..d23283fef
--- /dev/null
+++ b/docs-src/api/c/dbget_type.md
@@ -0,0 +1,41 @@
+---
+title: "DB->get_type()"
+api-name: "DB->get_type()"
+source: docs/api_reference/C/dbget_type.html
+---
+## DB-\>get_type()
+
+``` c
+#include
+
+int
+DB->get_type(DB *db, DBTYPE *type);
+```
+
+The `DB->get_type()` method returns the type of the underlying access method (and file format). The type value is one of DB_BTREE, DB_HASH, DB_RECNO, or DB_QUEUE. This value may be used to determine the type of the database after a return from DB->open() with the **type** parameter set to DB_UNKNOWN.
+
+The `DB->get_type()` method may not be called before the DB->open() method is called.
+
+The `DB->get_type()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### type
+
+The **type** parameter references memory into which the type of the underlying access method is copied.
+
+### Errors
+
+The `DB->get_type()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called before DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbgetenv.md b/docs-src/api/c/dbgetenv.md
new file mode 100644
index 000000000..29ec5b569
--- /dev/null
+++ b/docs-src/api/c/dbgetenv.md
@@ -0,0 +1,25 @@
+---
+title: "DB->get_env()"
+api-name: "DB->get_env()"
+source: docs/api_reference/C/dbgetenv.html
+---
+## DB-\>get_env()
+
+``` c
+#include
+
+DB_ENV *
+DB->get_env(DB *db);
+```
+
+The `DB->get_env()` method returns the handle for the database environment underlying the database.
+
+The `DB->get_env()` method may be called at any time during the life of the application.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbjoin.md b/docs-src/api/c/dbjoin.md
new file mode 100644
index 000000000..b86a2b8e4
--- /dev/null
+++ b/docs-src/api/c/dbjoin.md
@@ -0,0 +1,94 @@
+---
+title: "DB->join()"
+api-name: "DB->join()"
+source: docs/api_reference/C/dbjoin.html
+---
+## DB-\>join()
+
+``` c
+#include
+
+int
+DB->join(DB *primary,
+ DBC **curslist, DBC **dbcp, u_int32_t flags);
+```
+
+The `DB->join()` method creates a specialized join cursor for use in performing equality or natural joins on secondary indices. For information on how to organize your data to use this functionality, see Equality join .
+
+The `DB->join()` method is called using the DB handle of the primary database.
+
+The join cursor supports only the DBcursor->get() and DBcursor->close() cursor functions:
+
+- **DBcursor->get() **
+
+ Iterates over the values associated with the keys to which each item in **curslist** was initialized. Any data value that appears in all items specified by the **curslist** parameter is then used as a key into the **primary**, and the key/data pair found in the **primary** is returned. The **flags** parameter must be set to 0 or the following value:
+
+ - **`DB_JOIN_ITEM`**
+
+ Do not use the data value found in all the cursors as a lookup key for the **primary**, but simply return it in the key parameter instead. The data parameter is left unchanged.
+
+ In addition, the following flag may be set by bitwise inclusively **OR**'ing it into the **flags** parameter:
+
+ - **`DB_READ_UNCOMMITTED`**
+
+ Configure a transactional join operation to have degree 1 isolation, reading modified but not yet committed data. Silently ignored if the DB_READ_UNCOMMITTED flag was not specified when the underlying database was opened.
+
+ - **`DB_RMW`**
+
+ Acquire write locks instead of read locks when doing the read, if locking is configured. Setting this flag can eliminate deadlock during a read-modify-write cycle by acquiring the write lock during the read part of the cycle so that another thread of control acquiring a read lock for the same item, in its own read-modify-write cycle, will not result in deadlock.
+
+- **DBcursor->close() **
+
+ Close the returned cursor and release all resources. (Closing the cursors in **curslist** is the responsibility of the caller.)
+
+The `DB->join()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### curslist
+
+The **curslist** parameter contains a NULL terminated array of cursors. Each cursor must have been initialized to refer to the key on which the underlying database should be joined. Typically, this initialization is done by a DBcursor->get() call with the DB_SET flag specified. Once the cursors have been passed as part of a **curslist**, they should not be accessed or modified until the newly created join cursor has been closed, or else inconsistent results may be returned.
+
+Joined values are retrieved by doing a sequential iteration over the first cursor in the **curslist** parameter, and a nested iteration over each secondary cursor in the order they are specified in the **curslist** parameter. This requires database traversals to search for the current datum in all the cursors after the first. For this reason, the best join performance normally results from sorting the cursors from the one that refers to the least number of data items to the one that refers to the most. By default, `DB->join()` does this sort on behalf of its caller.
+
+For the returned join cursor to be used in a transaction-protected manner, the cursors listed in **curslist** must have been created within the context of the same transaction.
+
+#### dbcp
+
+The newly created join cursor is returned in the memory location to which **dbcp** refers.
+
+#### flags
+
+The **flags** parameter must be set to 0 or the following value:
+
+- `DB_JOIN_NOSORT`
+
+ Do not sort the cursors based on the number of data items to which they refer. If the data are structured so that cursors with many data items also share many common elements, higher performance will result from listing those cursors before cursors with fewer data items; that is, a sort order other than the default. The DB_JOIN_NOSORT flag permits applications to perform join optimization prior to calling the `DB->join()` method.
+
+### Errors
+
+The `DB->join()` method may fail and return one of the following non-zero errors:
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### DB_SECONDARY_BAD
+
+A secondary index references a nonexistent primary key.
+
+#### EINVAL
+
+If cursor methods other than DBcursor->get() or DBcursor->close() were called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbkey_range.md b/docs-src/api/c/dbkey_range.md
new file mode 100644
index 000000000..e07888215
--- /dev/null
+++ b/docs-src/api/c/dbkey_range.md
@@ -0,0 +1,86 @@
+---
+title: "DB->key_range()"
+api-name: "DB->key_range()"
+source: docs/api_reference/C/dbkey_range.html
+---
+## DB-\>key_range()
+
+``` c
+#include
+
+int
+DB->key_range(DB *db, DB_TXN *txnid,
+ DBT *key, DB_KEY_RANGE *key_range, u_int32_t flags);
+```
+
+The `DB->key_range()` method returns an estimate of the proportion of keys that are less than, equal to, and greater than the specified key. The underlying database must be of type Btree.
+
+The `DB->key_range()` method fills in a structure of type DB_KEY_RANGE. The following data fields are available from the DB_KEY_RANGE structure:
+
+- **double less;**
+
+ A value between 0 and 1, the proportion of keys less than the specified key.
+
+- **double equal;**
+
+ A value between 0 and 1, the proportion of keys equal to the specified key.
+
+- **double greater;**
+
+ A value between 0 and 1, the proportion of keys greater than the specified key.
+
+Values are in the range of 0 to 1; for example, if the field **less** is 0.05, 5% of the keys in the database are less than the **key** parameter. The value for **equal** will be zero if there is no matching key, and will be non-zero otherwise.
+
+The `DB->key_range()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### txnid
+
+If the operation is part of an application-specified transaction, the **txnid** parameter is a transaction handle returned from DB_ENV->txn_begin() ; if the operation is part of a Berkeley DB Concurrent Data Store group, the **txnid** parameter is a handle returned from DB_ENV->cdsgroup_begin() ; otherwise NULL. If no transaction handle is specified, but the operation occurs in a transactional database, the operation will be implicitly transaction protected. The `DB->key_range()` method does not retain the locks it acquires for the life of the transaction, so estimates may not be repeatable.
+
+#### key
+
+The key DBT operated on.
+
+#### key_range
+
+The estimates are returned in the **key_range** parameter, which contains three elements of type double: **less**, **equal**, and **greater**. Values are in the range of 0 to 1; for example, if the field **less** is 0.05, 5% of the keys in the database are less than the **key** parameter. The value for **equal** will be zero if there is no matching key, and will be non-zero otherwise.
+
+#### flags
+
+The **flags** parameter is currently unused, and must be set to 0.
+
+### Errors
+
+The `DB->key_range()` method may fail and return one of the following non-zero errors:
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### EINVAL
+
+If the underlying database was not of type Btree; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbm.md b/docs-src/api/c/dbm.md
new file mode 100644
index 000000000..650843555
--- /dev/null
+++ b/docs-src/api/c/dbm.md
@@ -0,0 +1,171 @@
+---
+title: "dbm/ndbm"
+api-name: "dbm/ndbm"
+source: docs/api_reference/C/dbm.html
+---
+## dbm/ndbm
+
+``` c
+#define DB_DBM_HSEARCH 1
+#include
+
+typedef struct {
+ char *dptr;
+ int dsize;
+} datum;
+```
+
+**Dbm Functions**
+
+``` c
+int
+dbminit(char *file);
+
+int
+dbmclose();
+
+datum
+fetch(datum key);
+
+int
+store(datum key, datum content);
+
+int
+delete(datum key);
+
+datum
+firstkey(void);
+
+datum
+nextkey(datum key);
+```
+
+**Ndbm Functions**
+
+``` c
+DBM *
+dbm_open(char *file, int flags, int mode);
+
+void
+dbm_close(DBM *db);
+
+datum
+dbm_fetch(DBM *db, datum key);
+
+int
+dbm_store(DBM *db, datum key, datum content, int flags);
+
+int
+dbm_delete(DBM *db, datum key);
+
+datum
+dbm_firstkey(DBM *db);
+
+datum
+dbm_nextkey(DBM *db);
+
+int
+dbm_error(DBM *db);
+
+int
+dbm_clearerr(DBM *db);
+```
+
+The dbm functions are intended to provide high-performance implementations and source code compatibility for applications written to historic interfaces. They are not recommended for any other purpose. The historic dbm database format **is not supported**, and databases previously built using the real dbm libraries cannot be read by the Berkeley DB functions.
+
+To compile dbm applications, replace the application's **\#include** of the dbm or ndbm include file (for example, **\#include \** or **\#include \**) with the following two lines:
+
+``` c
+#define DB_DBM_HSEARCH 1
+#include
+```
+
+and recompile. If the application attempts to load against a dbm library (for example, **-ldbm**), remove the library from the load line.
+
+**Key** and **content** parameters are objects described by the **datum** typedef. A **datum** specifies a string of **dsize** bytes pointed to by **dptr**. Arbitrary binary data, as well as normal text strings, are allowed.
+
+### Dbm Functions
+
+Before a database can be accessed, it must be opened by dbminit. This will open and/or create the database **file.db**. If created, the database file is created read/write by owner only (as described in **chmod**(2)) and modified by the process' umask value at the time of creation (see **umask**(2)). The group ownership of created files is based on the system and directory defaults, and is not further specified by Berkeley DB.
+
+A database may be closed, and any held resources released, by calling dbmclose.
+
+Once open, the data stored under a key is accessed by fetch, and data is placed under a key by store. A key (and its associated contents) are deleted by delete. A linear pass through all keys in a database may be made, in an (apparently) random order, by using firstkey and nextkey. The firstkey method will return the first key in the databaseThe nextkey method will return the next key in satabase.
+
+The following code will traverse the database:
+
+``` c
+for (key = firstkey(key);
+ key.dptr != NULL; key = nextkey(key)) {
+ ...
+}
+```
+
+### Ndbm Functions
+
+Before a database can be accessed, it must be opened by dbm_open. This will open and/or create the database file **file.db**, depending on the flags parameter (see **open**(2)). If created, the database file is created with mode **mode** (as described in **chmod**(2)) and modified by the process' umask value at the time of creation (see **umask**(2)). The group ownership of created files is based on the system and directory defaults, and is not further specified by Berkeley DB.
+
+Once open, the data stored under a key is accessed by dbm_fetch, and data is placed under a key by dbm_store. The **flags** field can be either **DBM_INSERT** or **DBM_REPLACE**. **DBM_INSERT** will only insert new entries into the database, and will not change an existing entry with the same key. **DBM_REPLACE** will replace an existing entry if it has the same key. A key (and its associated contents) are deleted by dbm_delete. A linear pass through all keys in a database may be made, in an (apparently) random order, by using dbm_firstkey and dbm_nextkey. The dbm_firstkey method will return the first key in the database. The dbm_nextkey method will return the next key in the database.
+
+The following code will traverse the database:
+
+``` c
+for (key = dbm_firstkey(db);
+ key.dptr != NULL; key = dbm_nextkey(db)) {
+ ...
+}
+```
+
+### Compatibility Notes
+
+The historic dbm library created two underlying database files, traditionally named **file.dir** and **file.pag**. The Berkeley DB library creates a single database file named **file.db**. Applications that are aware of the underlying database filenames may require additional source code modifications.
+
+The historic dbminit function required that the underlying **.dir** and **.pag** files already exist (empty databases were created by first manually creating zero-length **.dir** and **.pag** files). Applications that expect to create databases using this method may require additional source code modifications.
+
+The historic dbm_dirfno and dbm_pagfno macros are supported, but will return identical file descriptors because there is only a single underlying file used by the Berkeley DB hashing access method. Applications using both file descriptors for locking may require additional source code modifications.
+
+If applications using the dbm function exits without first closing the database, it may lose updates because the Berkeley DB library buffers writes to underlying databases. Such applications will require additional source code modifications to work correctly with the Berkeley DB library.
+
+### Dbm Diagnostics
+
+The dbminit function returns -1 on failure, setting **errno**, and 0 on success.
+
+The fetch function sets the **dptr** field of the returned **datum** to NULL on failure, setting **errno**, and returns a non-NULL **dptr** on success.
+
+The store function returns -1 on failure, setting **errno**, and 0 on success.
+
+The delete function returns -1 on failure, setting **errno**, and 0 on success.
+
+The firstkey function sets the **dptr** field of the returned **datum** to NULL on failure, setting **errno**, and returns a non-NULL **dptr** on success.
+
+The nextkey function sets the **dptr** field of the returned **datum** to NULL on failure, setting **errno**, and returns a non-NULL **dptr** on success.
+
+### Dbm Errors
+
+The dbminit, fetch, store, delete, firstkey, and nextkey functions may fail and return an error for errors specified for other Berkeley DB and C library or system functions.
+
+### Ndbm Diagnostics
+
+The dbm_close method returns non-zero when an error has occurred reading or writing the database.
+
+The dbm_close method resets the error condition on the named database.
+
+The dbm_open function returns NULL on failure, setting **errno**, and a DBM reference on success.
+
+The dbm_fetch function sets the **dptr** field of the returned **datum** to NULL on failure, setting **errno**, and returns a non-NULL **dptr** on success.
+
+The dbm_store function returns -1 on failure, setting **errno**, 0 on success, and 1 if DBM_INSERT was set and the specified key already existed in the database.
+
+The dbm_delete function returns -1 on failure, setting **errno**, and 0 on success.
+
+The dbm_firstkey function sets the **dptr** field of the returned **datum** to NULL on failure, setting **errno**, and returns a non-NULL **dptr** on success.
+
+The dbm_nextkey function sets the **dptr** field of the returned **datum** to NULL on failure, setting **errno**, and returns a non-NULL **dptr** on success.
+
+The dbm_close function returns -1 on failure, setting **errno**, and 0 on success.
+
+The dbm_close function returns -1 on failure, setting **errno**, and 0 on success.
+
+### Ndbm Errors
+
+The dbm_open, dbm_close, dbm_fetch, dbm_store, dbm_delete, dbm_firstkey, and dbm_nextkey functions may fail and return an error for errors specified for other Berkeley DB and C library or system functions.
diff --git a/docs-src/api/c/dbopen.md b/docs-src/api/c/dbopen.md
new file mode 100644
index 000000000..518e5682b
--- /dev/null
+++ b/docs-src/api/c/dbopen.md
@@ -0,0 +1,162 @@
+---
+title: "DB->open()"
+api-name: "DB->open()"
+source: docs/api_reference/C/dbopen.html
+---
+## DB-\>open()
+
+``` c
+#include
+
+int
+DB->open(DB *db, DB_TXN *txnid, const char *file,
+ const char *database, DBTYPE type, u_int32_t flags, int mode);
+```
+
+The `DB->open()` method opens the database represented by the **file** and **database**.
+
+The currently supported Berkeley DB file formats (or *access methods* ) are Btree, Hash, Heap, Queue, and Recno. The Btree format is a representation of a sorted, balanced tree structure. The Hash format is an extensible, dynamic hashing scheme. The Queue format supports fast access to fixed-length records accessed sequentially or by logical record number. The Recno format supports fixed- or variable-length records, accessed sequentially or by logical record number, and optionally backed by a flat text file.
+
+Storage and retrieval for the Berkeley DB access methods are based on key/data pairs; see DBT for more information.
+
+Calling `DB->open()` is a relatively expensive operation, and maintaining a set of open databases will normally be preferable to repeatedly opening and closing the database for each new query.
+
+The `DB->open()` method returns a non-zero error value on failure and 0 on success. If `DB->open()` fails, the DB->close() method must be called to discard the DB handle.
+
+### Parameters
+
+#### txnid
+
+If the operation is part of an application-specified transaction, the **txnid** parameter is a transaction handle returned from DB_ENV->txn_begin() ; if the operation is part of a Berkeley DB Concurrent Data Store group, the **txnid** parameter is a handle returned from DB_ENV->cdsgroup_begin() ; otherwise NULL. If no transaction handle is specified, but the DB_AUTO_COMMIT flag is specified, the operation will be implicitly transaction protected. Note that transactionally protected operations on a DB handle requires the DB handle itself be transactionally protected during its open. Also note that the transaction must be committed before the handle is closed; see Berkeley DB handles for more information.
+
+#### file
+
+The **file** parameter is used as the name of an underlying file that will be used to back the database; see File naming for more information.
+
+In-memory databases never intended to be preserved on disk may be created by setting the **file** parameter to NULL. Whether other threads of control can access this database is driven entirely by whether the **database** parameter is set to NULL.
+
+When using a Unicode build on Windows (the default), the **file** argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters.
+
+#### database
+
+The **database** parameter is optional, and allows applications to have multiple databases in a single file. Although no **database** parameter needs to be specified, it is an error to attempt to open a second database in a **file** that was not initially created using a **database** name. Further, the **database** parameter is not supported by the Queue format. Finally, when opening multiple databases in the same physical file, it is important to consider locking and memory cache issues; see Opening multiple databases in a single file for more information.
+
+If both the **database** and **file** parameters are NULL, the database is strictly temporary and cannot be opened by any other thread of control. Thus the database can only be accessed by sharing the single database handle that created it, in circumstances where doing so is safe.
+
+If the **database** parameter is not set to NULL, the database can be opened by other threads of control and will be replicated to client sites in any replication group, regardless of whether the **file** parameter is set to NULL.
+
+#### type
+
+The **type** parameter is of type DBTYPE, and must be set to one of `DB_BTREE`, `DB_HASH`, `DB_HEAP`, `DB_QUEUE`, `DB_RECNO`, or `DB_UNKNOWN`. If **type** is DB_UNKNOWN, the database must already exist and `DB->open()` will automatically determine its type. The DB->get_type() method may be used to determine the underlying type of databases opened using DB_UNKNOWN.
+
+It is an error to specify the incorrect **type** for a database that already exists.
+
+#### flags
+
+The **flags** parameter must be set to zero or by bitwise inclusively **OR**'ing together one or more of the following values:
+
+- `DB_AUTO_COMMIT`
+
+ Enclose the `DB->open()` call within a transaction. If the call succeeds, the open operation will be recoverable and all subsequent database modification operations based on this handle will be transactionally protected. If the call fails, no database will have been created.
+
+- `DB_CREATE`
+
+ Create the database. If the database does not already exist and the `DB_CREATE` flag is not specified, the `DB->open()` will fail.
+
+- `DB_EXCL`
+
+ Return an error if the database already exists. The `DB_EXCL` flag is only meaningful when specified with the `DB_CREATE`. flag.
+
+- `DB_MULTIVERSION`
+
+ Open the database with support for multiversion concurrency control . This will cause updates to the database to follow a copy-on-write protocol, which is required to support snapshot isolation. The `DB_MULTIVERSION` flag requires that the database be transactionally protected during its open and is not supported by the queue format.
+
+- `DB_NOMMAP`
+
+ Do not map this database into process memory (see the DB_ENV->set_mp_mmapsize() method for further information).
+
+- `DB_RDONLY`
+
+ Open the database for reading only. Any attempt to modify items in the database will fail, regardless of the actual permissions of any underlying files.
+
+- `DB_READ_UNCOMMITTED`
+
+ Support transactional read operations with degree 1 isolation. Read operations on the database may request the return of modified but not yet committed data. This flag must be specified on all DB handles used to perform dirty reads or database updates, otherwise requests for dirty reads may not be honored and the read may block.
+
+- `DB_THREAD`
+
+ Cause the DB handle returned by `DB->open()` to be *free-threaded* ; that is, concurrently usable by multiple threads in the address space.
+
+ Note that this flag is incompatible with the DB->set_lk_exclusive() method.
+
+- `DB_TRUNCATE`
+
+ Physically truncate the underlying file, discarding all previous databases it might have held. Underlying filesystem primitives are used to implement this flag. For this reason, it is applicable only to the file and cannot be used to discard databases within a file.
+
+ The `DB_TRUNCATE` flag cannot be lock or transaction-protected, and it is an error to specify it in a locking or transaction-protected environment.
+
+#### mode
+
+On Windows systems, the mode parameter is ignored.
+
+On UNIX systems or in IEEE/ANSI Std 1003.1 (POSIX) environments, files created by the database open are created with mode **mode** (as described in **chmod**(2)) and modified by the process' umask value at the time of creation (see **umask**(2)). Created files are owned by the process owner; the group ownership of created files is based on the system and directory defaults, and is not further specified by Berkeley DB. System shared memory segments created by the database open are created with mode **mode**, unmodified by the process' umask value. If **mode** is 0, the database open will use a default mode of readable and writable by both owner and group.
+
+### Environment Variables
+
+If the database was opened within a database environment, the environment variable **DB_HOME** may be used as the path of the database environment home.
+
+`DB->open()` is affected by any database directory specified using the DB_ENV->set_data_dir() method, or by setting the "set_data_dir" string in the environment's DB_CONFIG file.
+
+- **TMPDIR**
+
+ If the **file** and **dbenv** parameters to `DB->open()` are `NULL`, the environment variable **TMPDIR** may be used as a directory in which to create temporary backing files
+
+### Errors
+
+The `DB->open()` method may fail and return one of the following non-zero errors:
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### ENOENT
+
+The file or directory does not exist.
+
+#### ENOENT
+
+A nonexistent **re_source** file was specified.
+
+#### DB_OLD_VERSION
+
+The database cannot be opened without being first upgraded.
+
+#### EEXIST
+
+`DB_CREATE` and `DB_EXCL` were specified and the database exists.
+
+#### EINVAL
+
+If an unknown database type, page size, hash function, pad byte, byte order, or a flag value or parameter that is incompatible with the specified database was specified; the DB_THREAD flag was specified and fast mutexes are not available for this architecture; the DB_THREAD flag was specified to `DB->open()`, but was not specified to the `DB_ENV->open()` call for the environment in which the DB handle was created; a backing flat text file was specified with either the DB_THREAD flag or the provided database environment supports transaction processing; a Heap database is in use and DB->set_heapsize() was used to set a heap size that is different from the value used to create the database or an invalid heap region size was set using DB->set_heap_regionsize() ; or if an invalid flag value or parameter was specified.
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbput.md b/docs-src/api/c/dbput.md
new file mode 100644
index 000000000..b0dd2ab23
--- /dev/null
+++ b/docs-src/api/c/dbput.md
@@ -0,0 +1,148 @@
+---
+title: "DB->put()"
+api-name: "DB->put()"
+source: docs/api_reference/C/dbput.html
+---
+## DB-\>put()
+
+``` c
+#include
+
+int
+DB->put(DB *db,
+ DB_TXN *txnid, DBT *key, DBT *data, u_int32_t flags);
+```
+
+The `DB->put()` method stores key/data pairs in the database. The default behavior of the `DB->put()` function is to enter the new key/data pair, replacing any previously existing key if duplicates are disallowed, or adding a duplicate data item if duplicates are allowed. If the database supports duplicates, the `DB->put()` method adds the new data value at the end of the duplicate set. If the database supports sorted duplicates, the new data value is inserted at the correct sorted location.
+
+Unless otherwise specified, the `DB->put()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### txnid
+
+If the operation is part of an application-specified transaction, the **txnid** parameter is a transaction handle returned from DB_ENV->txn_begin() ; if the operation is part of a Berkeley DB Concurrent Data Store group, the **txnid** parameter is a handle returned from DB_ENV->cdsgroup_begin() ; otherwise NULL. If no transaction handle is specified, but the operation occurs in a transactional database, the operation will be implicitly transaction protected.
+
+#### key
+
+The key DBT operated on.
+
+If creating a new record in a Heap database, the key DBT must be empty. The `put` method will return the new record's Record ID (RID) in the key DBT .
+
+#### data
+
+The data DBT operated on.
+
+#### flags
+
+The **flags** parameter must be set to 0 or one of the following values:
+
+- `DB_APPEND`
+
+ Append the key/data pair to the end of the database. For the DB_APPEND flag to be specified, the underlying database must be a Heap, Queue or Recno database. The record number allocated to the record is returned in the specified **key**.
+
+ There is a minor behavioral difference between the Recno and Queue access methods for the DB_APPEND flag. If a transaction enclosing a `DB->put()` operation with the DB_APPEND flag aborts, the record number may be reallocated in a subsequent `DB_APPEND` operation if you are using the Recno access method, but it will not be reallocated if you are using the Queue access method.
+
+ For a Heap database, if the put operation results in the creation of a new record, then this flag is required.
+
+- `DB_NODUPDATA`
+
+ In the case of the Btree and Hash access methods, enter the new key/data pair only if it does not already appear in the database.
+
+ The DB_NODUPDATA flag may only be specified if the underlying database has been configured to support sorted duplicates. The DB_NODUPDATA flag may not be specified to the Queue or Recno access methods.
+
+ The `DB->put()` method will return DB_KEYEXIST if DB_NODUPDATA is set and the key/data pair already appears in the database.
+
+- `DB_NOOVERWRITE`
+
+ Enter the new key/data pair only if the key does not already appear in the database. The `DB->put()` method call with the DB_NOOVERWRITE flag set will fail if the key already exists in the database, even if the database supports duplicates.
+
+ The `DB->put()` method will return DB_KEYEXIST if DB_NOOVERWRITE is set and the key already appears in the database.
+
+ This enforcement of uniqueness of keys applies only to the primary key. The behavior of insertions into secondary databases is not affected by the DB_NOOVERWRITE flag. In particular, the insertion of a record that would result in the creation of a duplicate key in a secondary database that allows duplicates would not be prevented by the use of this flag.
+
+- `DB_MULTIPLE`
+
+ Put multiple data items using keys from the buffer to which the **key** parameter refers and data values from the buffer to which the **data** parameter refers.
+
+ To put records in bulk with the btree or hash access methods, construct bulk buffers in the **key** and **data** DBT using DB_MULTIPLE_WRITE_INIT and DB_MULTIPLE_WRITE_NEXT . To put records in bulk with the recno or queue access methods, construct bulk buffers in the **data** DBT as before, but construct the **key** DBT using DB_MULTIPLE_RECNO_WRITE_INIT and DB_MULTIPLE_RECNO_WRITE_NEXT with a data size of zero.
+
+ A successful bulk operation is logically equivalent to a loop through each key/data pair, performing a DB->put() for each one.
+
+ See DBT and Bulk Operations for more information on working with bulk updates.
+
+ The `DB_MULTIPLE` flag may only be used alone, or with the `DB_OVERWRITE_DUP` option.
+
+- `DB_MULTIPLE_KEY`
+
+ Put multiple data items using keys and data from the buffer to which the **key** parameter refers.
+
+ To put records in bulk with the btree or hash access methods, construct a single bulk buffer in the **key** DBT using DB_MULTIPLE_WRITE_INIT and DB_MULTIPLE_KEY_WRITE_NEXT . To put records in bulk with the recno or queue access methods, construct a bulk buffer in the **key** DBT using DB_MULTIPLE_RECNO_WRITE_INIT and DB_MULTIPLE_RECNO_WRITE_NEXT .
+
+ See DBT and Bulk Operations for more information on working with bulk updates.
+
+ The `DB_MULTIPLE_KEY` flag may only be used alone, or with the `DB_OVERWRITE_DUP` option.
+
+- `DB_OVERWRITE_DUP`
+
+ Ignore duplicate records when overwriting records in a database configured for sorted duplicates.
+
+ Normally, if a database is configured for sorted duplicates, an attempt to put a record that compares identically to a record already existing in the database will fail. Using this flag causes the put to silently proceed, without failure.
+
+ This flag is extremely useful when performing bulk puts (using the `DB_MULTIPLE` or `DB_MULTIPLE_KEY` flags). Depending on the number of records you are writing to the database with a bulk put, you may not want the operation to fail in the event that a duplicate record is encountered. Using this flag along with the `DB_MULTIPLE` or `DB_MULTIPLE_KEY` flags allows the bulk put to complete, even if a duplicate record is encountered.
+
+ This flag is also useful if you are using a custom comparison function that compares only part of the data portion of a record. In this case, two records can compare equally when, in fact, they are not equal. This flag allows the put to complete, even if your custom comparison routine claims the two records are equal.
+
+### Errors
+
+The `DB->put()` method may fail and return one of the following non-zero errors:
+
+#### DB_FOREIGN_CONFLICT
+
+A foreign key constraint violation has occurred. This can be caused by one of two things:
+
+1. An attempt was made to add a record to a constrained database, and the key used for that record does not exist in the foreign key database.
+
+2. DB_FOREIGN_ABORT was declared for a foreign key database, and then subsequently a record was deleted from the foreign key database without first removing it from the constrained secondary database.
+
+#### DB_HEAP_FULL
+
+An attempt was made to add or update a record in a Heap database. However, the size of the database was constrained using the DB->set_heapsize() method, and that limit has been reached.
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### EACCES
+
+An attempt was made to modify a read-only database.
+
+#### EINVAL
+
+If a record number of 0 was specified; an attempt was made to add a record to a fixed-length database that was too large to fit; an attempt was made to do a partial put; an attempt was made to add a record to a secondary index; or if an invalid flag value or parameter was specified.
+
+#### ENOSPC
+
+A btree exceeded the maximum btree depth (255).
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbremove.md b/docs-src/api/c/dbremove.md
new file mode 100644
index 000000000..797fbd674
--- /dev/null
+++ b/docs-src/api/c/dbremove.md
@@ -0,0 +1,66 @@
+---
+title: "DB->remove()"
+api-name: "DB->remove()"
+source: docs/api_reference/C/dbremove.html
+---
+## DB-\>remove()
+
+``` c
+#include
+
+int
+DB->remove(DB *db,
+ const char *file, const char *database, u_int32_t flags);
+```
+
+The `DB->remove()` method removes the database specified by the **file** and **database** parameters. If no **database** is specified, the underlying file represented by **file** is removed, incidentally removing all of the databases it contained.
+
+Applications should never remove databases with open DB handles, or in the case of removing a file, when any database in the file has an open handle. For example, some architectures do not permit the removal of files with open system handles. On these architectures, attempts to remove databases currently in use by any thread of control in the system may fail.
+
+The `DB->remove()` method should not be called if the remove is intended to be transactionally safe; the DB_ENV->dbremove() method should be used instead.
+
+The `DB->remove()` method may not be called after calling the DB->open() method on any DB handle. If the DB->open() method has already been called on a DB handle, close the existing handle and create a new one before calling `DB->remove. ()`
+
+The DB handle may not be accessed again after `DB->remove()` is called, regardless of its return.
+
+The `DB->remove()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### file
+
+The **file** parameter is the physical file which contains the database(s) to be removed.
+
+#### database
+
+The **database** parameter is the database to be removed.
+
+#### flags
+
+The **flags** parameter is currently unused, and must be set to 0.
+
+### Environment Variables
+
+If the database was opened within a database environment, the environment variable `DB_HOME` may be used as the path of the database environment home.
+
+`DB->remove()` is affected by any database directory specified using the DB_ENV->set_data_dir() method, or by setting the "set_data_dir" string in the environment's DB_CONFIG file.
+
+### Errors
+
+The `DB->remove()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+#### ENOENT
+
+The file or directory does not exist.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbrename.md b/docs-src/api/c/dbrename.md
new file mode 100644
index 000000000..6a2323e7e
--- /dev/null
+++ b/docs-src/api/c/dbrename.md
@@ -0,0 +1,72 @@
+---
+title: "DB->rename()"
+api-name: "DB->rename()"
+source: docs/api_reference/C/dbrename.html
+---
+## DB-\>rename()
+
+``` c
+#include
+
+int
+DB->rename(DB *db, const char *file,
+ const char *database, const char *newname, u_int32_t flags);
+```
+
+The `DB->rename()` method renames the database specified by the **file** and **database** parameters to **newname**. If no **database** is specified, the underlying file represented by **file** is renamed, incidentally renaming all of the databases it contained.
+
+Applications should not rename databases that are currently in use. If an underlying file is being renamed and logging is currently enabled in the database environment, no database in the file may be open when the `DB->rename()` method is called. In particular, some architectures do not permit renaming files with open handles. On these architectures, attempts to rename databases that are currently in use by any thread of control in the system may fail.
+
+The `DB->rename()` method should not be called if the rename is intended to be transactionally safe; the DB_ENV->dbrename() method should be used instead.
+
+The `DB->rename()` method may not be called after calling the DB->open() method on any DB handle. If the DB->open() method has already been called on a DB handle, close the existing handle and create a new one before calling `DB->rename()`.
+
+The DB handle may not be accessed again after `DB->rename()` is called, regardless of its return.
+
+The `DB->rename()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### file
+
+The **file** parameter is the physical file which contains the database(s) to be renamed.
+
+When using a Unicode build on Windows (the default), the **file** argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters.
+
+#### database
+
+The **database** parameter is the database to be renamed.
+
+#### newname
+
+The **newname** parameter is the new name of the database or file.
+
+#### flags
+
+The **flags** parameter is currently unused, and must be set to 0.
+
+### Environment Variables
+
+If the database was opened within a database environment, the environment variable `DB_HOME` may be used as the path of the database environment home.
+
+`DB->rename()` is affected by any database directory specified using the DB_ENV->set_data_dir() method, or by setting the "set_data_dir" string in the environment's DB_CONFIG file.
+
+### Errors
+
+The `DB->rename()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+#### ENOENT
+
+The file or directory does not exist.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_alloc.md b/docs-src/api/c/dbset_alloc.md
new file mode 100644
index 000000000..85b3895b0
--- /dev/null
+++ b/docs-src/api/c/dbset_alloc.md
@@ -0,0 +1,46 @@
+---
+title: "DB->set_alloc()"
+api-name: "DB->set_alloc()"
+source: docs/api_reference/C/dbset_alloc.html
+---
+## DB-\>set_alloc()
+
+``` c
+#include
+
+int
+DB->set_alloc(DB *db,
+ void *(*app_malloc)(size_t),
+ void *(*app_realloc)(void *, size_t),
+ void (*app_free)(void *));
+```
+
+Set the allocation functions used by the DB_ENV and DB methods to allocate or free memory owned by the application.
+
+There are a number of interfaces in Berkeley DB where memory is allocated by the library and then given to the application. For example, the DB_DBT_MALLOC flag, when specified in the DBT object, will cause the DB methods to allocate and reallocate memory which then becomes the responsibility of the calling application. (See DBT for more information.) Other examples are the Berkeley DB interfaces which return statistical information to the application: DB->stat() , DB_ENV->lock_stat() , DB_ENV->log_archive() , DB_ENV->log_stat() , DB_ENV->memp_stat() , and DB_ENV->txn_stat() . There is one method in Berkeley DB where memory is allocated by the application and then given to the library: DB->associate() .
+
+On systems in which there may be multiple library versions of the standard allocation routines (notably Windows NT), transferring memory between the library and the application will fail because the Berkeley DB library allocates memory from a different heap than the application uses to free it. To avoid this problem, the DB_ENV->set_alloc() and `DB->set_alloc()` methods can be used to pass Berkeley DB references to the application's allocation routines.
+
+It is not an error to specify only one or two of the possible allocation function parameters to these interfaces; however, in that case the specified interfaces must be compatible with the standard library interfaces, as they will be used together. The functions specified must match the calling conventions of the ANSI C X3.159-1989 (ANSI C) library routines of the same name.
+
+Because databases opened within Berkeley DB environments use the allocation interfaces specified to the environment, it is an error to attempt to set those interfaces in a database created within an environment.
+
+The `DB->set_alloc()` method may not be called after the DB->open() method is called.
+
+The `DB->set_alloc()` method returns a non-zero error value on failure and 0 on success.
+
+### Errors
+
+The `DB->set_alloc()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If called in a database environment, or called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_append_recno.md b/docs-src/api/c/dbset_append_recno.md
new file mode 100644
index 000000000..41e2e9733
--- /dev/null
+++ b/docs-src/api/c/dbset_append_recno.md
@@ -0,0 +1,64 @@
+---
+title: "DB->set_append_recno()"
+api-name: "DB->set_append_recno()"
+source: docs/api_reference/C/dbset_append_recno.html
+---
+## DB-\>set_append_recno()
+
+``` c
+#include
+
+int
+DB->set_append_recno(DB *,
+ int (*db_append_recno_fcn)(DB *dbp, DBT *data, db_recno_t recno));
+```
+
+When using the DB_APPEND option of the DB->put() method, it may be useful to modify the stored data based on the generated key. If a callback function is specified using the `DB->set_append_recno()` method, it will be called after the record number has been selected, but before the data has been stored.
+
+The `DB->set_append_recno()` method configures operations performed using the specified DB handle, not all operations performed on the underlying database.
+
+The `DB->set_append_recno()` method may not be called after the DB->open() method is called.
+
+The `DB->set_append_recno()` method returns a non-zero error value on failure and 0 on success.
+
+### Note
+
+Berkeley DB is not re-entrant. Callback functions should not attempt to make library calls (for example, to release locks or close open handles). Re-entering Berkeley DB is not guaranteed to work correctly, and the results are undefined.
+
+### Parameters
+
+#### db_append_recno_fcn
+
+The **db_append_recno_fcn** parameter is a function to call after the record number has been selected but before the data has been stored into the database. The function takes three parameters:
+
+- `dbp`
+
+ The **dbp** parameter is the enclosing database handle.
+
+- `data`
+
+ The **data** parameter is the data DBT to be stored.
+
+- `recno`
+
+ The **recno** parameter is the generated record number.
+
+The called function may modify the data DBT . If the function needs to allocate memory for the **data** field, the **flags** field of the returned DBT should be set to `DB_DBT_APPMALLOC`, which indicates that Berkeley DB should free the memory when it is done with it.
+
+The callback function must return 0 on success and **errno** or a value outside of the Berkeley DB error name space on failure.
+
+### Errors
+
+The `DB->set_append_recno()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_bt_compare.md b/docs-src/api/c/dbset_bt_compare.md
new file mode 100644
index 000000000..ead4e3aaf
--- /dev/null
+++ b/docs-src/api/c/dbset_bt_compare.md
@@ -0,0 +1,60 @@
+---
+title: "DB->set_bt_compare()"
+api-name: "DB->set_bt_compare()"
+source: docs/api_reference/C/dbset_bt_compare.html
+---
+## DB-\>set_bt_compare()
+
+``` c
+#include
+
+int
+DB->set_bt_compare(DB *db,
+ int (*bt_compare_fcn)(DB *db, const DBT *dbt1, const DBT *dbt2));
+```
+
+Set the Btree key comparison function. The comparison function is called whenever it is necessary to compare a key specified by the application with a key currently stored in the tree.
+
+If no comparison function is specified, the keys are compared lexically, with shorter keys collating before longer keys.
+
+The `DB->set_bt_compare()` method configures operations performed using the specified DB handle, not all operations performed on the underlying database.
+
+The `DB->set_bt_compare()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_bt_compare()` must be the same as that historically used to create the database or corruption can occur.
+
+The `DB->set_bt_compare()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### bt_compare_fcn
+
+The **bt_compare_fcn** function is the application-specified Btree comparison function. The comparison function takes three parameters:
+
+- `db`
+
+ The **db** parameter is the enclosing database handle.
+
+- `dbt1`
+
+ The **dbt1** parameter is the DBT representing the application supplied key.
+
+- `dbt2`
+
+ The **dbt2** parameter is the DBT representing the current tree's key.
+
+The **bt_compare_fcn** function must return an integer value less than, equal to, or greater than zero if the first key parameter is considered to be respectively less than, equal to, or greater than the second key parameter. In addition, the comparison function must cause the keys in the database to be *well-ordered* . The comparison function must correctly handle any key values used by the application (possibly including zero-length keys). In addition, when Btree key prefix comparison is being performed (see DB->set_bt_prefix() for more information), the comparison routine may be passed a prefix of any database key. The **data** and **size** fields of the DBT are the only fields that may be used for the purposes of this comparison, and no particular alignment of the memory to which by the **data** field refers may be assumed.
+
+### Errors
+
+The `DB->set_bt_compare()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_bt_compress.md b/docs-src/api/c/dbset_bt_compress.md
new file mode 100644
index 000000000..72da0186b
--- /dev/null
+++ b/docs-src/api/c/dbset_bt_compress.md
@@ -0,0 +1,108 @@
+---
+title: "DB->set_bt_compress()"
+api-name: "DB->set_bt_compress()"
+source: docs/api_reference/C/dbset_bt_compress.html
+---
+## DB-\>set_bt_compress()
+
+``` c
+#include
+
+int
+DB->set_bt_compress(DB *db,
+ int (*bt_compress_fcn)(DB *db, const DBT *prevKey,
+ const DBT *prevData, const DBT *key, const DBT *data, DBT *dest),
+ int (*bt_decompress_fcn)(DB *db, const DBT *prevKey,
+ const DBT *prevData, DBT *compressed, DBT *destKey,
+ DBT *destData));
+```
+
+Set the Btree compression and decompression functions. The compression function is called whenever a key/data pair is added to the tree and the decompression function is called whenever data is requested from the tree.
+
+This method is only compatible with prefix-based compression routines. This callback is mostly intended for compressing keys. From a performance perspective, it is better to perform compression of the data portion of your records outside of the Berkeley DB library.
+
+If NULL function pointers are specified, then default compression and decompression functions are used. Berkeley DB's default compression function performs prefix compression on all keys and prefix compression on data values for duplicate keys. If using default compression, both the default compression and decompression functions must be used.
+
+The `DB->set_bt_compress()` method configures operations performed using the specified DB handle, not all operations performed on the underlying database.
+
+The `DB->set_bt_compress()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_bt_compress()` must be the same as that historically used to create the database or corruption can occur.
+
+The `DB->set_bt_compress()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### bt_compress_fcn
+
+The **bt_compress_fcn** function is the application-specified Btree compression function. The compression function takes six parameters:
+
+- `db`
+
+ The **db** parameter is the enclosing database handle.
+
+- `prevKey`
+
+ The **prevKey** parameter is the DBT representing the key immediately preceding the application supplied key.
+
+- `prevData`
+
+ The **prevData** parameter is the DBT representing the data associated with **prevKey**.
+
+- `key`
+
+ The **key** parameter is the DBT representing the application supplied key.
+
+- `data`
+
+ The **data** parameter is the DBT representing the application supplied data.
+
+- `dest`
+
+ The **dest** parameter is the DBT representing the data stored in the tree, where the function should write the compressed data.
+
+The **bt_compress_fcn** function must return 0 on success and a non-zero value on failure. If the compressed data cannot fit in **dest-\>data** (the size of which is stored in **dest-\>ulen**), the function should identify the required buffer size in **dest-\>size** and return `DB_BUFFER_SMALL`.
+
+#### bt_decompress_fcn
+
+The **bt_decompress_fcn** function is the application-specified Btree decompression function. The decompression function takes six parameters:
+
+- `db`
+
+ The **db** parameter is the enclosing database handle.
+
+- `prevKey`
+
+ The **prevKey** parameter is the DBT representing the key immediately preceding the key being decompressed.
+
+- `prevData`
+
+ The **prevData** parameter is the DBT representing the data associated with **prevKey**.
+
+- `compressed`
+
+ The **compressed** parameter is the DBT representing the data stored in the tree, that is, the compressed data.
+
+- `destKey`
+
+ The **key** parameter is the DBT where the decompression function should store the decompressed key.
+
+- `destData`
+
+ The **data** parameter is the DBT where the decompression function should store the decompressed key.
+
+The **bt_decompress_fcn** function must return 0 on success and a non-zero value on failure. If the decompressed data cannot fit in **key-\>data** or **data-\>data** (the size of which is available in the DBT 's **ulen** field), the function should identify the required buffer size using the DBT 's **size** field and return `DB_BUFFER_SMALL`.
+
+### Errors
+
+The `DB->set_bt_compress()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_bt_minkey.md b/docs-src/api/c/dbset_bt_minkey.md
new file mode 100644
index 000000000..78942ae1b
--- /dev/null
+++ b/docs-src/api/c/dbset_bt_minkey.md
@@ -0,0 +1,45 @@
+---
+title: "DB->set_bt_minkey()"
+api-name: "DB->set_bt_minkey()"
+source: docs/api_reference/C/dbset_bt_minkey.html
+---
+## DB-\>set_bt_minkey()
+
+``` c
+#include
+
+int
+DB->set_bt_minkey(DB *db, u_int32_t bt_minkey);
+```
+
+Set the minimum number of key/data pairs intended to be stored on any single Btree leaf page.
+
+This value is used to determine if key or data items will be stored on overflow pages instead of Btree leaf pages. For more information on the specific algorithm used, see Minimum keys per page . The **bt_minkey** value specified must be at least 2; if **bt_minkey** is not explicitly set, a value of 2 is used.
+
+The `DB->set_bt_minkey()` method configures a database, not only operations performed using the specified DB handle.
+
+The `DB->set_bt_minkey()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_bt_minkey()` will be ignored.
+
+The `DB->set_bt_minkey()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### bt_minkey
+
+The **bt_minkey** parameter is the minimum number of key/data pairs intended to be stored on any single Btree leaf page.
+
+### Errors
+
+The `DB->set_bt_minkey()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_bt_prefix.md b/docs-src/api/c/dbset_bt_prefix.md
new file mode 100644
index 000000000..21952be21
--- /dev/null
+++ b/docs-src/api/c/dbset_bt_prefix.md
@@ -0,0 +1,60 @@
+---
+title: "DB->set_bt_prefix()"
+api-name: "DB->set_bt_prefix()"
+source: docs/api_reference/C/dbset_bt_prefix.html
+---
+## DB-\>set_bt_prefix()
+
+``` c
+#include
+
+int
+DB->set_bt_prefix(DB *db,
+ size_t (*bt_prefix_fcn)(DB *, const *dbt1, const *dbt2));
+```
+
+Set the Btree prefix function. The prefix function is used to determine the amount by which keys stored on the Btree internal pages can be safely truncated without losing their uniqueness. See the Btree prefix comparison section of the Berkeley DB Reference Guide for more details about how this works. The usefulness of this is data-dependent, but can produce significantly reduced tree sizes and search times in some data sets.
+
+If no prefix function or key comparison function is specified by the application, a default lexical comparison function is used as the prefix function. If no prefix function is specified and a key comparison function is specified, no prefix function is used. It is an error to specify a prefix function without also specifying a Btree key comparison function.
+
+The `DB->set_bt_prefix()` method configures operations performed using the specified DB handle, not all operations performed on the underlying database.
+
+The `DB->set_bt_prefix()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_bt_prefix()` must be the same as that historically used to create the database or corruption can occur.
+
+The `DB->set_bt_prefix()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### bt_prefix_fcn
+
+The **bt_prefix_fcn** function is the application-specific Btree prefix function. The prefix function takes three parameters:
+
+- `db`
+
+ The **db** parameter is the enclosing database handle.
+
+- `dbt1`
+
+ The **dbt1** parameter is a DBT representing a database key.
+
+- `dbt2`
+
+ The **dbt2** parameter is a DBT representing a database key.
+
+The **bt_prefix_fcn** function must return the number of bytes of the second key parameter that would be required by the Btree key comparison function to determine the second key parameter's ordering relationship with respect to the first key parameter. If the two keys are equal, the key length should be returned. The prefix function must correctly handle any key values used by the application (possibly including zero-length keys). The **data** and **size** fields of the DBT are the only fields that may be used for the purposes of this determination, and no particular alignment of the memory to which the **data** field refers may be assumed.
+
+### Errors
+
+The `DB->set_bt_prefix()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_cachesize.md b/docs-src/api/c/dbset_cachesize.md
new file mode 100644
index 000000000..5f0a5bcd1
--- /dev/null
+++ b/docs-src/api/c/dbset_cachesize.md
@@ -0,0 +1,56 @@
+---
+title: "DB->set_cachesize()"
+api-name: "DB->set_cachesize()"
+source: docs/api_reference/C/dbset_cachesize.html
+---
+## DB-\>set_cachesize()
+
+``` c
+#include
+
+int
+DB->set_cachesize(DB *db,
+ u_int32_t gbytes, u_int32_t bytes, int ncache);
+```
+
+Set the size of the shared memory buffer pool -- that is, the cache. The cache should be the size of the normal working data set of the application, with some small amount of additional memory for unusual situations. (Note: the working set is not the same as the number of pages accessed simultaneously, and is usually much larger.)
+
+The default cache size is 256KB, and may not be specified as less than 20KB. Any cache size less than 500MB is automatically increased by 25% to account for buffer pool overhead; cache sizes larger than 500MB are used as specified. The maximum size of a single cache is 4GB on 32-bit systems and 10TB on 64-bit systems. (All sizes are in powers-of-two, that is, 256KB is 2^18 not 256,000.) For information on tuning the Berkeley DB cache size, see Selecting a cache size .
+
+It is possible to specify caches to Berkeley DB large enough they cannot be allocated contiguously on some architectures. For example, some releases of Solaris limit the amount of memory that may be allocated contiguously by a process. If **ncache** is 0 or 1, the cache will be allocated contiguously in memory. If it is greater than 1, the cache will be split across **ncache** separate regions, where the **region size** is equal to the initial cache size divided by **ncache**.
+
+Because databases opened within Berkeley DB environments use the cache specified to the environment, it is an error to attempt to set a cache in a database created within an environment.
+
+The `DB->set_cachesize()` method may not be called after the DB->open() method is called.
+
+The `DB->set_cachesize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### gbytes
+
+The size of the cache is set to **gbytes** gigabytes plus **bytes**.
+
+#### bytes
+
+The size of the cache is set to **gbytes** gigabytes plus **bytes**.
+
+#### ncache
+
+The **ncache** parameter is the number of caches to create.
+
+### Errors
+
+The `DB->set_cachesize()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the specified cache size was impossibly small; the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_create_dir.md b/docs-src/api/c/dbset_create_dir.md
new file mode 100644
index 000000000..ff137da11
--- /dev/null
+++ b/docs-src/api/c/dbset_create_dir.md
@@ -0,0 +1,41 @@
+---
+title: "DB->set_create_dir()"
+api-name: "DB->set_create_dir()"
+source: docs/api_reference/C/dbset_create_dir.html
+---
+## DB-\>set_create_dir()
+
+``` c
+#include
+
+int
+DB->set_create_dir(DB *db, const char *dir);
+```
+
+Specify which directory a database should be created in or looked for.
+
+The `DB->set_create_dir()` method may not be called after the DB->open() method is called.
+
+The `DB->set_create_dir()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dir
+
+The **dir** will be used to create or locate the database file specified in the DB->open() method call. The directory must be one of the directories in the environment list specified by DB_ENV->add_data_dir() .
+
+### Errors
+
+The `DB->set_create_dir()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_dup_compare.md b/docs-src/api/c/dbset_dup_compare.md
new file mode 100644
index 000000000..e8420fb47
--- /dev/null
+++ b/docs-src/api/c/dbset_dup_compare.md
@@ -0,0 +1,58 @@
+---
+title: "DB->set_dup_compare()"
+api-name: "DB->set_dup_compare()"
+source: docs/api_reference/C/dbset_dup_compare.html
+---
+## DB-\>set_dup_compare()
+
+``` c
+#include
+
+int
+DB->set_dup_compare(DB *db,
+ int (*dup_compare_fcn)(DB *db, const DBT *dbt1, const DBT *dbt2));
+```
+
+Set the duplicate data item comparison function. The comparison function is called whenever it is necessary to compare a data item specified by the application with a data item currently stored in the database. Calling `DB->set_dup_compare()` implies calling DB->set_flags() with the DB_DUPSORT flag.
+
+If no comparison function is specified, the data items are compared lexically, with shorter data items collating before longer data items.
+
+The `DB->set_dup_compare()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_dup_compare()` must be the same as that historically used to create the database or corruption can occur.
+
+The `DB->set_dup_compare()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dup_compare_fcn
+
+The **dup_compare_fcn** function is the application-specified duplicate data item comparison function. The function takes three arguments:
+
+- `db`
+
+ The **db** parameter is the enclosing database handle.
+
+- `dbt1`
+
+ The **dbt1** parameter is a DBT representing the application supplied data item.
+
+- `dbt2`
+
+ The **dbt2** parameter is a DBT representing the current tree's data item.
+
+The **dup_compare_fcn** function must return an integer value less than, equal to, or greater than zero if the first data item parameter is considered to be respectively less than, equal to, or greater than the second data item parameter. In addition, the comparison function must cause the data items in the set to be *well-ordered* . The comparison function must correctly handle any data item values used by the application (possibly including zero-length data items). The **data** and **size** fields of the DBT are the only fields that may be used for the purposes of this comparison, and no particular alignment of the memory to which the **data** field refers may be assumed.
+
+### Errors
+
+The `DB->set_dup_compare()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_encrypt.md b/docs-src/api/c/dbset_encrypt.md
new file mode 100644
index 000000000..0fc55a721
--- /dev/null
+++ b/docs-src/api/c/dbset_encrypt.md
@@ -0,0 +1,55 @@
+---
+title: "DB->set_encrypt()"
+api-name: "DB->set_encrypt()"
+source: docs/api_reference/C/dbset_encrypt.html
+---
+## DB-\>set_encrypt()
+
+``` c
+#include
+
+int
+DB->set_encrypt(DB *db, const char *passwd, u_int32_t flags);
+```
+
+Set the password used by the Berkeley DB library to perform encryption and decryption.
+
+Because databases opened within Berkeley DB environments use the password specified to the environment, it is an error to attempt to set a password in a database created within an environment.
+
+The `DB->set_encrypt()` method may not be called after the DB->open() method is called.
+
+The `DB->set_encrypt()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### passwd
+
+The **passwd** parameter is the password used to perform encryption and decryption.
+
+#### flags
+
+The **flags** parameter must be set to 0 or the following value:
+
+- `DB_ENCRYPT_AES`
+
+ Use the Rijndael/AES (also known as the Advanced Encryption Standard and Federal Information Processing Standard (FIPS) 197) algorithm for encryption or decryption.
+
+### Errors
+
+The `DB->set_encrypt()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+#### EOPNOTSUPP
+
+Cryptography is not available in this Berkeley DB release.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_errcall.md b/docs-src/api/c/dbset_errcall.md
new file mode 100644
index 000000000..02306662b
--- /dev/null
+++ b/docs-src/api/c/dbset_errcall.md
@@ -0,0 +1,60 @@
+---
+title: "DB->set_errcall()"
+api-name: "DB->set_errcall()"
+source: docs/api_reference/C/dbset_errcall.html
+---
+## DB-\>set_errcall()
+
+``` c
+#include
+
+void
+DB->set_errcall(DB *, void (*db_errcall_fcn)
+ (const DB_ENV *dbenv, const char *errpfx, const char *msg));
+```
+
+When an error occurs in the Berkeley DB library, a Berkeley DB error or an error return value is returned by the interface. In some cases, however, the **errno** value may be insufficient to completely describe the cause of the error, especially during initial application debugging.
+
+The DB_ENV->set_errcall() and `DB->set_errcall()` methods are used to enhance the mechanism for reporting error messages to the application. In some cases, when an error occurs, Berkeley DB will call **db_errcall_fcn()** with additional error information. It is up to the **db_errcall_fcn()** function to display the error message in an appropriate manner.
+
+Setting **db_errcall_fcn** to NULL unconfigures the callback interface.
+
+Alternatively, you can use the DB->set_errfile() or DB->set_errfile() methods to display the additional information via a C library `FILE *`.
+
+This error-logging enhancement does not slow performance or significantly increase application size, and may be run during normal operation as well as during application debugging.
+
+For DB handles opened inside of Berkeley DB environments, calling the `DB->set_errcall()` method affects the entire environment and is equivalent to calling the DB_ENV->set_errcall() method.
+
+When used on a database that was *not* opened in an environment, the `DB->set_errcall()` method configures operations performed using the specified DB handle, not all operations performed on the underlying database.
+
+The `DB->set_errcall()` method may be called at any time during the life of the application.
+
+### Note
+
+Berkeley DB is not re-entrant. Callback functions should not attempt to make library calls (for example, to release locks or close open handles). Re-entering Berkeley DB is not guaranteed to work correctly, and the results are undefined.
+
+### Parameters
+
+#### db_errcall_fcn
+
+The **db_errcall_fcn** parameter is the application-specified error reporting function. The function takes three parameters:
+
+- `dbenv`
+
+ The **dbenv** parameter is the enclosing database environment.
+
+- `errpfx`
+
+ The **errpfx** parameter is the prefix string (as previously set by DB->set_errpfx() or DB_ENV->set_errpfx() ).
+
+- `msg`
+
+ The **msg** parameter is the error message string.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_errfile.md b/docs-src/api/c/dbset_errfile.md
new file mode 100644
index 000000000..d6c7a1eac
--- /dev/null
+++ b/docs-src/api/c/dbset_errfile.md
@@ -0,0 +1,53 @@
+---
+title: "DB->set_errfile()"
+api-name: "DB->set_errfile()"
+source: docs/api_reference/C/dbset_errfile.html
+---
+## DB-\>set_errfile()
+
+``` c
+#include
+
+void
+DB->set_errfile(DB *db, FILE *errfile);
+```
+
+When an error occurs in the Berkeley DB library, a Berkeley DB error or an error return value is returned by the interface. In some cases, however, the **errno** value may be insufficient to completely describe the cause of the error, especially during initial application debugging.
+
+The DB_ENV->set_errfile() and `DB->set_errfile()` methods are used to enhance the mechanism for reporting error messages to the application by setting a C library FILE \* to be used for displaying additional Berkeley DB error messages. In some cases, when an error occurs, Berkeley DB will output an additional error message to the specified file reference.
+
+Alternatively, you can use the DB_ENV->set_errcall() or DB->set_errcall() methods to capture the additional error information in a way that does not use C library FILE \*'s.
+
+The error message will consist of the prefix string and a colon ("**:**") (if a prefix string was previously specified using DB->set_errpfx() or DB_ENV->set_errpfx() ), an error string, and a trailing \ character.
+
+The default configuration when applications first create DB or DB_ENV handles is as if the DB_ENV->set_errfile() or `DB->set_errfile()` methods were called with the standard error output (stderr) specified as the FILE \* argument. Applications wanting no output at all can turn off this default configuration by calling the DB_ENV->set_errfile() or `DB->set_errfile()` methods with NULL as the FILE \* argument. Additionally, explicitly configuring the error output channel using any of the following methods will also turn off this default output for the application:
+
+- `DB->set_errfile()`
+
+- DB_ENV->set_errfile()
+
+- DB_ENV->set_errcall()
+
+- DB->set_errcall()
+
+This error logging enhancement does not slow performance or significantly increase application size, and may be run during normal operation as well as during application debugging.
+
+For DB handles opened inside of Berkeley DB environments, calling the `DB->set_errfile()` method affects the entire environment and is equivalent to calling the DB_ENV->set_errfile() method.
+
+When used on a database that was *not* opened in an environment, the `DB->set_errfile()` method configures operations performed using the specified DB handle, not all operations performed on the underlying database.
+
+The `DB->set_errfile()` method may be called at any time during the life of the application.
+
+### Parameters
+
+#### errfile
+
+The **errfile** parameter is a C library `FILE *` to be used for displaying additional Berkeley DB error information.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_errpfx.md b/docs-src/api/c/dbset_errpfx.md
new file mode 100644
index 000000000..1233ad2d1
--- /dev/null
+++ b/docs-src/api/c/dbset_errpfx.md
@@ -0,0 +1,37 @@
+---
+title: "DB->set_errpfx()"
+api-name: "DB->set_errpfx()"
+source: docs/api_reference/C/dbset_errpfx.html
+---
+## DB-\>set_errpfx()
+
+``` c
+#include
+
+void
+DB->set_errpfx(DB *db, const char *errpfx);
+```
+
+Set the prefix string that appears before error messages issued by Berkeley DB.
+
+The `DB->set_errpfx()` and DB_ENV->set_errpfx() methods do not copy the memory to which the **errpfx** parameter refers; rather, they maintain a reference to it. Although this allows applications to modify the error message prefix at any time (without repeatedly calling the interfaces), it means the memory must be maintained until the handle is closed.
+
+For DB handles opened inside of Berkeley DB environments, calling the `DB->set_errpfx()` method affects the entire environment and is equivalent to calling the DB_ENV->set_errpfx() method.
+
+The `DB->set_errpfx()` method configures operations performed using the specified DB handle, not all operations performed on the underlying database.
+
+The `DB->set_errpfx()` method may be called at any time during the life of the application.
+
+### Parameters
+
+#### errpfx
+
+The **errpfx** parameter is the application-specified error prefix for additional error messages.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_feedback.md b/docs-src/api/c/dbset_feedback.md
new file mode 100644
index 000000000..0e1ac77d4
--- /dev/null
+++ b/docs-src/api/c/dbset_feedback.md
@@ -0,0 +1,60 @@
+---
+title: "DB->set_feedback()"
+api-name: "DB->set_feedback()"
+source: docs/api_reference/C/dbset_feedback.html
+---
+## DB-\>set_feedback()
+
+``` c
+#include
+
+int
+DB->set_feedback(DB *,
+ void (*db_feedback_fcn)(DB *dbp, int opcode, int percent));
+```
+
+Some operations performed by the Berkeley DB library can take non-trivial amounts of time. The `DB->set_feedback()` method can be used by applications to monitor progress within these operations. When an operation is likely to take a long time, Berkeley DB will call the specified callback function with progress information.
+
+It is up to the callback function to display this information in an appropriate manner.
+
+The `DB->set_feedback()` method may be called at any time during the life of the application.
+
+The `DB->set_feedback()` method returns a non-zero error value on failure and 0 on success.
+
+### Note
+
+Berkeley DB is not re-entrant. Callback functions should not attempt to make library calls (for example, to release locks or close open handles). Re-entering Berkeley DB is not guaranteed to work correctly, and the results are undefined.
+
+### Parameters
+
+#### db_feedback_fcn
+
+The **db_feedback_fcn** parameter is the application-specified feedback function called to report Berkeley DB operation progress. The callback function must take three parameters:
+
+- `dbp`
+
+ The **dbp** parameter is a reference to the enclosing database.
+
+- `opcode`
+
+ The **opcode** parameter is an operation code. The **opcode** parameter may take on any of the following values:
+
+ - `DB_UPGRADE`
+
+ The underlying database is being upgraded.
+
+ - `DB_VERIFY`
+
+ The underlying database is being verified.
+
+- `percent`
+
+ The **percent** parameter is the percent of the operation that has been completed, specified as an integer value between 0 and 100.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_flags.md b/docs-src/api/c/dbset_flags.md
new file mode 100644
index 000000000..e1a3f44c5
--- /dev/null
+++ b/docs-src/api/c/dbset_flags.md
@@ -0,0 +1,185 @@
+---
+title: "DB->set_flags()"
+api-name: "DB->set_flags()"
+source: docs/api_reference/C/dbset_flags.html
+---
+## DB-\>set_flags()
+
+``` c
+#include
+
+int
+DB->set_flags(DB *db, u_int32_t flags);
+```
+
+Configure a database. Calling `DB->set_flags()` is additive; there is no way to clear flags.
+
+The `DB->set_flags()` method may not be called after the DB->open() method is called.
+
+The `DB->set_flags()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flags
+
+The **flags** parameter must be set to 0 or by bitwise inclusively **OR**'ing together one or more of the following values:
+
+**General**
+
+The following flags may be specified for any Berkeley DB access method:
+
+- `DB_CHKSUM`
+
+ Do checksum verification of pages read into the cache from the backing filestore. Berkeley DB uses the SHA1 Secure Hash Algorithm if encryption is configured and a general hash algorithm if it is not.
+
+ Calling `DB->set_flags()` with the DB_CHKSUM flag only affects the specified DB handle (and any other Berkeley DB handles opened within the scope of that handle).
+
+ If the database already exists when DB->open() is called, the DB_CHKSUM flag will be ignored.
+
+- `DB_ENCRYPT`
+
+ Encrypt the database using the cryptographic password specified to the DB_ENV->set_encrypt() or DB->set_encrypt() methods.
+
+ Calling `DB->set_flags()` with the DB_ENCRYPT flag only affects the specified DB handle (and any other Berkeley DB handles opened within the scope of that handle).
+
+ If the database already exists when DB->open() is called, the DB_ENCRYPT flag must be the same as the existing database or an error will be returned.
+
+ Encrypted databases are not portable between machines of different byte orders, that is, encrypted databases created on big-endian machines cannot be read on little-endian machines, and vice versa.
+
+- `DB_TXN_NOT_DURABLE`
+
+ If set, Berkeley DB will not write log records for this database. This means that updates of this database exhibit the ACI (atomicity, consistency, and isolation) properties, but not D (durability); that is, database integrity will be maintained, but if the application or system fails, integrity will not persist. The database file must be verified and/or restored from backup after a failure. In order to ensure integrity after application shut down, the database handles must be closed without specifying DB_NOSYNC , or all database changes must be flushed from the database environment cache using either the DB_ENV->txn_checkpoint() or DB_ENV->memp_sync() methods. All database handles for a single physical file must set DB_TXN_NOT_DURABLE, including database handles for different databases in a physical file.
+
+ Calling `DB->set_flags()` with the DB_TXN_NOT_DURABLE flag only affects the specified DB handle (and any other Berkeley DB handles opened within the scope of that handle).
+
+**Btree**
+
+The following flags may be specified for the Btree access method:
+
+- `DB_DUP`
+
+ Permit duplicate data items in the database; that is, insertion when the key of the key/data pair being inserted already exists in the database will be successful. The ordering of duplicates in the database is determined by the order of insertion, unless the ordering is otherwise specified by use of a cursor operation or a duplicate sort function.
+
+ The DB_DUPSORT flag is preferred to DB_DUP for performance reasons. The DB_DUP flag should only be used by applications wanting to order duplicate data items manually.
+
+ Calling `DB->set_flags()` with the DB_DUP flag affects the database, including all threads of control accessing the database.
+
+ If the database already exists when DB->open() is called, the DB_DUP flag must be the same as the existing database or an error will be returned.
+
+ It is an error to specify both DB_DUP and DB_RECNUM.
+
+- `DB_DUPSORT`
+
+ Permit duplicate data items in the database; that is, insertion when the key of the key/data pair being inserted already exists in the database will be successful. The ordering of duplicates in the database is determined by the duplicate comparison function. If the application does not specify a comparison function using the DB->set_dup_compare() method, a default lexical comparison will be used. It is an error to specify both DB_DUPSORT and DB_RECNUM.
+
+ Calling `DB->set_flags()` with the DB_DUPSORT flag affects the database, including all threads of control accessing the database.
+
+ If the database already exists when DB->open() is called, the DB_DUPSORT flag must be the same as the existing database or an error will be returned.
+
+- `DB_RECNUM`
+
+ Support retrieval from the Btree using record numbers. For more information, see the DB_SET_RECNO flag to the DB->get() and DBcursor->get() methods.
+
+ Logical record numbers in Btree databases are mutable in the face of record insertion or deletion. See the DB_RENUMBER flag in the Recno access method information for further discussion.
+
+ Maintaining record counts within a Btree introduces a serious point of contention, namely the page locations where the record counts are stored. In addition, the entire database must be locked during both insertions and deletions, effectively single-threading the database for those operations. Specifying DB_RECNUM can result in serious performance degradation for some applications and data sets.
+
+ It is an error to specify both DB_DUP and DB_RECNUM.
+
+ Calling `DB->set_flags()` with the DB_RECNUM flag affects the database, including all threads of control accessing the database.
+
+ If the database already exists when DB->open() is called, the DB_RECNUM flag must be the same as the existing database or an error will be returned.
+
+- `DB_REVSPLITOFF`
+
+ Turn off reverse splitting in the Btree. As pages are emptied in a database, the Berkeley DB Btree implementation attempts to coalesce empty pages into higher-level pages in order to keep the database as small as possible and minimize search time. This can hurt performance in applications with cyclical data demands; that is, applications where the database grows and shrinks repeatedly. For example, because Berkeley DB does page-level locking, the maximum level of concurrency in a database of two pages is far smaller than that in a database of 100 pages, so a database that has shrunk to a minimal size can cause severe deadlocking when a new cycle of data insertion begins.
+
+ Calling `DB->set_flags()` with the DB_REVSPLITOFF flag only affects the specified DB handle (and any other Berkeley DB handles opened within the scope of that handle).
+
+**Hash**
+
+The following flags may be specified for the Hash access method:
+
+- `DB_DUP`
+
+ Permit duplicate data items in the database; that is, insertion when the key of the key/data pair being inserted already exists in the database will be successful. The ordering of duplicates in the database is determined by the order of insertion, unless the ordering is otherwise specified by use of a cursor operation.
+
+ The DB_DUPSORT flag is preferred to DB_DUP for performance reasons. The DB_DUP flag should only be used by applications wanting to order duplicate data items manually.
+
+ Calling `DB->set_flags()` with the DB_DUP flag affects the database, including all threads of control accessing the database.
+
+ If the database already exists when DB->open() is called, the DB_DUP flag must be the same as the existing database or an error will be returned.
+
+- `DB_DUPSORT`
+
+ Permit duplicate data items in the database; that is, insertion when the key of the key/data pair being inserted already exists in the database will be successful. The ordering of duplicates in the database is determined by the duplicate comparison function. If the application does not specify a comparison function using the DB->set_dup_compare() method, a default lexical comparison will be used.
+
+ Calling `DB->set_flags()` with the DB_DUPSORT flag affects the database, including all threads of control accessing the database.
+
+ If the database already exists when DB->open() is called, the DB_DUPSORT flag must be the same as the existing database or an error will be returned.
+
+- `DB_REVSPLITOFF`
+
+ Turns off hash bucket compaction. When a hash bucket is emptied, the Berkeley DB Hash implementation will decrease the hash table size, coalescing buckets. This will decrease the number of pages in the database. This can hurt performance in applications with cyclical data demands — that is, applications where the database grows and shrinks repeatedly — because of the cost of resplitting buckets when they grow again.
+
+ Calling `DB->set_flags()` with the DB_REVSPLITOFF flag only affects the specified DB handle (and any other Berkeley DB handles opened within the scope of that handle).
+
+**Queue**
+
+The following flags may be specified for the Queue access method:
+
+- `DB_INORDER`
+
+ The DB_INORDER flag modifies the operation of the DB_CONSUME or DB_CONSUME_WAIT flags to DB->get() to return key/data pairs in order. That is, they will always return the key/data item from the head of the queue.
+
+ The default behavior of queue databases is optimized for multiple readers, and does not guarantee that record will be retrieved in the order they are added to the queue. Specifically, if a writing thread adds multiple records to an empty queue, reading threads may skip some of the initial records when the next DB->get() call returns.
+
+ This flag modifies the DB->get() call to verify that the record being returned is in fact the head of the queue. This will increase contention and reduce concurrency when there are many reading threads.
+
+ Calling `DB->set_flags()` with the DB_INORDER flag only affects the specified DB handle (and any other Berkeley DB handles opened within the scope of that handle).
+
+**Recno**
+
+The following flags may be specified for the Recno access method:
+
+- `DB_RENUMBER`
+
+ Specifying the DB_RENUMBER flag causes the logical record numbers to be mutable, and change as records are added to and deleted from the database.
+
+ Using the DB->put() or DBcursor->put() interfaces to create new records will cause the creation of multiple records if the record number is more than one greater than the largest record currently in the database. For example, creating record 28, when record 25 was previously the last record in the database, will create records 26 and 27 as well as 28. Attempts to retrieve records that were created in this manner will result in an error return of DB_KEYEMPTY .
+
+ If a created record is not at the end of the database, all records following the new record will be automatically renumbered upward by one. For example, the creation of a new record numbered 8 causes records numbered 8 and greater to be renumbered upward by one. If a cursor was positioned to record number 8 or greater before the insertion, it will be shifted upward one logical record, continuing to refer to the same record as it did before.
+
+ If a deleted record is not at the end of the database, all records following the removed record will be automatically renumbered downward by one. For example, deleting the record numbered 8 causes records numbered 9 and greater to be renumbered downward by one. If a cursor was positioned to record number 9 or greater before the removal, it will be shifted downward one logical record, continuing to refer to the same record as it did before.
+
+ If a record is deleted, all cursors that were positioned on that record prior to the removal will no longer be positioned on a valid entry. This includes cursors used to delete an item. For example, if a cursor was positioned to record number 8 before the removal of that record, subsequent calls to DBcursor->get() with flags of DB_CURRENT will result in an error return of DB_KEYEMPTY until the cursor is moved to another record. A call to DBcursor->get() with flags of DB_NEXT will return the new record numbered 8 - which is the record that was numbered 9 prior to the delete (if such a record existed).
+
+ For these reasons, concurrent access to a Recno database with the DB_RENUMBER flag specified may be largely meaningless, although it is supported.
+
+ Calling `DB->set_flags()` with the DB_RENUMBER flag affects the database, including all threads of control accessing the database.
+
+ If the database already exists when DB->open() is called, the DB_RENUMBER flag must be the same as the existing database or an error will be returned.
+
+- `DB_SNAPSHOT`
+
+ This flag specifies that any specified **re_source** file be read in its entirety when DB->open() is called. If this flag is not specified, the **re_source** file may be read lazily.
+
+ See the DB->set_re_source() method for information on the **re_source** file.
+
+ Calling `DB->set_flags()` with the DB_SNAPSHOT flag only affects the specified DB handle (and any other Berkeley DB handles opened within the scope of that handle).
+
+### Errors
+
+The `DB->set_flags()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_h_compare.md b/docs-src/api/c/dbset_h_compare.md
new file mode 100644
index 000000000..dd6aff31b
--- /dev/null
+++ b/docs-src/api/c/dbset_h_compare.md
@@ -0,0 +1,60 @@
+---
+title: "DB->set_h_compare()"
+api-name: "DB->set_h_compare()"
+source: docs/api_reference/C/dbset_h_compare.html
+---
+## DB-\>set_h_compare()
+
+``` c
+#include
+
+int
+DB->set_h_compare(DB *db,
+ int (*compare_fcn)(DB *db, const DBT *dbt1, const DBT *dbt2));
+```
+
+Set the Hash key comparison function. The comparison function is called whenever it is necessary to compare a key specified by the application with a key currently stored in the database.
+
+If no comparison function is specified, a byte-by-byte comparison is performed.
+
+The `DB->set_h_compare()` method configures operations performed using the specified DB handle, not all operations performed on the underlying database.
+
+The `DB->set_h_compare()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_h_compare()` must be the same as that historically used to create the database or corruption can occur.
+
+The `DB->set_h_compare()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### compare_fcn
+
+The **compare_fcn** function is the application-specified Hash comparison function. The comparison function takes three parameters:
+
+- `db`
+
+ The **db** parameter is the enclosing database handle.
+
+- `dbt1`
+
+ The **dbt1** parameter is the DBT representing the application supplied key.
+
+- `dbt2`
+
+ The **dbt2** parameter is the DBT representing the current database's key.
+
+The **compare_fcn** function must return an integer value less than, equal to, or greater than zero if the first key parameter is considered to be respectively less than, equal to, or greater than the second key parameter. The comparison function must correctly handle any key values used by the application (possibly including zero-length keys). The **data** and **size** fields of the DBT are the only fields that may be used for the purposes of this comparison, and no particular alignment of the memory to which by the **data** field refers may be assumed.
+
+### Errors
+
+The `DB->set_h_compare()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_h_ffactor.md b/docs-src/api/c/dbset_h_ffactor.md
new file mode 100644
index 000000000..4a2823d9d
--- /dev/null
+++ b/docs-src/api/c/dbset_h_ffactor.md
@@ -0,0 +1,49 @@
+---
+title: "DB->set_h_ffactor()"
+api-name: "DB->set_h_ffactor()"
+source: docs/api_reference/C/dbset_h_ffactor.html
+---
+## DB-\>set_h_ffactor()
+
+``` c
+#include
+
+int
+DB->set_h_ffactor(DB *db, u_int32_t h_ffactor);
+```
+
+Set the desired density within the hash table. If no value is specified, the fill factor will be selected dynamically as pages are filled.
+
+The density is an approximation of the number of keys allowed to accumulate in any one bucket, determining when the hash table grows or shrinks. If you know the average sizes of the keys and data in your data set, setting the fill factor can enhance performance. A reasonable rule computing fill factor is to set it to the following:
+
+``` c
+ (pagesize - 32) / (average_key_size + average_data_size + 8)
+```
+
+The `DB->set_h_ffactor()` method configures a database, not only operations performed using the specified DB handle.
+
+The `DB->set_h_ffactor()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_h_ffactor()` will be ignored.
+
+The `DB->set_h_ffactor()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### h_ffactor
+
+The **h_ffactor** parameter is the desired density within the hash table.
+
+### Errors
+
+The `DB->set_h_ffactor()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_h_hash.md b/docs-src/api/c/dbset_h_hash.md
new file mode 100644
index 000000000..7e7c42f45
--- /dev/null
+++ b/docs-src/api/c/dbset_h_hash.md
@@ -0,0 +1,47 @@
+---
+title: "DB->set_h_hash()"
+api-name: "DB->set_h_hash()"
+source: docs/api_reference/C/dbset_h_hash.html
+---
+## DB-\>set_h_hash()
+
+``` c
+#include
+
+int
+DB->set_h_hash(DB *db,
+ u_int32_t (*h_hash_fcn)(DB *dbp, const void *bytes,
+ u_int32_t length));
+```
+
+Set a user-defined hash function; if no hash function is specified, a default hash function is used. Because no hash function performs equally well on all possible data, the user may find that the built-in hash function performs poorly with a particular data set.
+
+The `DB->set_h_hash()` method configures operations performed using the specified DB handle, not all operations performed on the underlying database.
+
+The `DB->set_h_hash()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_h_hash()` must be the same as that historically used to create the database or corruption can occur.
+
+The `DB->set_h_hash()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### h_hash_fcn
+
+The **h_hash_fcn** parameter is the application-specified hash function.
+
+Application-specified hash functions take a pointer to a byte string and a length as parameters, and return a value of type **u_int32_t**. The hash function must handle any key values used by the application (possibly including zero-length keys).
+
+### Errors
+
+The `DB->set_h_hash()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_h_nelem.md b/docs-src/api/c/dbset_h_nelem.md
new file mode 100644
index 000000000..d20e7353e
--- /dev/null
+++ b/docs-src/api/c/dbset_h_nelem.md
@@ -0,0 +1,45 @@
+---
+title: "DB->set_h_nelem()"
+api-name: "DB->set_h_nelem()"
+source: docs/api_reference/C/dbset_h_nelem.html
+---
+## DB-\>set_h_nelem()
+
+``` c
+#include
+
+int
+DB->set_h_nelem(DB *db, u_int32_t h_nelem);
+```
+
+Set an estimate of the final size of the hash table.
+
+In order for the estimate to be used when creating the database, the DB->set_h_ffactor() method must also be called. If the estimate or fill factor are not set or are set too low, hash tables will still expand gracefully as keys are entered, although a slight performance degradation may be noticed.
+
+The `DB->set_h_nelem()` method configures a database, not only operations performed using the specified DB handle.
+
+The `DB->set_h_nelem()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_h_nelem()` will be ignored.
+
+The `DB->set_h_nelem()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### h_nelem
+
+The **h_nelem** parameter is an estimate of the final size of the hash table.
+
+### Errors
+
+The `DB->set_h_nelem()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_heap_regionsize.md b/docs-src/api/c/dbset_heap_regionsize.md
new file mode 100644
index 000000000..e8aa41069
--- /dev/null
+++ b/docs-src/api/c/dbset_heap_regionsize.md
@@ -0,0 +1,41 @@
+---
+title: "DB->set_heap_regionsize()"
+api-name: "DB->set_heap_regionsize()"
+source: docs/api_reference/C/dbset_heap_regionsize.html
+---
+## DB-\>set_heap_regionsize()
+
+``` c
+#include
+
+int
+DB->set_heap_regionsize(DB *db, u_int32_t npages);
+```
+
+Sets the number of pages in a region of a database configured to use the Heap access method. If this method is never called, the default region size for the database's page size will be used. You can set the database page size using the DB->set_pagesize() method.
+
+The `DB->set_heap_regionsize()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_heap_regionsize()` will be ignored. If the specified region size is larger than the maximum region size for the database's page size, an error will be returned when DB->open() is called. The maximum allowable region size will be included in the error message.
+
+The `DB->set_heap_regionsize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### npages
+
+The **npages** parameter is the number of pages in a Heap database region.
+
+### Errors
+
+The `DB->set_heap_regionsize()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the specified region size was too small; the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods , DB->get_heap_regionsize()
diff --git a/docs-src/api/c/dbset_heapsize.md b/docs-src/api/c/dbset_heapsize.md
new file mode 100644
index 000000000..79daa30bb
--- /dev/null
+++ b/docs-src/api/c/dbset_heapsize.md
@@ -0,0 +1,52 @@
+---
+title: "DB->set_heapsize()"
+api-name: "DB->set_heapsize()"
+source: docs/api_reference/C/dbset_heapsize.html
+---
+## DB-\>set_heapsize()
+
+``` c
+#include
+
+int
+DB->set_heapsize(DB *db,
+ u_int32_t gbytes, u_int32_t bytes, u_int32_t flags);
+```
+
+Sets the maximum on-disk database file size used by a database configured to use the Heap access method. If this method is never called, the database's file size can grow without bound. If this method is called, then the heap file can never grow larger than the limit defined by this method. In that case, attempts to update or create records in a Heap database that has reached its maximum size will result in a `DB_HEAP_FULL` error return.
+
+The size specified to this method must be at least three times the database page size. That is, a Heap database must contain at least three database pages. You can set the database page size using the DB->set_pagesize() method.
+
+The `DB->set_heapsize()` method may not be called after the DB->open() method is called. Further, if this method is called on an existing Heap database, the size specified here must match the size used to create the database. Note, however, that specifying an incorrect size to this method will not result in an error return (`EINVAL`) until the database is opened.
+
+The `DB->set_heapsize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### gbytes
+
+The size of the heap is set to **gbytes** gigabytes plus **bytes**.
+
+#### bytes
+
+The size of the heap is set to **gbytes** gigabytes plus **bytes**.
+
+#### flags
+
+The **flags** parameter is currently unused, and must be set to 0.
+
+### Errors
+
+The `DB->set_heapsize()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the specified heap size was too small; the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_lk_exclusive.md b/docs-src/api/c/dbset_lk_exclusive.md
new file mode 100644
index 000000000..1c77ae377
--- /dev/null
+++ b/docs-src/api/c/dbset_lk_exclusive.md
@@ -0,0 +1,57 @@
+---
+title: "DB->set_lk_exclusive()"
+api-name: "DB->set_lk_exclusive()"
+source: docs/api_reference/C/dbset_lk_exclusive.html
+---
+## DB-\>set_lk_exclusive()
+
+``` c
+#include
+
+int
+DB->set_lk_exclusive(DB *db, int nowait_onoff);
+```
+
+Configures the database handle to obtain a write lock on the entire database when it is opened. This gives the handle exclusive access to the database, because the write lock will block all other threads of control for both read and write access.
+
+Use this method to improve the throughput performance on your database for the thread that is controlling this handle. When configured with this method, operations on the database do not acquire page locks as they perform read and/or write operations. Also, the exclusive lock means that operations performed on the database handle will never be blocked waiting for lock due to another thread's activities. The application will also be immune to deadlocks.
+
+On the other hand, use of this method means that you can only have a single thread accessing the database until the handle is closed. For some applications, the loss of multiple threads concurrently operating on the database will result in performance degradation.
+
+Also, use of this method means that you can only have one transaction active for the handle at a time.
+
+### Note
+
+This method is incompatible with the DB_THREAD configuration flag.
+
+The `DB->set_lk_exclusive()` method may not be called after the DB->open() method is called.
+
+The `DB->set_lk_exclusive()` method returns a non-zero error value on failure and 0 on success.
+
+### Replication Notes
+
+Replication applications that use exclusive database handles need to be written with caution. This is because replication clients cannot process updates on an exclusive database until all local handles on the database are closed. Also, attempting to open an exclusive database handle on a currently operating client will result in the open call failing with the error `EINVAL`.
+
+Also, opening an exclusive database handle on a replication master will result in all clients being locked out of the database. On clients, existing handles on the exclusive database will return the error `DB_REP_DEAD_HANDLE` when accessed, and must be closed. New handles opened on the exclusive database will block until the master closes its exclusive database handle.
+
+### Parameters
+
+#### nowait_onoff
+
+If set to `0`, this method will block until it can obtain the exclusive lock on the database. If set to some value other than `0`, `DB_LOCK_NOTGRANTED` is returned when the handle is opened if the exclusive database lock cannot be immediately obtained.
+
+### Errors
+
+The `DB->set_lk_exclusive()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; the method was called on a currently operating replication client; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_lorder.md b/docs-src/api/c/dbset_lorder.md
new file mode 100644
index 000000000..43a5b47f2
--- /dev/null
+++ b/docs-src/api/c/dbset_lorder.md
@@ -0,0 +1,47 @@
+---
+title: "DB->set_lorder()"
+api-name: "DB->set_lorder()"
+source: docs/api_reference/C/dbset_lorder.html
+---
+## DB-\>set_lorder()
+
+``` c
+#include
+
+int
+DB->set_lorder(DB *db, int lorder);
+```
+
+Set the byte order for integers in the stored database metadata. The host byte order of the machine where the Berkeley DB library was compiled will be used if no byte order is set.
+
+**The access methods provide no guarantees about the byte ordering of the application data stored in the database, and applications are responsible for maintaining any necessary ordering.**
+
+The `DB->set_lorder()` method configures a database, not only operations performed using the specified DB handle.
+
+The `DB->set_lorder()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_lorder()` will be ignored.
+
+If creating additional databases in a single physical file, information specified to `DB->set_lorder()` will be ignored and the byte order of the existing databases will be used.
+
+The `DB->set_lorder()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### lorder
+
+The **lorder** parameter should represent the byte order as an integer; for example, big endian order is the number 4,321, and little endian order is the number 1,234.
+
+### Errors
+
+The `DB->set_lorder()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_msgcall.md b/docs-src/api/c/dbset_msgcall.md
new file mode 100644
index 000000000..83a13f70a
--- /dev/null
+++ b/docs-src/api/c/dbset_msgcall.md
@@ -0,0 +1,54 @@
+---
+title: "DB->set_msgcall()"
+api-name: "DB->set_msgcall()"
+source: docs/api_reference/C/dbset_msgcall.html
+---
+## DB-\>set_msgcall()
+
+``` c
+#include
+
+void
+DB->set_msgcall(DB *,
+ void (*db_msgcall_fcn)(const DB_ENV *dbenv, char *msg));
+```
+
+There are interfaces in the Berkeley DB library which either directly output informational messages or statistical information, or configure the library to output such messages when performing other operations, for example, DB_ENV->set_verbose() and DB_ENV->stat_print() .
+
+The DB_ENV->set_msgcall() and `DB->set_msgcall()` methods are used to pass these messages to the application, and Berkeley DB will call **db_msgcall_fcn** with each message. It is up to the **db_msgcall_fcn** function to display the message in an appropriate manner.
+
+Setting **db_msgcall_fcn** to NULL unconfigures the callback interface.
+
+Alternatively, you can use the DB->set_msgfile() or DB->set_msgfile() methods to display the messages via a C library FILE \*.
+
+For DB handles opened inside of Berkeley DB environments, calling the `DB->set_msgcall()` method affects the entire environment and is equivalent to calling the `DB_ENV->set_msgcall()` method.
+
+The `DB->set_msgcall()` method configures operations performed using the specified DB handle, not all operations performed on the underlying database.
+
+The `DB->set_msgcall()` method may be called at any time during the life of the application.
+
+### Note
+
+Berkeley DB is not re-entrant. Callback functions should not attempt to make library calls (for example, to release locks or close open handles). Re-entering Berkeley DB is not guaranteed to work correctly, and the results are undefined.
+
+### Parameters
+
+#### db_msgcall_fcn
+
+The **db_msgcall_fcn** parameter is the application-specified message reporting function. The function takes two parameters:
+
+- `dbenv`
+
+ The **dbenv** parameter is the enclosing database environment.
+
+- `msg`
+
+ The **msg** parameter is the message string.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_msgfile.md b/docs-src/api/c/dbset_msgfile.md
new file mode 100644
index 000000000..50489fe97
--- /dev/null
+++ b/docs-src/api/c/dbset_msgfile.md
@@ -0,0 +1,41 @@
+---
+title: "DB->set_msgfile()"
+api-name: "DB->set_msgfile()"
+source: docs/api_reference/C/dbset_msgfile.html
+---
+## DB-\>set_msgfile()
+
+``` c
+#include
+
+void
+DB->set_msgfile(DB *db, FILE *msgfile);
+```
+
+There are interfaces in the Berkeley DB library which either directly output informational messages or statistical information, or configure the library to output such messages when performing other operations, for example, DB_ENV->set_verbose() and DB_ENV->stat_print() .
+
+The DB_ENV->set_msgfile() and `DB->set_msgfile()` methods are used to display these messages for the application. In this case the message will include a trailing \ character.
+
+Setting **msgfile** to NULL unconfigures the interface.
+
+Alternatively, you can use the DB_ENV->set_msgcall() or DB->set_msgcall() methods to capture the additional error information in a way that does not use C library FILE \*'s.
+
+For DB handles opened inside of Berkeley DB environments, calling the `DB->set_msgfile()` method affects the entire environment and is equivalent to calling the DB_ENV->set_msgfile() method.
+
+The `DB->set_msgfile()` method configures operations performed using the specified DB handle, not all operations performed on the underlying database.
+
+The `DB->set_msgfile()` method may be called at any time during the life of the application.
+
+### Parameters
+
+#### msgfile
+
+The **msgfile** parameter is a C library FILE \* to be used for displaying messages.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_pagesize.md b/docs-src/api/c/dbset_pagesize.md
new file mode 100644
index 000000000..83d9deda2
--- /dev/null
+++ b/docs-src/api/c/dbset_pagesize.md
@@ -0,0 +1,47 @@
+---
+title: "DB->set_pagesize()"
+api-name: "DB->set_pagesize()"
+source: docs/api_reference/C/dbset_pagesize.html
+---
+## DB-\>set_pagesize()
+
+``` c
+#include
+
+int
+DB->set_pagesize(DB *db, u_int32_t pagesize);
+```
+
+Set the size of the pages used to hold items in the database, in bytes. The minimum page size is 512 bytes, the maximum page size is 64K bytes, and the page size must be a power-of-two. If the page size is not explicitly set, one is selected based on the underlying filesystem I/O block size. The automatically selected size has a lower limit of 512 bytes and an upper limit of 16K bytes.
+
+For information on tuning the Berkeley DB page size, see Selecting a page size .
+
+The `DB->set_pagesize()` method configures a database, not only operations performed using the specified DB handle.
+
+The `DB->set_pagesize()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_pagesize()` will be ignored.
+
+If creating additional databases in a single physical file, information specified to `DB->set_pagesize()` will be ignored and the page size of the existing databases will be used.
+
+The `DB->set_pagesize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### pagesize
+
+The **pagesize** parameter sets the database page size.
+
+### Errors
+
+The `DB->set_pagesize()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_partition.md b/docs-src/api/c/dbset_partition.md
new file mode 100644
index 000000000..d0f3f158d
--- /dev/null
+++ b/docs-src/api/c/dbset_partition.md
@@ -0,0 +1,50 @@
+---
+title: "DB->set_partition()"
+api-name: "DB->set_partition()"
+source: docs/api_reference/C/dbset_partition.html
+---
+## DB-\>set_partition()
+
+``` c
+#include
+
+int
+DB->set_partition(DB * db, u_int32_t parts, DBT *keys,
+ u_int32_t (*db_partition_fcn) (DB *db, DBT *key));
+```
+
+Set up partitioning for a database. Partitioning may be used on either BTREE or HASH databases. Partitions may be specified by either a set of keys specifying a range of values in each partition or with a callback function that returns the number of the partition to put a specific key. Partition range keys may only be specified for BTREE databases.
+
+Partitions are implimented as separate database files and can help reduce contention within a logical database. Contention can come from multiple threads of control accessing database pages simultaniously. Typically these pages are the root of a btree and the metadata page which contains allocation information in both BTREE and HASH databases. Each partition has its own metadata and root pages.
+
+### Parameters
+
+Exactly one of the parameters **keys** and **partition_fcn** must be NULL.
+
+#### parts
+
+The **parts** parameter is the number of partitions to create. The value must be 2 or greater.
+
+#### keys
+
+The **keys** parameter is an array of DBT structures containing the keys that specify the range of key values to be stored in each partition. Each key specifies the minimum value that may be stored in the corresponding partition. The number of keys must be one less than the number of partitions specified by the **parts** parameter since the first partition will hold any key less than the first key in the array.
+
+#### db_partition_fcn
+
+The **db_partition_fcn** parameter is the application-specified partitioning function. The function returns an integer which will be used modulo the number of partitions specified by the **parts** parameter. The function will be called with two parameters:
+
+- `db`
+
+ The **db** parameter is the database handle.
+
+- `key`
+
+ The **key** parameter is the key for which a partition number should be returned.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_partition_dirs.md b/docs-src/api/c/dbset_partition_dirs.md
new file mode 100644
index 000000000..f80598e1e
--- /dev/null
+++ b/docs-src/api/c/dbset_partition_dirs.md
@@ -0,0 +1,41 @@
+---
+title: "DB->set_partition_dirs()"
+api-name: "DB->set_partition_dirs()"
+source: docs/api_reference/C/dbset_partition_dirs.html
+---
+## DB-\>set_partition_dirs()
+
+``` c
+#include
+
+int
+DB->set_partition_dirs(DB *db, const char **dirs);
+```
+
+Specify which directories the database extents should be created in or looked for. If the number of directories is less than the number of partitions, the directories will be used in a round robin fashion.
+
+The `DB->set_partition_dirs()` method may not be called after the DB->open() method is called.
+
+The `DB->set_partition_dirs()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dirs
+
+The **dirs** points to an array of directories that will be used to create or locate the database extent files specified in the DB->open() method call. The directories must be included in the environment list specified by DB_ENV->add_data_dir() .
+
+### Errors
+
+The `DB->set_partition_dirs()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_priority.md b/docs-src/api/c/dbset_priority.md
new file mode 100644
index 000000000..c4129f17c
--- /dev/null
+++ b/docs-src/api/c/dbset_priority.md
@@ -0,0 +1,55 @@
+---
+title: "DB->set_priority()"
+api-name: "DB->set_priority()"
+source: docs/api_reference/C/dbset_priority.html
+---
+## DB-\>set_priority()
+
+``` c
+#include
+
+int
+DB->set_priority(DB *db, DB_CACHE_PRIORITY priority);
+```
+
+Set the cache priority for pages referenced by the DB handle.
+
+The priority of a page biases the replacement algorithm to be more or less likely to discard a page when space is needed in the buffer pool. The bias is temporary, and pages will eventually be discarded if they are not referenced again. The `DB->set_priority()` method is only advisory, and does not guarantee pages will be treated in a specific way.
+
+The `DB->set_priority()` method may be called at any time during the life of the application.
+
+The `DB->set_priority()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### priority
+
+The **priority** parameter must be set to one of the following values:
+
+- `DB_PRIORITY_VERY_LOW`
+
+ The lowest priority: pages are the most likely to be discarded.
+
+- `DB_PRIORITY_LOW`
+
+ The next lowest priority.
+
+- `DB_PRIORITY_DEFAULT`
+
+ The default priority.
+
+- `DB_PRIORITY_HIGH`
+
+ The next highest priority.
+
+- `DB_PRIORITY_VERY_HIGH`
+
+ The highest priority: pages are the least likely to be discarded.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_q_extentsize.md b/docs-src/api/c/dbset_q_extentsize.md
new file mode 100644
index 000000000..0389ac8e2
--- /dev/null
+++ b/docs-src/api/c/dbset_q_extentsize.md
@@ -0,0 +1,45 @@
+---
+title: "DB->set_q_extentsize()"
+api-name: "DB->set_q_extentsize()"
+source: docs/api_reference/C/dbset_q_extentsize.html
+---
+## DB-\>set_q_extentsize()
+
+``` c
+#include
+
+int
+DB->set_q_extentsize(DB *db, u_int32_t extentsize);
+```
+
+Set the size of the extents used to hold pages in a Queue database, specified as a number of pages. Each extent is created as a separate physical file. If no extent size is set, the default behavior is to create only a single underlying database file.
+
+For information on tuning the extent size, see Selecting a extent size .
+
+The `DB->set_q_extentsize()` method configures a database, not only operations performed using the specified DB handle.
+
+The `DB->set_q_extentsize()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_q_extentsize()` will be ignored.
+
+The `DB->set_q_extentsize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### extentsize
+
+The **extentsize** parameter is the number of pages in a Queue database extent.
+
+### Errors
+
+The `DB->set_q_extentsize()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_re_delim.md b/docs-src/api/c/dbset_re_delim.md
new file mode 100644
index 000000000..5bc3465ff
--- /dev/null
+++ b/docs-src/api/c/dbset_re_delim.md
@@ -0,0 +1,45 @@
+---
+title: "DB->set_re_delim()"
+api-name: "DB->set_re_delim()"
+source: docs/api_reference/C/dbset_re_delim.html
+---
+## DB-\>set_re_delim()
+
+``` c
+#include
+
+int
+DB->set_re_delim(DB *db, int *re_delim);
+```
+
+Set the delimiting byte used to mark the end of a record in the backing source file for the Recno access method.
+
+This byte is used for variable length records if the **re_source** file is specified using the DB->set_re_source() method. If the **re_source** file is specified and no delimiting byte was specified, \ characters (that is, ASCII 0x0a) are interpreted as end-of-record markers.
+
+The `DB->set_re_delim()` method configures a database, not only operations performed using the specified DB handle.
+
+The `DB->set_re_delim()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_re_delim()` will be ignored.
+
+The `DB->set_re_delim()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### re_delim
+
+The **re_delim** parameter is the delimiting byte used to mark the end of a record.
+
+### Errors
+
+The `DB->set_re_delim()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_re_len.md b/docs-src/api/c/dbset_re_len.md
new file mode 100644
index 000000000..f0c12f8d2
--- /dev/null
+++ b/docs-src/api/c/dbset_re_len.md
@@ -0,0 +1,49 @@
+---
+title: "DB->set_re_len()"
+api-name: "DB->set_re_len()"
+source: docs/api_reference/C/dbset_re_len.html
+---
+## DB-\>set_re_len()
+
+``` c
+#include
+
+int
+DB->set_re_len(DB *db, u_int32_t re_len);
+```
+
+For the Queue access method, specify that the records are of length **re_len**. For the Queue access method, the record length must be enough smaller than the database's page size that at least one record plus the database page's metadata information can fit on each database page.
+
+For the Recno access method, specify that the records are fixed-length, not byte-delimited, and are of length **re_len**.
+
+Any records added to the database that are less than **re_len** bytes long are automatically padded (see DB->set_re_pad() for more information).
+
+Any attempt to insert records into the database that are greater than **re_len** bytes long will cause the call to fail immediately and return an error.
+
+The `DB->set_re_len()` method configures a database, not only operations performed using the specified DB handle.
+
+The `DB->set_re_len()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_re_len()` will be ignored.
+
+The `DB->set_re_len()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### re_len
+
+The **re_len** parameter is the length of a Queue or Recno database record, in bytes.
+
+### Errors
+
+The `DB->set_re_len()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_re_pad.md b/docs-src/api/c/dbset_re_pad.md
new file mode 100644
index 000000000..678706eb5
--- /dev/null
+++ b/docs-src/api/c/dbset_re_pad.md
@@ -0,0 +1,45 @@
+---
+title: "DB->set_re_pad()"
+api-name: "DB->set_re_pad()"
+source: docs/api_reference/C/dbset_re_pad.html
+---
+## DB-\>set_re_pad()
+
+``` c
+#include
+
+int
+DB->set_re_pad(DB *db, int re_pad);
+```
+
+Set the padding character for short, fixed-length records for the Queue and Recno access methods.
+
+If no pad character is specified, \ characters (that is, ASCII 0x20) are used for padding.
+
+The `DB->set_re_pad()` method configures a database, not only operations performed using the specified DB handle.
+
+The `DB->set_re_pad()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_re_pad()` will be ignored.
+
+The `DB->set_re_pad()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### re_pad
+
+The **re_pad** parameter is the pad character for fixed-length records for the Queue and Recno access methods.
+
+### Errors
+
+The `DB->set_re_pad()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbset_re_source.md b/docs-src/api/c/dbset_re_source.md
new file mode 100644
index 000000000..a2c91eb55
--- /dev/null
+++ b/docs-src/api/c/dbset_re_source.md
@@ -0,0 +1,59 @@
+---
+title: "DB->set_re_source()"
+api-name: "DB->set_re_source()"
+source: docs/api_reference/C/dbset_re_source.html
+---
+## DB-\>set_re_source()
+
+``` c
+#include
+
+int
+DB->set_re_source(DB *db, char *source);
+```
+
+Set the underlying source file for the Recno access method. The purpose of the **source** value is to provide fast access and modification to databases that are normally stored as flat text files.
+
+The **source** parameter specifies an underlying flat text database file that is read to initialize a transient record number index. In the case of variable length records, the records are separated, as specified by DB->set_re_delim() . For example, standard UNIX byte stream files can be interpreted as a sequence of variable length records separated by \ characters.
+
+In addition, when cached data would normally be written back to the underlying database file (for example, the DB->close() or DB->sync() methods are called), the in-memory copy of the database will be written back to the **source** file.
+
+By default, the backing source file is read lazily; that is, records are not read from the file until they are requested by the application. **If multiple processes (not threads) are accessing a Recno database concurrently, and are either inserting or deleting records, the backing source file must be read in its entirety before more than a single process accesses the database, and only that process should specify the backing source file as part of the DB->open() call. See the DB_SNAPSHOT flag for more information.**
+
+**Reading and writing the backing source file specified by ****source** cannot be transaction-protected because it involves filesystem operations that are not part of the Db transaction methodology.**** For this reason, if a temporary database is used to hold the records, it is possible to lose the contents of the **source** file, for example, if the system crashes at the right instant. If a file is used to hold the database, normal database recovery on that file can be used to prevent information loss, although it is still possible that the contents of **source** will be lost if the system crashes.
+
+The **source** file must already exist (but may be zero-length) when DB->open() is called.
+
+It is not an error to specify a read-only **source** file when creating a database, nor is it an error to modify the resulting database. However, any attempt to write the changes to the backing source file using either the DB->sync() or DB->close() methods will fail, of course. Specify the DB_NOSYNC flag to the DB->close() method to stop it from attempting to write the changes to the backing file; instead, they will be silently discarded.
+
+For all of the previous reasons, the **source** field is generally used to specify databases that are read-only for Berkeley DB applications; and that are either generated on the fly by software tools or modified using a different mechanism — for example, a text editor.
+
+The `DB->set_re_source()` method configures operations performed using the specified DB handle, not all operations performed on the underlying database.
+
+The `DB->set_re_source()` method may not be called after the DB->open() method is called. If the database already exists when DB->open() is called, the information specified to `DB->set_re_source()` must be the same as that historically used to create the database or corruption can occur.
+
+The `DB->set_re_source()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### source
+
+The backing flat text database file for a Recno database.
+
+When using a Unicode build on Windows (the default), the **source** argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters.
+
+### Errors
+
+The `DB->set_re_source()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbsite_close.md b/docs-src/api/c/dbsite_close.md
new file mode 100644
index 000000000..29acad930
--- /dev/null
+++ b/docs-src/api/c/dbsite_close.md
@@ -0,0 +1,33 @@
+---
+title: "DB_SITE->close()"
+api-name: "DB_SITE->close()"
+source: docs/api_reference/C/dbsite_close.html
+---
+## DB_SITE-\>close()
+
+``` c
+#include
+
+int
+DB_SITE->close(DB_SITE *site);
+```
+
+The `DB_SITE->close()` method deallocates the DB_SITE handle. The handle must not be accessed again after this method is called, regardless of the return value.
+
+Use of this method does not in any way affect the configuration of the site to which the handle refers, or of the replication group in general.
+
+All DB_SITE handles must be closed before the owning DB_ENV handle is closed.
+
+The `DB_SITE->close()` method returns a non-zero error value on failure and 0 on success.
+
+### Errors
+
+The `DB_SITE->close()` method may fail and return one of the following non-zero errors:
+
+### Class
+
+DB_SITE
+
+### See Also
+
+Replication and Related Methods
diff --git a/docs-src/api/c/dbsite_get_address.md b/docs-src/api/c/dbsite_get_address.md
new file mode 100644
index 000000000..44fe7657f
--- /dev/null
+++ b/docs-src/api/c/dbsite_get_address.md
@@ -0,0 +1,35 @@
+---
+title: "DB_SITE->get_address()"
+api-name: "DB_SITE->get_address()"
+source: docs/api_reference/C/dbsite_get_address.html
+---
+## DB_SITE-\>get_address()
+
+``` c
+#include
+
+int
+DB_SITE->get_address(DB_SITE *site, const char **hostp, u_int *portp);
+```
+
+The `DB_SITE->get_address()` method returns a replication site's network address. That is, this method returns the site's hostname and port.
+
+The `DB_SITE->get_address()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### hostp
+
+References memory into which is copied a pointer to the internal storage of the host name.
+
+#### portp
+
+References memory into which the port number will be copied.
+
+### Class
+
+DB_SITE
+
+### See Also
+
+Replication and Related Methods
diff --git a/docs-src/api/c/dbsite_get_config.md b/docs-src/api/c/dbsite_get_config.md
new file mode 100644
index 000000000..a26583f9f
--- /dev/null
+++ b/docs-src/api/c/dbsite_get_config.md
@@ -0,0 +1,40 @@
+---
+title: "DB_SITE->get_config()"
+api-name: "DB_SITE->get_config()"
+source: docs/api_reference/C/dbsite_get_config.html
+---
+## DB_SITE-\>get_config()
+
+``` c
+#include
+
+int
+DB_SITE->get_config(DB_SITE *site, u_int32_t which,
+ u_int32_t *valuep);
+```
+
+The `DB_SITE->get_config()` method returns whether the specified **which** parameter is currently set. See the DB_SITE->set_config() method for the configuration flags that can be set for a DB_SITE handle.
+
+The `DB_SITE->get_config()` method may be called at any time during the life of the application.
+
+The `DB_SITE->get_config()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### which
+
+The **which** parameter is the configuration flag to check. See the DB_SITE->set_config() method for a list of configuration flags that you can provide to this parameter.
+
+#### valuep
+
+The **valuep** parameter references memory into which the configuration of the specified **which** parameter is copied.
+
+If the returned value is zero, the parameter is off; otherwise it is on.
+
+### Class
+
+DB_SITE
+
+### See Also
+
+Replication and Related Methods , DB_SITE->set_config()
diff --git a/docs-src/api/c/dbsite_get_eid.md b/docs-src/api/c/dbsite_get_eid.md
new file mode 100644
index 000000000..dbcbedf6a
--- /dev/null
+++ b/docs-src/api/c/dbsite_get_eid.md
@@ -0,0 +1,39 @@
+---
+title: "DB_SITE->get_eid()"
+api-name: "DB_SITE->get_eid()"
+source: docs/api_reference/C/dbsite_get_eid.html
+---
+## DB_SITE-\>get_eid()
+
+``` c
+#include
+
+int
+DB_SITE->get_eid(DB_SITE *site, int *eidp);
+```
+
+The `DB_SITE->get_eid()` method returns a replication site's Environment ID (EID). This method can be called only after environment open.
+
+The `DB_SITE->get_eid()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### eidp
+
+References memory into which the EID will be copied.
+
+### Errors
+
+The `DB_SITE->get_eid()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If an invalid flag value or parameter was specified.
+
+### Class
+
+DB_SITE
+
+### See Also
+
+Replication and Related Methods
diff --git a/docs-src/api/c/dbsite_remove.md b/docs-src/api/c/dbsite_remove.md
new file mode 100644
index 000000000..a50561ba9
--- /dev/null
+++ b/docs-src/api/c/dbsite_remove.md
@@ -0,0 +1,35 @@
+---
+title: "DB_SITE->remove()"
+api-name: "DB_SITE->remove()"
+source: docs/api_reference/C/dbsite_remove.html
+---
+## DB_SITE-\>remove()
+
+``` c
+#include
+
+int
+DB_SITE->remove(DB_SITE *site);
+```
+
+The `DB_SITE->remove()` method removes the site from the replication group. If called at the master site, repmgr updates the membership database directly. If called from a client, this method causes a request to be sent to the master to perform the operation. The method then awaits confirmation.
+
+The DB_SITE handle must not be accessed again after this method is called, regardless of the return value.
+
+The `DB_SITE->remove()` method returns a non-zero error value on failure and 0 on success.
+
+### Errors
+
+The `DB_SITE->remove()` method may fail and return one of the following non-zero errors:
+
+#### DB_REP_UNAVAIL
+
+The master updated the database but did not receive enough acknowledgements from clients sufficient to meet the current ack policy or there was an attempt to remove the current master site from the replication group.
+
+### Class
+
+DB_SITE
+
+### See Also
+
+Replication and Related Methods
diff --git a/docs-src/api/c/dbsite_set_config.md b/docs-src/api/c/dbsite_set_config.md
new file mode 100644
index 000000000..d148ec39c
--- /dev/null
+++ b/docs-src/api/c/dbsite_set_config.md
@@ -0,0 +1,67 @@
+---
+title: "DB_SITE->set_config()"
+api-name: "DB_SITE->set_config()"
+source: docs/api_reference/C/dbsite_set_config.html
+---
+## DB_SITE-\>set_config()
+
+``` c
+#include
+
+int
+DB_SITE->set_config(DB_SITE *site, u_int32_t which, u_int32_t value);
+```
+
+The `DB_SITE->set_config()` method configures a Replication Manager site.
+
+The `DB_SITE->set_config()` method returns a non-zero error value on failure and 0 on success.
+
+The Replication Manager site may also be configured using the environment's DB_CONFIG file. The syntax of the entry in that file is described in repmgr_site .
+
+### Parameters
+
+#### which
+
+This parameter must be set to one of the following values:
+
+- `DB_BOOTSTRAP_HELPER`
+
+ Specifies that a remote site may be used as a "helper" when the local site is first joining the replication group. Once the local site has been established as a member of the group, this setting is ignored.
+
+- `DB_GROUP_CREATOR`
+
+ Specifies that this site should create the initial membership database contents, defining a "group" of just the one site, rather than trying to join an existing group when it starts for the first time.
+
+ This setting can only be used on the local site and is ignored when configured for a remote site.
+
+- `DB_LEGACY`
+
+ Specifies that the site is already part of an existing group. This setting causes the site to be upgraded from a previous version of BDB. All sites in the legacy group must specify this setting for themselves (the local site) and for all other sites currently existing in the group. Once the upgrade has been completed, this setting is no longer required.
+
+- `DB_LOCAL_SITE`
+
+ Specifies that this site is the local site within the replication group. The application must identify exactly one site as the local site in this way, before calling the DB_ENV->repmgr_start() method.
+
+- `DB_REPMGR_PEER`
+
+ Specifies that the site may be used as a target for "client-to-client" synchronization messages. This setting is ignored if it is specified for the local site.
+
+#### value
+
+If `0`, the parameter identified by the **which** is turned off. Otherwise, it is turned on.
+
+### Errors
+
+The `DB_SITE->set_config()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If an invalid flag value or parameter was specified.
+
+### Class
+
+DB_SITE
+
+### See Also
+
+Replication and Related Methods
diff --git a/docs-src/api/c/dbsort_multiple.md b/docs-src/api/c/dbsort_multiple.md
new file mode 100644
index 000000000..abcee1869
--- /dev/null
+++ b/docs-src/api/c/dbsort_multiple.md
@@ -0,0 +1,67 @@
+---
+title: "DB->sort_multiple()"
+api-name: "DB->sort_multiple()"
+source: docs/api_reference/C/dbsort_multiple.html
+---
+## DB-\>sort_multiple()
+
+``` c
+#include
+
+int
+DB->sort_multiple(DB *db, DBT *key, DBT *data, u_int32_t flags);
+```
+
+The `DB->sort_multiple()` method is used to sort a set of DBT s into database insert order.
+
+If specified the application specific btree comparison and duplicate comparison functions will be used if they are configured.
+
+The key and data parameters must contain pairs of items. That is the n-th entry in **key** must correspond to the n-th entry in **data**.
+
+The `DB->sort_multiple()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### key
+
+The **key** parameter must contain a set of DBT entries in DB_MULTIPLE or DB_MULTIPLE_KEY format.
+
+The sorted entries will be returned in the **key** parameter.
+
+#### data
+
+If non-NULL, the **data** parameter must contain a set of DBT s entries in DB_MULTIPLE format. Each entry must correspond to an entry in the **key** parameter.
+
+#### flags
+
+The **flags** parameter must be set to one of the following values:
+
+- DB_MULTIPLE
+
+ Sorts one or two DB_MULTIPLE format DBT s. Assumes that **key** and **data** specify pairs of key and data items to sort together. If the **data** parameter is NULL the API will sort the key arrays according to the btree comparison function.
+
+- DB_MULTIPLE_KEY
+
+ Sorts a DB_MULTIPLE_KEY format DBT .
+
+### Errors
+
+The `DB->sort_multiple()` method may fail and return one of the following non-zero errors:
+
+#### EACCES
+
+An attempt was made to modify a read-only database.
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
+
+DBT and Bulk Operations
diff --git a/docs-src/api/c/dbsql.md b/docs-src/api/c/dbsql.md
new file mode 100644
index 000000000..6acb129c6
--- /dev/null
+++ b/docs-src/api/c/dbsql.md
@@ -0,0 +1,104 @@
+---
+title: "dbsql"
+api-name: "dbsql"
+source: docs/api_reference/C/dbsql.html
+---
+## dbsql
+
+``` c
+dbsql [OPTIONS] FILENAME SQL
+```
+
+`dbsql` is a command line tool that provides access to the Berkeley DB SQL interface.
+
+To build this tool, run the configure script with the `--enable-sql `option when you are building the Berkeley DB SQL interface. For more information on building this tool, see "Building for UNIX/POSIX" .
+
+FILENAME is the name of a Berkeley DB database file created with the SQL interface. A new database is created if the file does not exist. The options are as follows:
+
+- **-init filename**
+
+ Reads/processes named file.
+
+- **-echo**
+
+ Prints commands before execution.
+
+- **-\[no\]header**
+
+ Turns headers on or off.
+
+- **-bail**
+
+ Stops after hitting an error.
+
+- **-interactive**
+
+ Forces interactive I/O.
+
+- **-batch**
+
+ Forces batch I/O.
+
+- **-column**
+
+ Sets output mode to column.
+
+- **-csv**
+
+ Sets output mode to csv.
+
+- **-html**
+
+ Sets output mode to HTML.
+
+- **-line**
+
+ Sets output mode to line.
+
+- **-list**
+
+ Sets output mode to list.
+
+- **-separator 'x'**
+
+ Sets output field separator (\|).
+
+- **-nullvalue 'text'**
+
+ Sets text string for NULL values.
+
+- **-version**
+
+ Shows SQLite version.
+
+The `dbsql` executable provides the same interface as the `sqlite3` executable that is part of SQLite. For more information on how to use dbsql see the SQLite Documentation page.
+
+### Command Line Features Unique to dbsql
+
+This section describes pre-defined query statements that can be executed from the `dbsql` command line. These queries take the form of:
+
+``` c
+ .stat ITEM
+```
+
+where `ITEM` is an optional parameter that indicates what statistics to print. If `ITEM` is not specified, then this command prints statistics for the Berkeley DB environment, followed by statistics for all tables and indexes within the database.
+
+If `ITEM` is the name of a table or index, then this command prints statistics for the table or index using the DB->stat_print() method.
+
+Otherwise, `ITEM` can be one of several keywords. They are:
+
+- `:env:`
+
+ ``` c
+ dbsql> .stat :env:
+ ```
+
+ Causes this command to print statistics for the Berkeley DB environment using the DB_ENV->stat_print() . method.
+
+- `:rep:`
+
+ ``` c
+ dbsql> .stat :rep:
+ ```
+
+ Causes this command to print a summary of replication statistics.
diff --git a/docs-src/api/c/dbstat.md b/docs-src/api/c/dbstat.md
new file mode 100644
index 000000000..af541e281
--- /dev/null
+++ b/docs-src/api/c/dbstat.md
@@ -0,0 +1,337 @@
+---
+title: "DB->stat()"
+api-name: "DB->stat()"
+source: docs/api_reference/C/dbstat.html
+---
+## DB-\>stat()
+
+``` c
+#include
+
+int
+DB->stat(DB *db, DB_TXN *txnid, void *sp, u_int32_t flags);
+```
+
+The `DB->stat()` method creates a statistical structure and copies a pointer to it into user-specified memory locations. Specifically, if **sp** is non-NULL, a pointer to the statistics for the database are copied into the memory location to which it refers.
+
+The `DB->stat()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### txnid
+
+If the operation is part of an application-specified transaction, the **txnid** parameter is a transaction handle returned from DB_ENV->txn_begin() ; if the operation is part of a Berkeley DB Concurrent Data Store group, the **txnid** parameter is a handle returned from DB_ENV->cdsgroup_begin() ; otherwise NULL. If no transaction handle is specified, but the operation occurs in a transactional database, the operation will be implicitly transaction protected.
+
+#### flags
+
+The **flags** parameter must be set to 0 or one of the following values:
+
+- `DB_FAST_STAT`
+
+ Return only the values which do not require traversal of the database. Among other things, this flag makes it possible for applications to request key and record counts without incurring the performance penalty of traversing the entire database.
+
+- `DB_READ_COMMITTED`
+
+ Database items read during a transactional call will have degree 2 isolation. This ensures the stability of the data items read during the stat operation but permits that data to be modified or deleted by other transactions prior to the commit of the specified transaction.
+
+- `DB_READ_UNCOMMITTED`
+
+ Database items read during a transactional call will have degree 1 isolation, including modified but not yet committed data. Silently ignored if the DB_READ_UNCOMMITTED flag was not specified when the underlying database was opened.
+
+### Statistical Structure
+
+Statistical structures are stored in allocated memory. If application-specific allocation routines have been declared (see DB_ENV->set_alloc() for more information), they are used to allocate the memory; otherwise, the standard C library **malloc**(3) is used. The caller is responsible for deallocating the memory. To deallocate the memory, free the memory reference; references inside the returned memory need not be individually freed.
+
+If the DB_FAST_STAT flag has not been specified, the `DB->stat()` method will access some of or all the pages in the database, incurring a severe performance penalty as well as possibly flushing the underlying buffer pool.
+
+In the presence of multiple threads or processes accessing an active database, the information returned by DB-\>stat may be out-of-date.
+
+If the database was not opened read-only and the DB_FAST_STAT flag was not specified, the cached key and record numbers will be updated after the statistical information has been gathered.
+
+The `DB->stat()` method may not be called before the DB->open() method is called.
+
+The `DB->stat()` method returns a non-zero error value on failure and 0 on success.
+
+#### Hash Statistics
+
+In the case of a Hash database, the statistics are stored in a structure of type `DB_HASH_STAT`. The following fields will be filled in:
+
+- `uintmax_t hash_bfree;`
+
+ The number of bytes free on bucket pages.
+
+- `u_int32_t hash_bigpages;`
+
+ The number of big key/data pages.
+
+- `uintmax_t hash_big_bfree;`
+
+ The number of bytes free on big item pages.
+
+- `u_int32_t hash_buckets;`
+
+ The number of hash buckets. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t hash_dup;`
+
+ The number of duplicate pages.
+
+- `uintmax_t hash_dup_free;`
+
+ The number of bytes free on duplicate pages.
+
+- `u_int32_t hash_ffactor;`
+
+ The desired fill factor (number of items per bucket) specified at database-creation time. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t hash_free;`
+
+ The number of pages on the free list.
+
+- `u_int32_t hash_magic;`
+
+ Magic number that identifies the file as a Hash file. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t hash_metaflags;`
+
+ Reports internal flags. For internal use only.
+
+- `u_int32_t hash_ndata;`
+
+ The number of key/data pairs in the database. If DB_FAST_STAT was specified the count will be the last saved value unless it has never been calculated, in which case it will be 0. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t hash_nkeys;`
+
+ The number of unique keys in the database. If DB_FAST_STAT was specified the count will be the last saved value unless it has never been calculated, in which case it will be 0. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t hash_overflows;`
+
+ The number of overflow pages (overflow pages are pages that contain items that did not fit in the main bucket page).
+
+- `uintmax_t hash_ovfl_free;`
+
+ The number of bytes free on overflow pages.
+
+- `u_int32_t hash_pagecnt;`
+
+ The number of pages in the database. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t hash_pagesize;`
+
+ The underlying database page (and bucket) size, in bytes. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t hash_version;`
+
+ The version of the Hash database. Returned if DB_FAST_STAT is set.
+
+#### Heap Statistics
+
+In the case of a Heap database, the statistics are stored in a structure of type `DB_HEAP_STAT`. The following fields will be filled in:
+
+- `u_int32_t heap_magic;`
+
+ Magic number that identifies the file as a Heap file. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t heap_version;`
+
+ The version of the Heap database. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t heap_metaflags;`
+
+ Reports internal flags. For internal use only.
+
+- `u_int32_t heap_nrecs;`
+
+ Reports the number of records in the Heap database. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t heap_pagecnt;`
+
+ The number of pages in the database. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t heap_pagesize;`
+
+ The underlying database page (and bucket) size, in bytes. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t heap_nregions;`
+
+ The number of regions in the Heap database. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t heap_regionsize;`
+
+ The number of pages in a region in the Heap database. Returned if DB_FAST_STAT is set.
+
+#### Btree and Recno Statistics
+
+In the case of a Btree or Recno database, the statistics are stored in a structure of type `DB_BTREE_STAT`. The following fields will be filled in:
+
+- `u_int32_t bt_dup_pg;`
+
+ Number of database duplicate pages.
+
+- `uintmax_t bt_dup_pgfree;`
+
+ Number of bytes free in database duplicate pages.
+
+- `u_int32_t bt_empty_pg;`
+
+ Number of empty database pages.
+
+- `u_int32_t bt_free;`
+
+ Number of pages on the free list.
+
+- `u_int32_t bt_int_pg;`
+
+ Number of database internal pages.
+
+- `uintmax_t bt_int_pgfree;`
+
+ Number of bytes free in database internal pages.
+
+- `u_int32_t bt_leaf_pg;`
+
+ Number of database leaf pages.
+
+- `uintmax_t bt_leaf_pgfree;`
+
+ Number of bytes free in database leaf pages.
+
+- `u_int32_t bt_levels;`
+
+ Number of levels in the database.
+
+- `u_int32_t bt_magic;`
+
+ Magic number that identifies the file as a Btree database. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t bt_metaflags;`
+
+ Reports internal flags. For internal use only.
+
+- `u_int32_t bt_minkey;`
+
+ The minimum keys per page. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t bt_ndata;`
+
+ For the Btree Access Method, the number of key/data pairs in the database. If the DB_FAST_STAT flag is not specified, the count will be exact. Otherwise, the count will be the last saved value unless it has never been calculated, in which case it will be 0.
+
+ For the Recno Access Method, the number of records in the database. If the database was configured with mutable record numbers (see DB_RENUMBER ), the count will be exact. Otherwise, if the DB_FAST_STAT flag is specified the count will be exact but will include deleted and implicitly created records; if the DB_FAST_STAT flag is not specified, the count will be exact and will not include deleted or implicitly created records.
+
+ Returned if DB_FAST_STAT is set.
+
+- `u_int32_t bt_nkeys;`
+
+ For the Btree Access Method, the number of keys in the database. If the DB_FAST_STAT flag is not specified or the database was configured to support record numbers (see DB_RECNUM ), the count will be exact. Otherwise, the count will be the last saved value unless it has never been calculated, in which case it will be 0.
+
+ For the Recno Access Method, the number of records in the database. If the database was configured with mutable record numbers (see DB_RENUMBER ), the count will be exact. Otherwise, if the DB_FAST_STAT flag is specified the count will be exact but will include deleted and implicitly created records; if the DB_FAST_STAT flag is not specified, the count will be exact and will not include deleted or implicitly created records.
+
+ Returned if DB_FAST_STAT is set.
+
+- `u_int32_t bt_over_pg;`
+
+ Number of database overflow pages.
+
+- `uintmax_t bt_over_pgfree;`
+
+ Number of bytes free in database overflow pages.
+
+- `u_int32_t bt_pagecnt;`
+
+ The number of pages in the database. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t bt_pagesize;`
+
+ The underlying database page size, in bytes. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t bt_re_len;`
+
+ The length of fixed-length records. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t bt_re_pad;`
+
+ The padding byte value for fixed-length records. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t bt_version;`
+
+ The version of the Btree database. Returned if DB_FAST_STAT is set.
+
+#### Queue Statistics
+
+In the case of a Queue database, the statistics are stored in a structure of type `DB_QUEUE_STAT`. The following fields will be filled in:
+
+- `u_int32_t qs_cur_recno;`
+
+ Next available record number. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t qs_extentsize;`
+
+ Underlying database extent size, in pages. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t qs_first_recno;`
+
+ First undeleted record in the database. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t qs_magic;`
+
+ Magic number that identifies the file as a Queue file. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t qs_metaflags;`
+
+ Reports internal flags. For internal use only.
+
+- `u_int32_t qs_nkeys;`
+
+ The number of records in the database. If DB_FAST_STAT was specified the count will be the last saved value unless it has never been calculated, in which case it will be 0. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t qs_ndata;`
+
+ The number of records in the database. If DB_FAST_STAT was specified the count will be the last saved value unless it has never been calculated, in which case it will be 0. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t qs_pages;`
+
+ Number of pages in the database.
+
+- `u_int32_t qs_pagesize;`
+
+ Underlying database page size, in bytes. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t qs_pgfree;`
+
+ Number of bytes free in database pages.
+
+- `u_int32_t qs_re_len;`
+
+ The length of the records. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t qs_re_pad;`
+
+ The padding byte value for the records. Returned if DB_FAST_STAT is set.
+
+- `u_int32_t qs_version;`
+
+ The version of the Queue file type. Returned if DB_FAST_STAT is set.
+
+### Errors
+
+The `DB->stat()` method may fail and return one of the following non-zero errors:
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbstat_print.md b/docs-src/api/c/dbstat_print.md
new file mode 100644
index 000000000..9883c679d
--- /dev/null
+++ b/docs-src/api/c/dbstat_print.md
@@ -0,0 +1,43 @@
+---
+title: "DB->stat_print()"
+api-name: "DB->stat_print()"
+source: docs/api_reference/C/dbstat_print.html
+---
+## DB-\>stat_print()
+
+``` c
+#include
+
+int
+DB->stat_print(DB *db, u_int32_t flags);
+```
+
+The `DB->stat_print()` method displays the database statistical information, as described for the DB->stat() method. The information is printed to a specified output channel (see the DB_ENV->set_msgfile() method for more information), or passed to an application callback function (see the DB_ENV->set_msgcall() method for more information).
+
+The `DB->stat_print()` method may not be called before the DB->open() method is called.
+
+The `DB->stat_print()` method returns a non-zero error value on failure and 0 on success.
+
+For Berkeley DB SQL table or index statistics, see Command Line Features Unique to dbsql .
+
+### Parameters
+
+#### flags
+
+The **flags** parameter must be set to 0 or by bitwise inclusively **OR**'ing together one or more of the following values:
+
+- `DB_FAST_STAT`
+
+ Return only the values which do not require traversal of the database. Among other things, this flag makes it possible for applications to request key and record counts without incurring the performance penalty of traversing the entire database.
+
+- `DB_STAT_ALL`
+
+ Display all available information.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbsync.md b/docs-src/api/c/dbsync.md
new file mode 100644
index 000000000..7c0696e78
--- /dev/null
+++ b/docs-src/api/c/dbsync.md
@@ -0,0 +1,51 @@
+---
+title: "DB->sync()"
+api-name: "DB->sync()"
+source: docs/api_reference/C/dbsync.html
+---
+## DB-\>sync()
+
+``` c
+#include
+
+int
+DB->sync(DB *db, u_int32_t flags);
+```
+
+The `DB->sync()` method flushes any cached information to disk. This method operates on the database file level, so if the file contains multiple database handles then this method will flush to disk any information that is cached for any of those handles.
+
+If the database is in memory only, the `DB->sync()` method has no effect and will always succeed.
+
+**It is important to understand that flushing cached information to disk only minimizes the window of opportunity for corrupted data.** Although unlikely, it is possible for database corruption to happen if a system or application crash occurs while writing data to the database. To ensure that database corruption never occurs, applications must either: use transactions and logging with automatic recovery; use logging and application-specific recovery; or edit a copy of the database, and once all applications using the database have successfully called DB->close() , atomically replace the original database with the updated copy.
+
+The `DB->sync()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flags
+
+The **flags** parameter is currently unused, and must be set to 0.
+
+### Errors
+
+The `DB->sync()` method may fail and return one of the following non-zero errors:
+
+#### DB_REP_HANDLE_DEAD
+
+When a client synchronizes with the master, it is possible for committed transactions to be rolled back. This invalidates all the database and cursor handles opened in the replication environment. Once this occurs, an attempt to use such a handle will return `DB_REP_HANDLE_DEAD`. The application will need to discard the handle and open a new one in order to continue processing.
+
+#### DB_REP_LOCKOUT
+
+The operation was blocked by client/master synchronization.
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbt.md b/docs-src/api/c/dbt.md
new file mode 100644
index 000000000..535161fef
--- /dev/null
+++ b/docs-src/api/c/dbt.md
@@ -0,0 +1,127 @@
+---
+title: "Chapter 4. The DBT Handle"
+api-name: "Chapter 4. The DBT Handle"
+source: docs/api_reference/C/dbt.html
+---
+## Chapter 4. The DBT Handle
+
+``` c
+#include
+
+ typedef struct {
+ void *data;
+ u_int32_t size;
+ u_int32_t ulen;
+ u_int32_t dlen;
+ u_int32_t doff;
+ u_int32_t flags;
+ } DBT;
+
+
+```
+
+Storage and retrieval for the DB access methods are based on key/data pairs. Both key and data items are represented by the DBT data structure. (The name DBT is a mnemonic for data base thang, and was used because no one could think of a reasonable name that wasn't already in use somewhere else.) Key and data byte strings may refer to strings of zero length up to strings of essentially unlimited length. See Database limits for more information.
+
+All fields of the DBT structure that are not explicitly set should be initialized to nul bytes before the first time the structure is used. Do this by declaring the structure external or static, or by calling the C library routine **memset**(3).
+
+By default, the **flags** structure element is expected to be set to 0. In this default case, when the application is providing Berkeley DB a key or data item to store into the database, Berkeley DB expects the **data** structure element to point to a byte string of **size** bytes. When returning a key/data item to the application, Berkeley DB will store into the **data** structure element a pointer to a byte string of **size** bytes, and the memory to which the pointer refers will be allocated and managed by Berkeley DB. Note that using the default flags for returned `DBT`s is only compatible with single threaded usage of Berkeley DB.
+
+The elements of the DBT structure are defined as follows:
+
+- **void \*data;**
+
+ A pointer to a byte string.
+
+- **u_int32_t size;**
+
+ The length of **data**, in bytes.
+
+- **u_int32_t ulen;**
+
+ The size of the user's buffer (to which **data** refers), in bytes. This location is not written by the Berkeley DB functions.
+
+ Set the byte size of the user-specified buffer.
+
+ Note that applications can determine the length of a record by setting the `ulen` field to 0 and checking the return value in the **size** field. See the `DB_DBT_USERMEM` flag for more information.
+
+- **u_int32_t dlen;**
+
+ The length of the partial record being read or written by the application, in bytes. See the `DB_DBT_PARTIAL` flag for more information.
+
+- **u_int32_t doff;**
+
+ The offset of the partial record being read or written by the application, in bytes. See the `DB_DBT_PARTIAL` flag for more information.
+
+- **u_int32_t flags;**
+
+ The **flags** parameter must be set to 0 or by bitwise inclusively **OR**'ing together one or more of the following values:
+
+ - `DB_DBT_MALLOC`
+
+ When this flag is set, Berkeley DB will allocate memory for the returned key or data item (using **malloc**(3), or the user-specified malloc function), and return a pointer to it in the **data** field of the key or data `DBT` structure. Because any allocated memory becomes the responsibility of the calling application, the caller must determine whether memory was allocated using the returned value of the **data** field.
+
+ It is an error to specify more than one of `DB_DBT_MALLOC`, `DB_DBT_REALLOC`, and `DB_DBT_USERMEM`.
+
+ - `DB_DBT_REALLOC`
+
+ When this flag is set Berkeley DB will allocate memory for the returned key or data item (using **realloc**(3), or the user-specified realloc function), and return a pointer to it in the **data** field of the key or data DBT structure. Because any allocated memory becomes the responsibility of the calling application, the caller must determine whether memory was allocated using the returned value of the **data** field.
+
+ The difference between `DB_DBT_MALLOC` and `DB_DBT_REALLOC` is that the latter will call **realloc**(3) instead of **malloc**(3), so the allocated memory will be grown as necessary instead of the application doing repeated free/malloc calls.
+
+ It is an error to specify more than one of `DB_DBT_MALLOC`, `DB_DBT_REALLOC`, and `DB_DBT_USERMEM`.
+
+ - `DB_DBT_USERMEM`
+
+ The *data* field of the key or data structure must refer to memory that is at least *ulen* bytes in length. If the length of the requested item is less than or equal to that number of bytes, the item is copied into the memory to which the *data* field refers. Otherwise, the *size* field is set to the length needed for the requested item, and the error `DB_BUFFER_SMALL` is returned.
+
+ It is an error to specify more than one of `DB_DBT_MALLOC`, `DB_DBT_REALLOC`, and `DB_DBT_USERMEM`.
+
+
+
+ - `DB_DBT_PARTIAL`
+
+ Do partial retrieval or storage of an item. If the calling application is doing a get, the **dlen** bytes starting **doff** bytes from the beginning of the retrieved data record are returned as if they comprised the entire record. If any or all of the specified bytes do not exist in the record, the get is successful, and any existing bytes are returned.
+
+ For example, if the data portion of a retrieved record was 100 bytes, and a partial retrieval was done using a DBT having a **dlen** field of 20 and a **doff** field of 85, the get call would succeed, the **data** field would refer to the last 15 bytes of the record, and the **size** field would be set to 15.
+
+ If the calling application is doing a put, the **dlen** bytes starting **doff** bytes from the beginning of the specified key's data record are replaced by the data specified by the **data** and **size** structure elements. If **dlen** is smaller than **size** the record will grow; if **dlen** is larger than **size** the record will shrink. If the specified bytes do not exist, the record will be extended using nul bytes as necessary, and the put call will succeed.
+
+ It is an error to attempt a partial put using the DB->put() method in a database that supports duplicate records. Partial puts in databases supporting duplicate records must be done using a DBcursor->put() method.
+
+ It is an error to attempt a partial put with differing **dlen** and **size** values in Queue or Recno databases with fixed-length records.
+
+ For example, if the data portion of a retrieved record was 100 bytes, and a partial put was done using a DBT having a **dlen** field of 20, a **doff** field of 85, and a **size** field of 30, the resulting record would be 115 bytes in length, where the last 30 bytes would be those specified by the put call.
+
+ This flag is ignored when used with the `pkey` parameter on DB->pget() or DBcursor->pget() .
+
+ - `DB_DBT_APPMALLOC`
+
+ After an application-supplied callback routine passed to either DB->associate() or DB->set_append_recno() is executed, the **data** field of a DBT may refer to memory allocated with **malloc**(3) or **realloc**(3). In that case, the callback sets the `DB_DBT_APPMALLOC` flag in the DBT so that Berkeley DB will call **free**(3) to deallocate the memory when it is no longer required.
+
+ - `DB_DBT_MULTIPLE`
+
+ Set in a secondary key creation callback routine passed to DB->associate() to indicate that multiple secondary keys should be associated with the given primary key/data pair. If set, the **size** field indicates the number of secondary keys and the **data** field refers to an array of that number of DBT structures.
+
+ The `DB_DBT_APPMALLOC` flag may be set on any of the DBT structures to indicate that their **data** field needs to be freed.
+
+ - `DB_DBT_READONLY`
+
+ When this flag is set Berkeley DB will not write into the DBT. This may be set on key values in cases where the key is a static string that cannot be written and Berkeley DB might try to update it because the application has set a user defined comparison function.
+
+## DBT and Bulk Operations
+
+| DBT and Bulk Operations | Description |
+|----|----|
+| DB->sort_multiple() | Sort a set of DBTs |
+| DB_MULTIPLE_INIT | Initialize bulk get retrieval |
+| DB_MULTIPLE_NEXT | Next bulk get retrieval |
+| DB_MULTIPLE_KEY_NEXT | Next bulk get retrieval |
+| DB_MULTIPLE_RECNO_NEXT | Next bulk get retrieval |
+| DB_MULTIPLE_WRITE_INIT | Initialize a bulk buffer to hold key/data pairs |
+| DB_MULTIPLE_WRITE_NEXT | Append a data item to a bulk buffer |
+| DB_MULTIPLE_RESERVE_NEXT | Reserve space for a data item in a bulk buffer |
+| DB_MULTIPLE_KEY_WRITE_NEXT | Append a key / data pair to a bulk buffer |
+| DB_MULTIPLE_KEY_RESERVE_NEXT | Reserve space for a key / data pair in a bulk buffer |
+| DB_MULTIPLE_RECNO_WRITE_INIT | Initialize a bulk buffer to hold recno/data pairs |
+| DB_MULTIPLE_RECNO_WRITE_NEXT | Append a record number / data pair to a bulk buffer |
+| DB_MULTIPLE_RECNO_RESERVE_NEXT | Reserve space for a record number / data pair in a bulk buffer |
diff --git a/docs-src/api/c/dbtruncate.md b/docs-src/api/c/dbtruncate.md
new file mode 100644
index 000000000..2244ff30a
--- /dev/null
+++ b/docs-src/api/c/dbtruncate.md
@@ -0,0 +1,62 @@
+---
+title: "DB->truncate()"
+api-name: "DB->truncate()"
+source: docs/api_reference/C/dbtruncate.html
+---
+## DB-\>truncate()
+
+``` c
+#include
+
+int
+DB->truncate(DB *db,
+ DB_TXN *txnid, u_int32_t *countp, u_int32_t flags);
+```
+
+The `DB->truncate()` method empties the database, discarding all records it contains. The number of records discarded from the database is returned in **countp**.
+
+When called on a database configured with secondary indices using the DB->associate() method, the `DB->truncate()` method truncates the primary database and all secondary indices. A count of the records discarded from the primary database is returned.
+
+It is an error to call the `DB->truncate()` method on a database with open cursors.
+
+The `DB->truncate()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### txnid
+
+If the operation is part of an application-specified transaction, the **txnid** parameter is a transaction handle returned from DB_ENV->txn_begin() ; if the operation is part of a Berkeley DB Concurrent Data Store group, the **txnid** parameter is a handle returned from DB_ENV->cdsgroup_begin() ; otherwise NULL. If no transaction handle is specified, but the operation occurs in a transactional database, the operation will be implicitly transaction protected.
+
+#### countp
+
+The **countp** parameter references memory into which the number of records discarded from the database is copied.
+
+#### flags
+
+The **flags** parameter is currently unused, and must be set to 0.
+
+### Errors
+
+The `DB->truncate()` method may fail and return one of the following non-zero errors:
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### EINVAL
+
+If there are open cursors in the database; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbupgrade.md b/docs-src/api/c/dbupgrade.md
new file mode 100644
index 000000000..5f40a8616
--- /dev/null
+++ b/docs-src/api/c/dbupgrade.md
@@ -0,0 +1,63 @@
+---
+title: "DB->upgrade()"
+api-name: "DB->upgrade()"
+source: docs/api_reference/C/dbupgrade.html
+---
+## DB-\>upgrade()
+
+``` c
+#include
+
+int
+DB->upgrade(DB *db, const char *file, u_int32_t flags);
+```
+
+The `DB->upgrade()` method upgrades all of the databases included in the file **file**, if necessary. If no upgrade is necessary, `DB->upgrade()` always returns success.
+
+**Database upgrades are done in place and are destructive. For example, if pages need to be allocated and no disk space is available, the database may be left corrupted. Backups should be made before databases are upgraded. See Upgrading databases for more information.**
+
+Unlike all other database operations, `DB->upgrade()` may only be done on a system with the same byte-order as the database.
+
+The `DB->upgrade()` method returns a non-zero error value on failure and 0 on success.
+
+The `DB->upgrade()` method is the underlying method used by the db_upgrade utility. See the db_upgrade utility source code for an example of using `DB->upgrade()` in a IEEE/ANSI Std 1003.1 (POSIX) environment.
+
+### Parameters
+
+#### file
+
+The **file** parameter is the physical file containing the databases to be upgraded.
+
+#### flags
+
+The **flags** parameter must be set to 0 or the following value:
+
+- `DB_DUPSORT`
+
+ **This flag is only meaningful when upgrading databases from releases before the Berkeley DB 3.1 release.**
+
+ As part of the upgrade from the Berkeley DB 3.0 release to the 3.1 release, the on-disk format of duplicate data items changed. To correctly upgrade the format requires applications to specify whether duplicate data items in the database are sorted or not. Specifying the DB_DUPSORT flag informs `DB->upgrade()` that the duplicates are sorted; otherwise they are assumed to be unsorted. Incorrectly specifying the value of this flag may lead to database corruption.
+
+ Further, because the `DB->upgrade()` method upgrades a physical file (including all the databases it contains), it is not possible to use `DB->upgrade()` to upgrade files in which some of the databases it includes have sorted duplicate data items, and some of the databases it includes have unsorted duplicate data items. If the file does not have more than a single database, if the databases do not support duplicate data items, or if all of the databases that support duplicate data items support the same style of duplicates (either sorted or unsorted), `DB->upgrade()` will work correctly as long as the DB_DUPSORT flag is correctly specified. Otherwise, the file cannot be upgraded using `DB->upgrade;()` it must be upgraded manually by dumping and reloading the databases.
+
+### Environment Variables
+
+If the database was opened within a database environment, the environment variable `DB_HOME` may be used as the path of the database environment home.
+
+`DB->upgrade()` is affected by any database directory specified using the DB_ENV->set_data_dir() method, or by setting the "set_data_dir" string in the environment's DB_CONFIG file.
+
+### Errors
+
+The `DB->upgrade()` method may fail and return one of the following non-zero errors:
+
+#### DB_OLD_VERSION
+
+The database cannot be upgraded by this version of the Berkeley DB software.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/dbverify.md b/docs-src/api/c/dbverify.md
new file mode 100644
index 000000000..89c68f1f6
--- /dev/null
+++ b/docs-src/api/c/dbverify.md
@@ -0,0 +1,104 @@
+---
+title: "DB->verify()"
+api-name: "DB->verify()"
+source: docs/api_reference/C/dbverify.html
+---
+## DB-\>verify()
+
+``` c
+#include
+
+int
+DB->verify(DB *db, const char *file,
+ const char *database, FILE *outfile, u_int32_t flags);
+```
+
+The `DB->verify()` method verifies the integrity of all databases in the file specified by the **file** parameter, and optionally outputs the databases' key/data pairs to the file stream specified by the **outfile** parameter.
+
+**The `DB->verify()` method does not perform any locking, even in Berkeley DB environments that are configured with a locking subsystem. As such, it should only be used on files that are not being modified by another thread of control.**
+
+The `DB->verify()` method may not be called after the DB->open() method is called.
+
+The DB handle may not be accessed again after `DB->verify()` is called, regardless of its return.
+
+The `DB->verify()` method is the underlying method used by the db_verify utility. See the db_verify utility source code for an example of using `DB->verify()` in a IEEE/ANSI Std 1003.1 (POSIX) environment.
+
+The `DB->verify()` method will return DB_VERIFY_BAD if a database is corrupted. When the DB_SALVAGE flag is specified, the DB_VERIFY_BAD return means that all key/data pairs in the file may not have been successfully output. Unless otherwise specified, the `DB->verify()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### file
+
+The **file** parameter is the physical file in which the databases to be verified are found.
+
+#### database
+
+The **database** parameter is the database in **file** on which the database checks for btree and duplicate sort order and for hashing are to be performed. See the DB_ORDERCHKONLY flag for more information.
+
+The database parameter must be set to NULL except when the DB_ORDERCHKONLY flag is set.
+
+#### outfile
+
+The **outfile** parameter is an optional file stream to which the databases' key/data pairs are written.
+
+#### flags
+
+The **flags** parameter must be set to 0 or the following value:
+
+- `DB_SALVAGE`
+
+ Write the key/data pairs from all databases in the file to the file stream named in the **outfile** parameter. Key values are written for Btree, Hash and Queue databases, but not for Recno databases.
+
+ The output format is the same as that specified for the db_dump utility, and can be used as input for the db_load utility.
+
+ Because the key/data pairs are output in page order as opposed to the sort order used by db_dump , using `DB->verify()` to dump key/data pairs normally produces less than optimal loads for Btree databases.
+
+In addition, the following flags may be set by bitwise inclusively **OR**'ing them into the **flags** parameter:
+
+- `DB_AGGRESSIVE`
+
+ Output **all** the key/data pairs in the file that can be found. By default, `DB->verify()` does not assume corruption. For example, if a key/data pair on a page is marked as deleted, it is not then written to the output file. When DB_AGGRESSIVE is specified, corruption is assumed, and any key/data pair that can be found is written. In this case, key/data pairs that are corrupted or have been deleted may appear in the output (even if the file being salvaged is in no way corrupt), and the output will almost certainly require editing before being loaded into a database.
+
+- `DB_PRINTABLE`
+
+ When using the DB_SALVAGE flag, if characters in either the key or data items are printing characters (as defined by **isprint**(3)), use printing characters to represent them. This flag permits users to use standard text editors and tools to modify the contents of databases or selectively remove data from salvager output.
+
+ Note: different systems may have different notions about what characters are considered *printing characters* , and databases dumped in this manner may be less portable to external systems.
+
+- `DB_NOORDERCHK`
+
+ Skip the database checks for btree and duplicate sort order and for hashing.
+
+ The `DB->verify()` method normally verifies that btree keys and duplicate items are correctly sorted, and hash keys are correctly hashed. If the file being verified contains multiple databases using differing sorting or hashing algorithms, some of them must necessarily fail database verification because only one sort order or hash function can be specified before `DB->verify()` is called. To verify files with multiple databases having differing sorting orders or hashing functions, first perform verification of the file as a whole by using the DB_NOORDERCHK flag, and then individually verify the sort order and hashing function for each database in the file using the DB_ORDERCHKONLY flag.
+
+- `DB_ORDERCHKONLY`
+
+ Perform the database checks for btree and duplicate sort order and for hashing, skipped by DB_NOORDERCHK.
+
+ When this flag is specified, a **database** parameter should also be specified, indicating the database in the physical file which is to be checked. This flag is only safe to use on databases that have already successfully been verified using `DB->verify()` with the DB_NOORDERCHK flag set.
+
+### Environment Variables
+
+If the database was opened within a database environment, the environment variable `DB_HOME` may be used as the path of the database environment home.
+
+`DB->verify()` is affected by any database directory specified using the DB_ENV->set_data_dir() method, or by setting the "set_data_dir" string in the environment's DB_CONFIG file.
+
+### Errors
+
+The `DB->verify()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB->open() was called; or if an invalid flag value or parameter was specified.
+
+#### ENOENT
+
+The file or directory does not exist.
+
+### Class
+
+DB
+
+### See Also
+
+Database and Related Methods
diff --git a/docs-src/api/c/env.md b/docs-src/api/c/env.md
new file mode 100644
index 000000000..4ee1b6876
--- /dev/null
+++ b/docs-src/api/c/env.md
@@ -0,0 +1,228 @@
+---
+title: "Chapter 5. The DB_ENV Handle"
+api-name: "Chapter 5. The DB_ENV Handle"
+source: docs/api_reference/C/env.html
+---
+## Chapter 5. The DB_ENV Handle
+
+The `DB_ENV` object is the handle for a Berkeley DB environment — a collection including support for some or all of caching, locking, logging and transaction subsystems, as well as databases and log files. Methods of the `DB_ENV` handle are used to configure the environment as well as to operate on subsystems and databases in the environment.
+
+`DB_ENV` handles are created using the db_env_create method, and are opened using the DB_ENV->open() method.
+
+When you are done using your environment, close it using the DB_ENV->close() method. Before closing your environment, make sure all open database handles are closed first. See the DB->close() method for more information.
+
+## Database Environments and Related Methods
+
+
+
+
+Database Environment Operations
+Description
+
+
+
+
+DB_ENV->backup()
+Hot back up an entire environment
+
+
+DB_ENV->close()
+Close an environment
+
+
+db_env_create
+Create an environment handle
+
+
+DB_ENV->dbbackup()
+Hot back up a single environment file
+
+
+DB_ENV->dbremove()
+Remove a database
+
+
+DB_ENV->dbrename()
+Rename a database
+
+
+DB_ENV->err()
+Error message
+
+
+DB_ENV->failchk()
+Check for thread failure
+
+
+DB_ENV->fileid_reset()
+Reset database file IDs
+
+
+db_full_version
+Return full version information
+
+
+DB->get_env()
+Return the DB's underlying DB_ENV handle
+
+
+DB_ENV->get_home()
+Return environment's home directory
+
+
+DB_ENV->get_open_flags()
+Return flags with which the environment was opened
+
+
+DB_ENV->log_verify()
+Verify log files of an environment.
+
+
+DB_ENV->lsn_reset()
+Reset database file LSNs
+
+
+DB_ENV->open()
+Open an environment
+
+
+DB_ENV->remove()
+Remove an environment
+
+
+DB_ENV->stat_print()
+Environment statistics
+
+
+db_strerror
+Error strings
+
+
+db_version
+Return version information
+
+
+Environment Configuration
+
+
+DB_ENV->add_data_dir()
+Add an environment data directory
+
+
+DB_ENV->set_alloc()
+Set local space allocation functions
+
+
+DB_ENV->set_app_dispatch()
+Configure application recovery callback
+
+
+DB_ENV->set_backup_callbacks() , DB_ENV->get_backup_callbacks()
+Set/get callbacks used for environment hot backups
+
+
+DB_ENV->set_backup_config() , DB_ENV->get_backup_config()
+Set/get environment hot backup configuration options
+
+
+DB_ENV->set_data_dir() , DB_ENV->get_data_dirs()
+Set/get the environment data directory
+
+
+DB_ENV->set_data_len() , DB_ENV->get_data_len()
+Set/get the command line utility byte limit
+
+
+DB_ENV->set_create_dir() , DB_ENV->get_create_dir()
+Add an environment data directory
+
+
+DB_ENV->set_encrypt() , DB_ENV->get_encrypt_flags()
+Set/get the environment cryptographic key
+
+
+DB_ENV->set_event_notify()
+Set event notification callback
+
+
+DB_ENV->set_errcall()
+Set error message callbacks
+
+
+DB_ENV->set_errfile() , DB_ENV->get_errfile()
+Set/get error message FILE
+
+
+DB_ENV->set_errpfx() , DB_ENV->get_errpfx()
+Set/get error message prefix
+
+
+DB_ENV->set_feedback()
+Set feedback callback
+
+
+DB_ENV->set_flags() , DB_ENV->get_flags()
+Environment configuration
+
+
+DB_ENV->set_intermediate_dir_mode() , DB_ENV->get_intermediate_dir_mode()
+Set/get intermediate directory creation mode
+
+
+DB_ENV->set_isalive()
+Set thread is-alive callback
+
+
+DB_ENV->set_memory_init() , DB_ENV->get_memory_init()
+Set/get initial memory allocation
+
+
+DB_ENV->set_memory_max() , DB_ENV->get_memory_max()
+Set/get maximum memory allocation
+
+
+DB_ENV->set_metadata_dir() , DB_ENV->get_metadata_dir()
+Set/get the directory containing environment metadata
+
+
+DB_ENV->set_msgcall()
+Set informational message callback
+
+
+DB_ENV->set_msgfile() , DB_ENV->get_msgfile()
+Set/get informational message FILE
+
+
+DB_ENV->set_shm_key() , DB_ENV->get_shm_key()
+Set/get system memory shared segment ID
+
+
+DB_ENV->set_thread_count() , DB_ENV->get_thread_count()
+Set/get approximate thread count
+
+
+DB_ENV->set_thread_id()
+Set thread of control ID function
+
+
+DB_ENV->set_thread_id_string()
+Set thread of control ID format function
+
+
+DB_ENV->set_timeout() , DB_ENV->get_timeout()
+Set/get lock and transaction timeout
+
+
+DB_ENV->set_tmp_dir() , DB_ENV->get_tmp_dir()
+Set/get the environment temporary file directory
+
+
+DB_ENV->set_verbose() , DB_ENV->get_verbose()
+Set/get verbose messages
+
+
+DB_ENV->set_cachesize() , DB_ENV->get_cachesize()
+Set/get the environment cache size
+
+
+
diff --git a/docs-src/api/c/envadd_data_dir.md b/docs-src/api/c/envadd_data_dir.md
new file mode 100644
index 000000000..e9e02673b
--- /dev/null
+++ b/docs-src/api/c/envadd_data_dir.md
@@ -0,0 +1,49 @@
+---
+title: "DB_ENV->add_data_dir()"
+api-name: "DB_ENV->add_data_dir()"
+source: docs/api_reference/C/envadd_data_dir.html
+---
+## DB_ENV-\>add_data_dir()
+
+``` c
+#include
+
+int
+DB_ENV->add_data_dir(DB_ENV *dbenv, const char *dir);
+```
+
+Add the path of a directory to be used as the location of the access method database files. Paths specified to the DB->open() function will be searched relative to this path. Paths set using this method are additive, and specifying more than one will result in each specified directory being searched for database files.
+
+If no database directories are specified, database files must be named either by absolute paths or relative to the environment home directory. See Berkeley DB File Naming for more information.
+
+The database environment's data directories may also be configured using the environment's DB_CONFIG file. The syntax of the entry in that file is a single line with the string "add_data_dir", one or more whitespace characters, and the directory name. Note that if you use this method for your application, and you also want to use the db_recover or db_archive utilities, then you should create a DB_CONFIG file and set the "add_data_dir" parameter in it.
+
+The `DB_ENV->add_data_dir()` method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.
+
+The `DB_ENV->add_data_dir()` method may not be called after the DB_ENV->open() method is called. If the database environment already exists when DB_ENV->open() is called, the information specified to `DB_ENV->add_data_dir()` must be consistent with the existing environment or corruption can occur.
+
+The `DB_ENV->add_data_dir()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dir
+
+The **dir** parameter is a directory to be used as a location for database files. This directory must currently exist at environment open time.
+
+When using a Unicode build on Windows (the default), this argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters.
+
+### Errors
+
+The `DB_ENV->add_data_dir()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB_ENV->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envbackup.md b/docs-src/api/c/envbackup.md
new file mode 100644
index 000000000..337bff7c8
--- /dev/null
+++ b/docs-src/api/c/envbackup.md
@@ -0,0 +1,95 @@
+---
+title: "DB_ENV->backup()"
+api-name: "DB_ENV->backup()"
+source: docs/api_reference/C/envbackup.html
+---
+## DB_ENV-\>backup()
+
+``` c
+#include
+
+int
+DB_ENV->backup(DB_ENV *dbenv, const char *target, u_int32_t flags);
+```
+
+The `DB_ENV->backup()` method performs a hot backup of the open environment. All files used by the environment are backed up, so long as the normal rules for file placement are followed. For information on how files are normally placed relative to the environment directory, see Berkeley DB File Naming in the *Berkeley DB Programmer's Reference Guide*.
+
+By default, data directories and the log directory specified relative to the home directory will be recreated relative to the target directory. If absolute path names are used, then specify `DB_BACKUP_SINGLE_DIR` to the `flags` parameter.
+
+This method provides the same functionality as the db_hotbackup utility. However, this method does not perform the housekeeping actions performed by the `db_hotbackup` utility. In particular, you may want to run a checkpoint before calling this method. To run a checkpoint, use the DB_ENV->txn_checkpoint() method. For more information on checkpoints, see Checkpoints in the *Berkeley DB Programmer's Reference Guide*.
+
+To back up a single database file contained within the environment, use the DB_ENV->dbbackup() method.
+
+This method's default behavior can be changed by setting backup callbacks. See DB_ENV->set_backup_callbacks() for more information. Additional tuning parameters can also be set using the DB_ENV->set_backup_config() method.
+
+The `DB_ENV->backup()` method may only be called after the environment handle has been opened.
+
+The `DB_ENV->backup()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### target
+
+Identifies the directory in which the back up will be placed. Any subdirectories required to contain the backup must be placed relative to this directory. Note that if the backup callbacks are set, then the value specified to this parameter is passed on to the `open_func()` callback. If this parameter is NULL, then the target must be specified to the `open_func()` callback.
+
+This directory, and any required subdirectories, will be created for you if you specify the `DB_CREATE` flag on the call to this method. Otherwise, if the target does not exist, this method exits with an `ENOENT` error return.
+
+#### flags
+
+The **flags** parameter must be set to 0 or by bitwise inclusively **OR**'ing together one or more of the values:
+
+- `DB_BACKUP_CLEAN`
+
+ Before performing the backup, first remove all files from the target backup directory tree.
+
+- `DB_BACKUP_FILES`
+
+ Back up all ordinary files that might exist in the environment, and the environment's subdirectories.
+
+- `DB_BACKUP_NO_LOGS`
+
+ Back up only the `*.db` files. Do not backup the log files.
+
+- `DB_BACKUP_SINGLE_DIR`
+
+ Regardless of the directory structure used by the source environment, place all back up files in the single directory identified by the `target` parameter. Use this option if absolute path names to your environment directory and the files within that directory are required by your application.
+
+- `DB_BACKUP_UPDATE`
+
+ Perform an incremental back up, instead of a full back up. When this option is specified, only log files are copied to the target directory.
+
+- `DB_CREATE`
+
+ If the target directory does not exist, create it and any required subdirectories.
+
+- `DB_EXCL`
+
+ Return an `EEXIST` error if a target backup file already exists.
+
+- `DB_VERB_BACKUP`
+
+ Run in verbose mode, listing operations as they are completed.
+
+### Errors
+
+The `DB_ENV->backup()` method may fail and return one of the following non-zero errors:
+
+#### EEXIST
+
+`DB_EXCL` was specified for the `flags` parameter, and an existing target file was discovered when attempting to back up a source file.
+
+#### ENOENT
+
+The target directory does not exist and `DB_CREATE` was not specified for the `flags` parameter.
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envcdsgroup_begin.md b/docs-src/api/c/envcdsgroup_begin.md
new file mode 100644
index 000000000..b1387b4da
--- /dev/null
+++ b/docs-src/api/c/envcdsgroup_begin.md
@@ -0,0 +1,37 @@
+---
+title: "DB_ENV->cdsgroup_begin()"
+api-name: "DB_ENV->cdsgroup_begin()"
+source: docs/api_reference/C/envcdsgroup_begin.html
+---
+## DB_ENV-\>cdsgroup_begin()
+
+``` c
+#include
+
+int
+DB_ENV->cdsgroup_begin(DB_ENV *dbenv, DB_TXN **tid);
+```
+
+The `DB_ENV->cdsgroup_begin()` method allocates a locker ID in an environment configured for Berkeley DB Concurrent Data Store applications. It copies a pointer to a DB_TXN that uniquely identifies the locker ID into the memory to which **tid** refers. Calling the DB_TXN->commit() method will discard the allocated locker ID.
+
+See Berkeley DB Concurrent Data Store applications for more information about when this is required.
+
+The `DB_ENV->cdsgroup_begin()` method may be called at any time during the life of the application.
+
+The `DB_ENV->cdsgroup_begin()` method returns a non-zero error value on failure and 0 on success.
+
+### Errors
+
+The `DB_ENV->cdsgroup_begin()` method may fail and return one of the following non-zero errors:
+
+#### ENOMEM
+
+The maximum number of lockers has been reached.
+
+### Class
+
+DB_ENV , DB_TXN
+
+### See Also
+
+Transaction Subsystem and Related Methods
diff --git a/docs-src/api/c/envclose.md b/docs-src/api/c/envclose.md
new file mode 100644
index 000000000..8b573b043
--- /dev/null
+++ b/docs-src/api/c/envclose.md
@@ -0,0 +1,55 @@
+---
+title: "DB_ENV->close()"
+api-name: "DB_ENV->close()"
+source: docs/api_reference/C/envclose.html
+---
+## DB_ENV-\>close()
+
+``` c
+#include
+
+int
+DB_ENV->close(DB_ENV *dbenv, u_int32_t flags);
+```
+
+The `DB_ENV->close()` method closes the Berkeley DB environment, freeing any allocated resources and closing all database handles opened with this environment handle, as well as closing any underlying subsystems.
+
+When you call the `DB_ENV->close()` method, all open DB handles and DBcursor handles are closed automatically by this function. And, when you close a database handle, all cursors opened with it are closed automatically.
+
+In multiple threads of control, each thread of control opens a database environment and the database handles within it. When you close each database handle using the `DB_ENV->close()` method, by default, the database is not synchronized and is similar to calling the `DB->close(DB_NOSYNC)` method. This is to avoid unncessary database synchronization when there are multiple environment handles open. To ensure all open database handles are synchronized when you close the last environment handle, set the flag parameter value of the `DB_ENV->close()` method to DB_FORCESYNC. This is similar to calling the `DB->close(0)` method to close each database handle.
+
+If a database close operation fails, the method returns a non-zero error value for the first instance of such an error, and continues to close the rest of the database and environment handles.
+
+The DB_ENV handle should not be closed while any other handle that refers to it is not yet closed; for example, database environment handles must not be closed while transactions in the environment have not yet been committed or aborted. Specifically, this includes the DB_TXN , DB_LOGC and DB_MPOOLFILE handles.
+
+Where the environment was initialized with the DB_INIT_LOCK flag, calling `DB_ENV->close()` does not release any locks still held by the closing process, providing functionality for long-lived locks. Processes that want to have all their locks released can do so by issuing the appropriate DB_ENV->lock_vec() call.
+
+Where the environment was initialized with the DB_INIT_MPOOL flag, calling `DB_ENV->close()` implies calls to DB_MPOOLFILE->close() for any remaining open files in the memory pool that were returned to this process by calls to DB_MPOOLFILE->open() . It does not imply a call to DB_MPOOLFILE->sync() for those files.
+
+Where the environment was initialized with the DB_INIT_TXN flag, calling `DB_ENV->close()` aborts any unresolved transactions. Applications should not depend on this behavior for transactions involving Berkeley DB databases; all such transactions should be explicitly resolved. The problem with depending on this semantic is that aborting an unresolved transaction involving database operations requires a database handle. Because the database handles should have been closed before calling `DB_ENV->close()`, it will not be possible to abort the transaction, and recovery will have to be run on the Berkeley DB environment before further operations are done.
+
+Where log cursors were created using the DB_ENV->log_cursor() method, calling `DB_ENV->close()` does not imply closing those cursors.
+
+In multithreaded applications, only a single thread may call the `DB_ENV->close()` method.
+
+After `DB_ENV->close()` has been called, regardless of its return, the Berkeley DB environment handle may not be accessed again.
+
+The `DB_ENV->close()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flags
+
+The **flags** parameter must be set to 0 or be set to the following value:
+
+- `DB_FORCESYNC`
+
+ When closing each database handle internally, synchronize the database. If this flag is not specified, the database handle is closed without synchronizing the database.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envcreate.md b/docs-src/api/c/envcreate.md
new file mode 100644
index 000000000..b76b09a2a
--- /dev/null
+++ b/docs-src/api/c/envcreate.md
@@ -0,0 +1,33 @@
+---
+title: "db_env_create"
+api-name: "db_env_create"
+source: docs/api_reference/C/envcreate.html
+---
+## db_env_create
+
+``` c
+#include
+
+int
+db_env_create(DB_ENV **dbenvp, u_int32_t flags);
+```
+
+The `db_env_create()` function creates a `DB_ENV` structure that is the handle for a Berkeley DB environment. This function allocates memory for the structure, returning a pointer to the structure in the memory to which **dbenvp** refers. To release the allocated memory and discard the handle, call the DB_ENV->close() or DB_ENV->remove() methods.
+
+`DB_ENV` handles are free-threaded if the DB_THREAD flag is specified to the DB_ENV->open() method when the environment is opened. The `DB_ENV` handle should not be closed while any other handle remains open that is using it as a reference (for example, DB or DB_TXN ). Once either the DB_ENV->close() or DB_ENV->remove() methods are called, the handle may not be accessed again, regardless of the method's return.
+
+Before the handle may be used, you must open it using the DB_ENV->open() method.
+
+The DB_ENV handle contains a special field, `app_private`, which is declared as type `void *`. This field is provided for the use of the application program. It is initialized to NULL and is not further used by Berkeley DB in any way.
+
+The `db_env_create()` method returns a non-zero error value on failure and 0 on success.
+
+The **flags** parameter must be set to 0.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envdbbackup.md b/docs-src/api/c/envdbbackup.md
new file mode 100644
index 000000000..26ba9121e
--- /dev/null
+++ b/docs-src/api/c/envdbbackup.md
@@ -0,0 +1,68 @@
+---
+title: "DB_ENV->dbbackup()"
+api-name: "DB_ENV->dbbackup()"
+source: docs/api_reference/C/envdbbackup.html
+---
+## DB_ENV-\>dbbackup()
+
+``` c
+#include
+
+int
+DB_ENV->dbbackup(DB_ENV *dbenv, const char *dbfile, const char *target,
+ u_int32_t flags);
+```
+
+The `DB_ENV->dbbackup()` method performs a hot backup of a single database file contained within the environment.
+
+To back up an entire environment, use the DB_ENV->backup() method.
+
+This method's default behavior can be changed by setting backup callbacks. See DB_ENV->set_backup_callbacks() for more information. Additional tuning parameters can also be set using the DB_ENV->set_backup_config() method.
+
+The `DB_ENV->dbbackup()` method may only be called after the environment handle has been opened.
+
+The `DB_ENV->dbbackup()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dbfile
+
+Identifies the database file that you want to back up.
+
+#### target
+
+Identifies the directory in which the back up will be placed. This target must exist; otherwise this method exits with an `ENOENT` error return.
+
+Note that if the backup callbacks are set, then the value specified to this parameter is passed on to the `open_func()` callback. If this parameter is NULL, then the target must be specified directly to the `open_func()` callback.
+
+#### flags
+
+The **flags** parameter must be set to 0 or the following value:
+
+- `DB_EXCL`
+
+ Return an `EEXIST` error if a target backup file already exists.
+
+### Errors
+
+The `DB_ENV->dbbackup()` method may fail and return one of the following non-zero errors:
+
+#### EEXIST
+
+`DB_EXCL` was specified for the `flags` parameter, and an existing target file was discovered when attempting to back up a source file.
+
+#### ENOENT
+
+The target directory does not exist.
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envdbremove.md b/docs-src/api/c/envdbremove.md
new file mode 100644
index 000000000..951359d41
--- /dev/null
+++ b/docs-src/api/c/envdbremove.md
@@ -0,0 +1,78 @@
+---
+title: "DB_ENV->dbremove()"
+api-name: "DB_ENV->dbremove()"
+source: docs/api_reference/C/envdbremove.html
+---
+## DB_ENV-\>dbremove()
+
+``` c
+#include
+
+int
+DB_ENV->dbremove(DB_ENV *dbenv, DB_TXN *txnid,
+ const char *file, const char *database, u_int32_t flags);
+```
+
+The `DB_ENV->dbremove()` method removes the database specified by the **file** and **database** parameters. If no **database** is specified, the underlying file represented by **file** is removed, incidentally removing all of the databases it contained.
+
+Applications should never remove databases with open DB handles, or in the case of removing a file, when any database in the file has an open handle.
+
+The `DB_ENV->dbremove()` method returns a non-zero error value on failure and 0 on success.
+
+`DB_ENV->dbremove()` is affected by any database directory specified using the DB_ENV->set_data_dir() method, or by setting the `set_data_dir` string in the environment's DB_CONFIG file.
+
+### Parameters
+
+#### txnid
+
+If the operation is part of an application-specified transaction, the **txnid** parameter is a transaction handle returned from DB_ENV->txn_begin() ; if the operation is part of a Berkeley DB Concurrent Data Store group, the **txnid** parameter is a handle returned from DB_ENV->cdsgroup_begin() ; otherwise NULL. If no transaction handle is specified, but the `DB_AUTO_COMMIT` flag is specified to either this method or the environment handle, the operation will be implicitly transaction protected.
+
+#### file
+
+The **file** parameter is the physical file which contains the database(s) to be removed.
+
+#### database
+
+The **database** parameter is the database to be removed.
+
+#### flags
+
+The **flags** parameter must be set to 0 or the following value:
+
+- `DB_AUTO_COMMIT`
+
+ Enclose the `DB_ENV->dbremove()` call within a transaction. If the call succeeds, changes made by the operation will be recoverable. If the call fails, the operation will have made no changes.
+
+### Environment Variables
+
+The environment variable `DB_HOME` may be used as the path of the database environment home.
+
+### Errors
+
+The `DB_ENV->dbremove()` method may fail and return one of the following non-zero errors:
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### EINVAL
+
+If the method was called before DB_ENV->open() was called; or if an invalid flag value or parameter was specified.
+
+#### ENOENT
+
+The file or directory does not exist.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envdbrename.md b/docs-src/api/c/envdbrename.md
new file mode 100644
index 000000000..7b8c49ade
--- /dev/null
+++ b/docs-src/api/c/envdbrename.md
@@ -0,0 +1,84 @@
+---
+title: "DB_ENV->dbrename()"
+api-name: "DB_ENV->dbrename()"
+source: docs/api_reference/C/envdbrename.html
+---
+## DB_ENV-\>dbrename()
+
+``` c
+#include
+
+int
+DB_ENV->dbrename(DB_ENV *dbenv, DB_TXN *txnid, const char *file,
+ const char *database, const char *newname, u_int32_t flags);
+```
+
+The `DB_ENV->dbrename()` method renames the database specified by the **file** and **database** parameters to **newname**. If no **database** is specified, the underlying file represented by **file** is renamed using the value supplied to **newname**, incidentally renaming all of the databases it contained.
+
+Applications should not rename databases that are currently in use. If an underlying file is being renamed and logging is currently enabled in the database environment, no database in the file may be open when the `DB_ENV->dbrename()` method is called.
+
+The `DB_ENV->dbrename()` method returns a non-zero error value on failure and 0 on success.
+
+`DB_ENV->dbrename()` is affected by any database directory specified using the DB_ENV->set_data_dir() method, or by setting the `set_data_dir` string in the environment's DB_CONFIG file.
+
+### Parameters
+
+#### txnid
+
+If the operation is part of an application-specified transaction, the **txnid** parameter is a transaction handle returned from DB_ENV->txn_begin() ; if the operation is part of a Berkeley DB Concurrent Data Store group, the **txnid** parameter is a handle returned from DB_ENV->cdsgroup_begin() ; otherwise NULL. If no transaction handle is specified, but the `DB_AUTO_COMMIT` flag is specified to either this method or the environment handle, the operation will be implicitly transaction protected.
+
+#### file
+
+The **file** parameter is the physical file which contains the database(s) to be renamed.
+
+When using a Unicode build on Windows (the default), the **file** argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters.
+
+#### database
+
+The **database** parameter is the database to be renamed.
+
+#### newname
+
+The **newname** parameter is the new name of the database or file.
+
+#### flags
+
+The **flags** parameter must be set to 0 or the following value:
+
+- `DB_AUTO_COMMIT`
+
+ Enclose the `DB_ENV->dbrename()` call within a transaction. If the call succeeds, changes made by the operation will be recoverable. If the call fails, the operation will have made no changes.
+
+### Environment Variables
+
+The environment variable `DB_HOME` may be used as the path of the database environment home.
+
+### Errors
+
+The `DB_ENV->dbrename()` method may fail and return one of the following non-zero errors:
+
+#### DB_LOCK_DEADLOCK
+
+A transactional database environment operation was selected to resolve a deadlock.
+
+#### DB_LOCK_NOTGRANTED
+
+A Berkeley DB Concurrent Data Store database environment configured for lock timeouts was unable to grant a lock in the allowed time.
+
+You attempted to open a database handle that is configured for no waiting exclusive locking, but the exclusive lock could not be immediately obtained. See DB->set_lk_exclusive() for more information.
+
+#### EINVAL
+
+If the method was called before DB_ENV->open() was called; or if an invalid flag value or parameter was specified.
+
+#### ENOENT
+
+The file or directory does not exist.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/enverr.md b/docs-src/api/c/enverr.md
new file mode 100644
index 000000000..64ad9f5da
--- /dev/null
+++ b/docs-src/api/c/enverr.md
@@ -0,0 +1,62 @@
+---
+title: "DB_ENV->err()"
+api-name: "DB_ENV->err()"
+source: docs/api_reference/C/enverr.html
+---
+## DB_ENV-\>err()
+
+``` c
+#include
+
+void
+DB_ENV->err(DB_ENV *dbenv, int error, const char *fmt, ...);
+
+void
+DB_ENV->errx(DB_ENV *dbenv, const char *fmt, ...);
+```
+
+The `DB_ENV->err()`, `DB_ENV->errx,()`, DB->err() and `DB->errx()` methods provide error-messaging functionality for applications written using the Berkeley DB library.
+
+The DB->err() and DB_ENV->err() methods constructs an error message consisting of the following elements:
+
+- **An optional prefix string**
+
+ If no error callback function has been set using the DB_ENV->set_errcall() method, any prefix string specified using the DB_ENV->set_errpfx() method, followed by two separating characters: a colon and a \ character.
+
+- **An optional printf-style message**
+
+ The supplied message **fmt**, if non-NULL, in which the ANSI C X3.159-1989 (ANSI C) printf function specifies how subsequent parameters are converted for output.
+
+- **A separator**
+
+ Two separating characters: a colon and a \ character.
+
+- **A standard error string**
+
+ The standard system or Berkeley DB library error string associated with the **error** value, as returned by the db_strerror method.
+
+This constructed error message is then handled as follows:
+
+- If an error callback function has been set (see DB->set_errcall() and DB_ENV->set_errcall() ), that function is called with two parameters: any prefix string specified (see DB->set_errpfx() and DB_ENV->set_errpfx() ) and the error message.
+
+- If a C library FILE \* has been set (see DB->set_errfile() and DB_ENV->set_errfile() ), the error message is written to that output stream.
+
+- If none of these output options have been configured, the error message is written to stderr, the standard error output stream.
+
+### Parameters
+
+#### error
+
+The **error** parameter is the error value for which the `DB_ENV->err()` and DB->err() methods will display a explanatory string.
+
+#### fmt
+
+The **fmt** parameter is an optional printf-style message to display.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envevent_notify.md b/docs-src/api/c/envevent_notify.md
new file mode 100644
index 000000000..c8f3c45d6
--- /dev/null
+++ b/docs-src/api/c/envevent_notify.md
@@ -0,0 +1,165 @@
+---
+title: "DB_ENV->set_event_notify()"
+api-name: "DB_ENV->set_event_notify()"
+source: docs/api_reference/C/envevent_notify.html
+---
+## DB_ENV-\>set_event_notify()
+
+``` c
+#include
+
+int
+DB_ENV->set_event_notify(DB_ENV *dbenv,
+ void (*db_event_fcn)(DB_ENV *dbenv, u_int32_t event,
+ void *event_info));
+```
+
+The `DB_ENV->set_event_notify()` method configures a callback function which is called to notify the process of specific Berkeley DB events.
+
+### Note
+
+Berkeley DB is not re-entrant. Callback functions should not attempt to make library calls (for example, to release locks or close open handles). Re-entering Berkeley DB is not guaranteed to work correctly, and the results are undefined.
+
+The `DB_ENV->set_event_notify()` method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.
+
+The `DB_ENV->set_event_notify()` method may be called at any time during the life of the application.
+
+The `DB_ENV->set_event_notify()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### db_event_fcn
+
+The **db_event_fcn** parameter is the application's event notification function. The function takes three parameters:
+
+- `dbenv`
+
+ The **dbenv** parameter is the enclosing database environment handle.
+
+- `event`
+
+ The **event** parameter is one of the following values:
+
+ - `DB_EVENT_PANIC`
+
+ Errors can occur in the Berkeley DB library where the only solution is to shut down the application and run recovery (for example, if Berkeley DB is unable to allocate heap memory). In such cases, the Berkeley DB methods will return DB_RUNRECOVERY . It is often easier to simply exit the application when such errors occur rather than gracefully return up the stack.
+
+ When **event** is set to `DB_EVENT_PANIC`, the database environment has failed. All threads of control in the database environment should exit the environment, and recovery should be run.
+
+ - `DB_EVENT_REG_ALIVE`
+
+ Recovery is needed in an environment where the DB_REGISTER flag was specified on the DB_ENV->open() method and there is a process attached to the environment. The callback function is triggered once for each process attached.
+
+ The **event_info** parameter points to a pid_t value containing the process identifier (pid) of the process the Berkeley DB library detects is attached to the environment.
+
+ - `DB_EVENT_REG_PANIC`
+
+ Recovery is needed in an environment where the DB_REGISTER flag was specified on the DB_ENV->open() method. All threads of control in the database environment should exit the environment.
+
+ This event is different than the `DB_EVENT_PANIC` event because it can only be triggered when `DB_REGISTER` was specified. It can be used to distinguish between the case when a process dies in the environment and recovery is initiated versus the case when an error happened (for example, if Berkeley DB is unable to allocate heap memory)
+
+ - `DB_EVENT_REP_CLIENT`
+
+ The local site is now a replication client.
+
+ This event is generated when the replication role changes to client, either from master or from being unset. The role is unset when an environment is first created and after an environment is recovered. This event is not generated when restarting replication in an environment that was previously a client and was opened without recovery.
+
+ - `DB_EVENT_REP_CONNECT_BROKEN`
+
+ A previously established replication message connection between the local site and a remote site has been broken. This event supplies the EID of the remote site, and an integer error code that identifies the reason the connection was broken.
+
+ A non-zero error code indicates an unexpected condition such as a hardware failure or a protocol error. An application might respond by emitting an informational message or passing this information to other parts of the application using the `app_private` field. A zero error code indicates that the connection was cleanly closed by the other end. Replication Manager retries broken connections periodically until they are restored.
+
+ - `DB_EVENT_REP_CONNECT_ESTD`
+
+ A replication message connection has been established between the local site and a remote site. This event supplied the EID of the remote site.
+
+ - `DB_EVENT_REP_CONNECT_TRY_FAILED`
+
+ An attempt to establish a connection between the local site and a remote site has failed. This event supplies the EID of the remote site, and an integer error code that identifies the reason the connection attempt failed.
+
+ - `DB_EVENT_REP_DUPMASTER`
+
+ Replication Manager has detected a duplicate master situation, and has changed the local site to the client role as a result. If the DB_REPMGR_CONF_ELECTIONS configuration parameter has been turned off, the application should now choose and assign the correct master site. If `DB_REPMGR_CONF_ELECTIONS` is turned on, the application may ignore this event.
+
+ The `DB_EVENT_REP_DUPMASTER` event is provided only to applications configured for the replication manager.
+
+ - `DB_EVENT_REP_ELECTED`
+
+ The local replication site has just won an election. An application using the Base replication API should arrange for a call to the DB_ENV->rep_start() method after receiving this event, to reconfigure the local environment as a replication master.
+
+ Replication Manager applications may safely ignore this event. The Replication Manager calls DB_ENV->rep_start() automatically on behalf of the application when appropriate (resulting in firing of the DB_EVENT_REP_MASTER event).
+
+ - `DB_EVENT_REP_ELECTION_FAILED`
+
+ Replication Manager tried to run an election to choose a master site, but the election failed due to lack of timely participation by a sufficient number of other sites. Replication Manager will automatically retry the election later. This event is for information only.
+
+ The `DB_EVENT_REP_ELECTION_FAILED` event is provided only to applications configured for the replication manager.
+
+ - `DB_EVENT_REP_ELECTION_STARTED`
+
+ Replication Manager has started an election to choose a master site.
+
+ - `DB_EVENT_REP_INIT_DONE`
+
+ Replication Manager has completed an internal initialization procedure.
+
+ - `DB_EVENT_REP_JOIN_FAILURE`
+
+ The local client site is unable to synchronize with a new master, possibly because the client has turned off automatic internal initialization by setting the DB_REP_CONF_AUTOINIT flag to `0`.
+
+ - `DB_EVENT_REP_LOCAL_SITE_REMOVED`
+
+ The local site has been removed from the replication group.
+
+ - `DB_EVENT_REP_MASTER`
+
+ The local site is now the master site of its replication group. It is the application's responsibility to begin acting as the master environment.
+
+ This event is generated when the replication role changes to master, either from client or from being unset. The role is unset when an environment is first created and after an environment is recovered. This event is not generated when restarting replication in an environment that was previously a master and was opened without recovery.
+
+ - `DB_EVENT_REP_MASTER_FAILURE`
+
+ A Replication Manager client site has detected the loss of connection to the master site. If the DB_REPMGR_CONF_ELECTIONS configuration parameter is turned on, Replication Manager will automatically start an election in order to choose a new master. In this case, this event may be ignored.
+
+ When `DB_REPMGR_CONF_ELECTIONS` is turned off, the application should choose and assign a new master. Failure to do so means that your replication group has no master, and so it cannot service write requests.
+
+ The `DB_EVENT_REP_MASTER_FAILURE` event is provided only to applications configured for the replication manager.
+
+ - `DB_EVENT_REP_NEWMASTER`
+
+ The replication group of which this site is a member has just established a new master; the local site is not the new master. The **event_info** parameter points to an integer containing the environment ID of the new master.
+
+ - `DB_EVENT_REP_PERM_FAILED`
+
+ The replication manager did not receive enough acknowledgements (based on the acknowledgement policy configured with DB_ENV->repmgr_set_ack_policy() ) to ensure a transaction's durability within the replication group. The transaction will be flushed to the master's local disk storage for durability.
+
+ The `DB_EVENT_REP_PERM_FAILED` event is provided only to applications configured for the replication manager.
+
+ - `DB_EVENT_REP_SITE_ADDED`
+
+ A new site has joined the group. The **event_info** parameter points to an integer containing the environment ID of the new site.
+
+ - `DB_EVENT_REP_SITE_REMOVED`
+
+ An existing remote site has been removed from the group. The **event_info** parameter points to an integer containing the environment ID of the site that was removed.
+
+ - `DB_EVENT_REP_STARTUPDONE`
+
+ The client has completed startup synchronization and is now processing live log records received from the master.
+
+ - `DB_EVENT_WRITE_FAILED`
+
+ A Berkeley DB write to stable storage failed.
+
+- `event_info`
+
+ The **event_info** parameter may reference memory which contains additional information describing an event. By default, **event_info** is NULL; specific events may pass non-NULL values, in which case the event will also describe the memory's structure.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envfailchk.md b/docs-src/api/c/envfailchk.md
new file mode 100644
index 000000000..f2d96418f
--- /dev/null
+++ b/docs-src/api/c/envfailchk.md
@@ -0,0 +1,59 @@
+---
+title: "DB_ENV->failchk()"
+api-name: "DB_ENV->failchk()"
+source: docs/api_reference/C/envfailchk.html
+---
+## DB_ENV-\>failchk()
+
+``` c
+#include
+
+int
+DB_ENV->failchk(DB_ENV *dbenv, u_int32_t flags);
+```
+
+The `DB_ENV->failchk()` method checks for threads of control (either a true thread or a process) that have exited while manipulating Berkeley DB library data structures, while holding a logical database lock, or with an unresolved transaction (that is, a transaction that was never aborted or committed). For more information, see Architecting Data Store and Concurrent Data Store applications , and Architecting Transactional Data Store applications , both in the *Berkeley DB Programmer's Reference Guide*.
+
+The `DB_ENV->failchk()` method is used in conjunction with the DB_ENV->set_thread_count() , DB_ENV->set_isalive() and DB_ENV->set_thread_id() methods. Before calling the `failchk()`method, applications must:
+
+1. Configure their database using the DB_ENV->set_thread_count() method.
+
+2. Establish an `is_alive()` function and invoke DB_ENV->set_isalive() with that function as the `is_alive` parameter.
+
+3. Establish a `thread_id` function and invoke DB_ENV->set_thread_id() with that function as the `thread_id` parameter.
+
+If any of these methods are omitted, a program may be unable to allocate a thread control block. This is true of the standalone Berkeley DB utility programs. To avoid problems when using the standalone Berkeley DB utility programs with environments configured for failure checking, incorporate the utility's functionality directly in the application, or call the `DB_ENV->failchk()` method along with its associated methods before running the utility.
+
+If `DB_ENV->failchk()` determines a thread of control exited while holding database read locks, it will release those locks. If `DB_ENV->failchk()` determines a thread of control exited with an unresolved transaction, the transaction will be aborted. In either of these cases, `DB_ENV->failchk()` will return 0 and the application may continue to use the database environment.
+
+In either of these cases, the `DB_ENV->failchk()` method will also report the process and thread IDs associated with any released locks or aborted transactions. The information is printed to a specified output channel (see the DB_ENV->set_msgfile() method for more information), or passed to an application callback function (see the DB_ENV->set_msgcall() method for more information).
+
+If `DB_ENV->failchk()` determines a thread of control has exited such that database environment recovery is required, it will return DB_RUNRECOVERY . In this case, the application should not continue to use the database environment. For a further description as to the actions the application should take when this failure occurs, see Handling failure in Data Store and Concurrent Data Store applications , and Handling failure in Transactional Data Store applications , both in the *Berkeley DB Programmer's Reference Guide*.
+
+In multiprocess applications, it is recommended that the DB_ENV handle used to invoke the `DB_ENV->failchk()` method not be shared and therefore not *free-threaded* .
+
+The `DB_ENV->failchk()` method may not be called by the application before the DB_ENV->open() method is called.
+
+The `DB_ENV->failchk()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flags
+
+The **flags** parameter is currently unused, and must be set to 0.
+
+### Errors
+
+The `DB_ENV->failchk()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envfileid_reset.md b/docs-src/api/c/envfileid_reset.md
new file mode 100644
index 000000000..4f94676e9
--- /dev/null
+++ b/docs-src/api/c/envfileid_reset.md
@@ -0,0 +1,53 @@
+---
+title: "DB_ENV->fileid_reset()"
+api-name: "DB_ENV->fileid_reset()"
+source: docs/api_reference/C/envfileid_reset.html
+---
+## DB_ENV-\>fileid_reset()
+
+``` c
+#include
+
+int
+DB_ENV->fileid_reset(DB_ENV *dbenv, const char *file, u_int32_t flags);
+```
+
+The `DB_ENV->fileid_reset()` method allows database files to be copied, and then the copy used in the same database environment as the original.
+
+All databases contain an ID string used to identify the database in the database environment cache. If a physical database file is copied, and used in the same environment as another file with the same ID strings, corruption can occur. The `DB_ENV->fileid_reset()` method creates new ID strings for all of the databases in the physical file.
+
+The `DB_ENV->fileid_reset()` method modifies the physical file, in-place. Applications should not reset IDs in files that are currently in use.
+
+The `DB_ENV->fileid_reset()` method may be called at any time during the life of the application.
+
+The `DB_ENV->fileid_reset()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### file
+
+The name of the physical file in which new file IDs are to be created.
+
+#### flags
+
+The **flags** parameter must be set to 0 or the following value:
+
+- `DB_ENCRYPT`
+
+ The file contains encrypted databases.
+
+### Errors
+
+The `DB_ENV->fileid_reset()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envfullversion.md b/docs-src/api/c/envfullversion.md
new file mode 100644
index 000000000..c86c725c8
--- /dev/null
+++ b/docs-src/api/c/envfullversion.md
@@ -0,0 +1,46 @@
+---
+title: "db_full_version"
+api-name: "db_full_version"
+source: docs/api_reference/C/envfullversion.html
+---
+## db_full_version
+
+``` c
+#include
+
+char *
+db_full_version(int *family, int *release, int *major, int *minor,
+ int *patch);
+```
+
+The `db_full_version()` method returns a pointer to a string, suitable for display, containing Berkeley DB version information. The string includes Oracle family and release numbers, as well as Berkeley DB's traditional major, minor, and patch numbers.
+
+### Parameters
+
+#### family
+
+If **family** is non-NULL, the Oracle family number of the Berkeley DB release is copied to the memory to which it refers.
+
+#### release
+
+If **release** is non-NULL, the Oracle release number of the Berkeley DB release is copied to the memory to which it refers.
+
+#### major
+
+If **major** is non-NULL, the major version of the Berkeley DB release is copied to the memory to which it refers.
+
+#### minor
+
+If **minor** is non-NULL, the minor version of the Berkeley DB release is copied to the memory to which it refers.
+
+#### patch
+
+If **patch** is non-NULL, the patch version of the Berkeley DB release is copied to the memory to which it refers.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envget_backup_callbacks.md b/docs-src/api/c/envget_backup_callbacks.md
new file mode 100644
index 000000000..e3a9ec9e1
--- /dev/null
+++ b/docs-src/api/c/envget_backup_callbacks.md
@@ -0,0 +1,46 @@
+---
+title: "DB_ENV->get_backup_callbacks()"
+api-name: "DB_ENV->get_backup_callbacks()"
+source: docs/api_reference/C/envget_backup_callbacks.html
+---
+## DB_ENV-\>get_backup_callbacks()
+
+``` c
+#include
+
+DB_ENV->get_backup_callbacks(DB_ENV,
+ int (**open_func)(DB_ENV *, const char *dbname,
+ const char *target, void **handle),
+ int (**write_func)(DB_ENV *, u_int32_t offset_gbytes,
+ u_int32_t offset_bytes, u_int32_t size,
+ u_int8_t *buf, void *handle),
+ int (**close_func)(DB_ENV *, const char *dbname, void *handle));
+```
+
+The `DB_ENV->get_backup_callbacks()` method retrieves the three callback functions which can be used by the DB_ENV->backup() or DB_ENV->dbbackup() methods to override their default behavior. These callbacks are configured using the DB_ENV->set_backup_callbacks() method.
+
+The `DB_ENV->get_backup_callbacks()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_backup_callbacks()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### open_func
+
+The **open_func** parameter is the function used when a target location is opened during a backup.
+
+#### write_func
+
+The **close_func** parameter is the function used to write data during a backup.
+
+#### close_func
+
+The **close_func** parameter is the function used when ending a backup and closing a backup target.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods , DB_ENV->set_backup_callbacks() , DB_ENV->backup() , and DB_ENV->dbbackup() .
diff --git a/docs-src/api/c/envget_backup_config.md b/docs-src/api/c/envget_backup_config.md
new file mode 100644
index 000000000..9015b88a1
--- /dev/null
+++ b/docs-src/api/c/envget_backup_config.md
@@ -0,0 +1,53 @@
+---
+title: "DB_ENV->get_backup_config()"
+api-name: "DB_ENV->get_backup_config()"
+source: docs/api_reference/C/envget_backup_config.html
+---
+## DB_ENV-\>get_backup_config()
+
+``` c
+#include
+
+DB_ENV->get_backup_config(DB_ENV, db_backup_config_t option,
+ u_int32_t *valuep);
+```
+
+The `DB_ENV->get_backup_config()` method retrieves the value set for hot backup tuning parameters. See the DB_ENV->backup() and DB_ENV->dbbackup() methods for a description of the hot backup APIs. These tuning parameters can be set using the DB_ENV->set_backup_config() method.
+
+The `DB_ENV->get_backup_config()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_backup_config()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### option
+
+The **option** parameter identifies the backup parameter to be retrieved. It must be one of the following:
+
+- `DB_BACKUP_WRITE_DIRECT`
+
+ Turning this on causes direct I/O to be used when writing pages to the disk.
+
+- `DB_BACKUP_READ_COUNT`
+
+ Configures the number of pages to read before pausing.
+
+- `DB_BACKUP_READ_SLEEP`
+
+ Configures the number of microseconds to sleep between batches of reads.
+
+- `DB_BACKUP_SIZE`
+
+ Configures the size of the buffer, in megabytes, to read from the database.
+
+#### valuep
+
+The **valuep** parameter references memory into which is copied the current value of the backup tuning parameter identified by the **option** parameter.
+
+### Class
+
+DB_ENV ,
+
+### See Also
+
+Database Environments and Related Methods , DB_ENV->set_backup_config() , DB_ENV->backup() , DB_ENV->dbbackup()
diff --git a/docs-src/api/c/envget_cache_max.md b/docs-src/api/c/envget_cache_max.md
new file mode 100644
index 000000000..cca450737
--- /dev/null
+++ b/docs-src/api/c/envget_cache_max.md
@@ -0,0 +1,38 @@
+---
+title: "DB_ENV->get_cache_max()"
+api-name: "DB_ENV->get_cache_max()"
+source: docs/api_reference/C/envget_cache_max.html
+---
+## DB_ENV-\>get_cache_max()
+
+``` c
+#include
+
+int
+DB_ENV->get_cache_max(DB_ENV *dbenv, u_int32_t *gbytesp,
+ u_int32_t *bytesp);
+```
+
+The `DB_ENV->get_cache_max()` method returns the maximum size of the cache as set using the DB_ENV->set_cache_max() method.
+
+The `DB_ENV->get_cache_max()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_cache_max()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### gbytesp
+
+The **gbytesp** parameter references memory into which the gigabytes of memory in the cache is copied.
+
+#### bytesp
+
+The **bytesp** parameter references memory into which the additional bytes of memory in the cache is copied.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods , DB_ENV->set_cache_max()
diff --git a/docs-src/api/c/envget_cachesize.md b/docs-src/api/c/envget_cachesize.md
new file mode 100644
index 000000000..32151e404
--- /dev/null
+++ b/docs-src/api/c/envget_cachesize.md
@@ -0,0 +1,42 @@
+---
+title: "DB_ENV->get_cachesize()"
+api-name: "DB_ENV->get_cachesize()"
+source: docs/api_reference/C/envget_cachesize.html
+---
+## DB_ENV-\>get_cachesize()
+
+``` c
+#include
+
+int
+DB_ENV->get_cachesize(DB_ENV *dbenv,
+ u_int32_t *gbytesp, u_int32_t *bytesp, int *ncachep);
+```
+
+The `DB_ENV->get_cachesize()` method returns the current size and composition of the cache, as set using the DB_ENV->set_cachesize() method.
+
+The `DB_ENV->get_cachesize()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_cachesize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### gbytesp
+
+The **gbytesp** parameter references memory into which the gigabytes of memory in the cache is copied.
+
+#### bytesp
+
+The **bytesp** parameter references memory into which the additional bytes of memory in the cache is copied.
+
+#### ncachep
+
+The **ncachep** parameter references memory into which the number of caches is copied.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Memory Pools and Related Methods , Database Environments and Related Methods , DB_ENV->set_cachesize()
diff --git a/docs-src/api/c/envget_create_dir.md b/docs-src/api/c/envget_create_dir.md
new file mode 100644
index 000000000..223342f97
--- /dev/null
+++ b/docs-src/api/c/envget_create_dir.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_create_dir()"
+api-name: "DB_ENV->get_create_dir()"
+source: docs/api_reference/C/envget_create_dir.html
+---
+## DB_ENV-\>get_create_dir()
+
+``` c
+#include
+
+int
+DB_ENV->get_create_dir(DB_ENV *dbenv, const char **dirp);
+```
+
+The `DB_ENV->get_create_dir()` method returns a pointer to the name of the directory to create databases in.
+
+The `DB_ENV->get_create_dir()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_create_dir()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dirp
+
+The `DB_ENV->get_create_dir()` method returns a ponter to the name of the directory in **dirp**.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envget_data_dirs.md b/docs-src/api/c/envget_data_dirs.md
new file mode 100644
index 000000000..5de9a90b1
--- /dev/null
+++ b/docs-src/api/c/envget_data_dirs.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_data_dirs()"
+api-name: "DB_ENV->get_data_dirs()"
+source: docs/api_reference/C/envget_data_dirs.html
+---
+## DB_ENV-\>get_data_dirs()
+
+``` c
+#include
+
+int
+DB_ENV->get_data_dirs(DB_ENV *dbenv, const char ***dirpp);
+```
+
+The `DB_ENV->get_data_dirs()` method returns the NULL-terminated array of directories.
+
+The `DB_ENV->get_data_dirs()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_data_dirs()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dirpp
+
+The `DB_ENV->get_data_dirs()` method returns a reference to the NULL-terminated array of directories in **dirpp**.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envget_data_len.md b/docs-src/api/c/envget_data_len.md
new file mode 100644
index 000000000..19fc6b9b9
--- /dev/null
+++ b/docs-src/api/c/envget_data_len.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_data_len()"
+api-name: "DB_ENV->get_data_len()"
+source: docs/api_reference/C/envget_data_len.html
+---
+## DB_ENV-\>get_data_len()
+
+``` c
+#include
+
+int
+DB_ENV->get_data_len(DB_ENV *dbenv, u_int32_t *bytes);
+```
+
+The `DB_ENV->get_data_len()` method returns the maximum number of bytes to display for each key/data item when dumping the database or printing the log. This limit can be set using the DB_ENV->set_data_len() method.
+
+The `DB_ENV->get_data_len()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_data_len()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### bytes
+
+The `bytes` parameter references memory into which is copied the maximum number of bytes to display when dumping the database or printing the log.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envget_encrypt_flags.md b/docs-src/api/c/envget_encrypt_flags.md
new file mode 100644
index 000000000..b9ebf0f34
--- /dev/null
+++ b/docs-src/api/c/envget_encrypt_flags.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_encrypt_flags()"
+api-name: "DB_ENV->get_encrypt_flags()"
+source: docs/api_reference/C/envget_encrypt_flags.html
+---
+## DB_ENV-\>get_encrypt_flags()
+
+``` c
+#include
+
+int
+DB_ENV->get_encrypt_flags(DB_ENV *dbenv, u_int32_t *flagsp);
+```
+
+The `DB_ENV->get_encrypt_flags()` method returns the encryption flags.
+
+The `DB_ENV->get_encrypt_flags()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_encrypt_flags()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flagsp
+
+The `DB_ENV->get_encrypt_flags()` method returns the encryption flags in **flagsp**.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envget_errfile.md b/docs-src/api/c/envget_errfile.md
new file mode 100644
index 000000000..6600a9f7a
--- /dev/null
+++ b/docs-src/api/c/envget_errfile.md
@@ -0,0 +1,31 @@
+---
+title: "DB_ENV->get_errfile()"
+api-name: "DB_ENV->get_errfile()"
+source: docs/api_reference/C/envget_errfile.html
+---
+## DB_ENV-\>get_errfile()
+
+``` c
+#include
+
+void
+DB_ENV->get_errfile(DB_ENV *dbenv, FILE **errfilep);
+```
+
+The `DB_ENV->get_errfile()` method returns the FILE \* used for displaying additional Berkeley DB error messages. This C library is set using the DB_ENV->set_errfile() method.
+
+The `DB_ENV->get_errfile()` method may be called at any time during the life of the application.
+
+### Parameters
+
+#### errfilep
+
+The `DB_ENV->get_errfile()` method returns the FILE \* in **errfilep**.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envget_errpfx.md b/docs-src/api/c/envget_errpfx.md
new file mode 100644
index 000000000..788dc6f5c
--- /dev/null
+++ b/docs-src/api/c/envget_errpfx.md
@@ -0,0 +1,31 @@
+---
+title: "DB_ENV->get_errpfx()"
+api-name: "DB_ENV->get_errpfx()"
+source: docs/api_reference/C/envget_errpfx.html
+---
+## DB_ENV-\>get_errpfx()
+
+``` c
+#include
+
+void
+DB_ENV->get_errpfx(DB_ENV *dbenv, const char **errpfxp);
+```
+
+The `DB_ENV->get_errpfx()` method returns the error prefix that appears before error messages issued by Berkeley DB. This error prefix is set using the DB_ENV->set_errpfx() method.
+
+The `DB_ENV->get_errpfx()` method may be called at any time during the life of the application.
+
+### Parameters
+
+#### errpfxp
+
+The `DB_ENV->get_errpfx()` method returns a reference to the error prefix in **errpfxp**.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envget_flags.md b/docs-src/api/c/envget_flags.md
new file mode 100644
index 000000000..fca5ca033
--- /dev/null
+++ b/docs-src/api/c/envget_flags.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_flags()"
+api-name: "DB_ENV->get_flags()"
+source: docs/api_reference/C/envget_flags.html
+---
+## DB_ENV-\>get_flags()
+
+``` c
+#include
+
+int
+DB_ENV->get_flags(DB_ENV *dbenv, u_int32_t *flagsp);
+```
+
+The `DB_ENV->get_flags()` method returns the configuration flags set for a DB_ENV handle. These flags are set using the DB_ENV->set_flags() method.
+
+The `DB_ENV->get_flags()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_flags()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flagsp
+
+The `DB_ENV->get_flags()` method returns the configuration flags in **flagsp**.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envget_home.md b/docs-src/api/c/envget_home.md
new file mode 100644
index 000000000..140b8620e
--- /dev/null
+++ b/docs-src/api/c/envget_home.md
@@ -0,0 +1,27 @@
+---
+title: "DB_ENV->get_home()"
+api-name: "DB_ENV->get_home()"
+source: docs/api_reference/C/envget_home.html
+---
+## DB_ENV-\>get_home()
+
+``` c
+#include
+
+int
+DB_ENV->get_home(DB_ENV *dbenv, const char **homep);
+```
+
+The `DB_ENV->get_home()` method returns the database environment home directory. This directory is normally identified when the DB_ENV->open() method is called.
+
+The `DB_ENV->get_home()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_home()` method returns a non-zero error value on failure and 0 on success.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envget_intermediate_dir_mode.md b/docs-src/api/c/envget_intermediate_dir_mode.md
new file mode 100644
index 000000000..9cdb1a068
--- /dev/null
+++ b/docs-src/api/c/envget_intermediate_dir_mode.md
@@ -0,0 +1,35 @@
+---
+title: "DB_ENV->get_intermediate_dir_mode()"
+api-name: "DB_ENV->get_intermediate_dir_mode()"
+source: docs/api_reference/C/envget_intermediate_dir_mode.html
+---
+## DB_ENV-\>get_intermediate_dir_mode()
+
+``` c
+#include
+
+int
+DB_ENV->get_intermediate_dir_mode(DB_ENV *dbenv, const char **modep);
+```
+
+The `DB_ENV->get_intermediate_dir_mode()` method returns the intermediate directory permissions.
+
+Intermediate directories are directories needed for recovery. Normally, Berkeley DB does not create these directories and will do so only if the DB_ENV->set_intermediate_dir_mode() method is called.
+
+The `DB_ENV->get_intermediate_dir_mode()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_intermediate_dir_mode()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### modep
+
+The `DB_ENV->get_intermediate_dir_mode()` method returns a reference to the intermediate directory permissions in **modep**.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envget_lg_bsize.md b/docs-src/api/c/envget_lg_bsize.md
new file mode 100644
index 000000000..45eaf4168
--- /dev/null
+++ b/docs-src/api/c/envget_lg_bsize.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_lg_bsize()"
+api-name: "DB_ENV->get_lg_bsize()"
+source: docs/api_reference/C/envget_lg_bsize.html
+---
+## DB_ENV-\>get_lg_bsize()
+
+``` c
+#include
+
+int
+DB_ENV->get_lg_bsize(DB_ENV *dbenv, u_int32_t *lg_bsizep);
+```
+
+The `DB_ENV->get_lg_bsize()` method returns the size of the log buffer, in bytes. You can manage this value using the DB_ENV->set_lg_bsize() method.
+
+The `DB_ENV->get_lg_bsize()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_lg_bsize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### lg_bsizep
+
+The `DB_ENV->get_lg_bsize()` method returns the size of the log buffer, in bytes in **lg_bsizep**.
+
+### Class
+
+DB_ENV , DB_LOGC , DB_LSN
+
+### See Also
+
+Logging Subsystem and Related Methods , DB_ENV->set_lg_bsize()
diff --git a/docs-src/api/c/envget_lg_dir.md b/docs-src/api/c/envget_lg_dir.md
new file mode 100644
index 000000000..6b3d144c5
--- /dev/null
+++ b/docs-src/api/c/envget_lg_dir.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_lg_dir()"
+api-name: "DB_ENV->get_lg_dir()"
+source: docs/api_reference/C/envget_lg_dir.html
+---
+## DB_ENV-\>get_lg_dir()
+
+``` c
+#include
+
+int
+DB_ENV->get_lg_dir(DB_ENV *dbenv, const char **dirp);
+```
+
+The `DB_ENV->get_lg_dir()` method returns the log directory, which is the location for logging files. You can manage this value using the DB_ENV->set_lg_dir() method.
+
+The `DB_ENV->get_lg_dir()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_lg_dir()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dirp
+
+The `DB_ENV->get_lg_dir()` method returns a reference to the log directory in **dirp**.
+
+### Class
+
+DB_ENV , DB_LOGC , DB_LSN
+
+### See Also
+
+Logging Subsystem and Related Methods , DB_ENV->set_lg_dir()
diff --git a/docs-src/api/c/envget_lg_filemode.md b/docs-src/api/c/envget_lg_filemode.md
new file mode 100644
index 000000000..f2b1858a9
--- /dev/null
+++ b/docs-src/api/c/envget_lg_filemode.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_lg_filemode()"
+api-name: "DB_ENV->get_lg_filemode()"
+source: docs/api_reference/C/envget_lg_filemode.html
+---
+## DB_ENV-\>get_lg_filemode()
+
+``` c
+#include
+
+int
+DB_ENV->get_lg_filemode(DB_ENV *dbenv, int *lg_modep);
+```
+
+The `DB_ENV->set_lg_filemode()` method returns the log file mode. You can manage this value using the DB_ENV->set_lg_filemode() method.
+
+The `DB_ENV->set_lg_filemode()` method may be called at any time during the life of the application.
+
+The `DB_ENV->set_lg_filemode()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### lg_modep
+
+The `DB_ENV->set_lg_filemode()` method returns the log file mode in **lg_modep**.
+
+### Class
+
+DB_ENV , DB_LOGC , DB_LSN
+
+### See Also
+
+Logging Subsystem and Related Methods , DB_ENV->set_lg_filemode()
diff --git a/docs-src/api/c/envget_lg_max.md b/docs-src/api/c/envget_lg_max.md
new file mode 100644
index 000000000..a16a2e3ce
--- /dev/null
+++ b/docs-src/api/c/envget_lg_max.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_lg_max()"
+api-name: "DB_ENV->get_lg_max()"
+source: docs/api_reference/C/envget_lg_max.html
+---
+## DB_ENV-\>get_lg_max()
+
+``` c
+#include
+
+int
+DB_ENV->get_lg_max(DB_ENV *dbenv, u_int32_t *lg_maxp);
+```
+
+The `DB_ENV->get_lg_max()` method returns the maximum log file size. You can manage this value using the DB_ENV->set_lg_max() method.
+
+The `DB_ENV->get_lg_max()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_lg_max()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### lg_maxp
+
+The `DB_ENV->get_lg_max()` method returns the maximum log file size in **lg_maxp**.
+
+### Class
+
+DB_ENV , DB_LOGC , DB_LSN
+
+### See Also
+
+Logging Subsystem and Related Methods , DB_ENV->set_lg_max()
diff --git a/docs-src/api/c/envget_lg_regionmax.md b/docs-src/api/c/envget_lg_regionmax.md
new file mode 100644
index 000000000..3670a7909
--- /dev/null
+++ b/docs-src/api/c/envget_lg_regionmax.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_lg_regionmax()"
+api-name: "DB_ENV->get_lg_regionmax()"
+source: docs/api_reference/C/envget_lg_regionmax.html
+---
+## DB_ENV-\>get_lg_regionmax()
+
+``` c
+#include
+
+int
+DB_ENV->get_lg_regionmax(DB_ENV *dbenv, u_int32_t *lg_regionmaxp);
+```
+
+The `DB_ENV->get_lg_regionmax()` method returns the size of the underlying logging subsystem region. You can manage this value using the DB_ENV->set_lg_regionmax() method.
+
+The `DB_ENV->get_lg_regionmax()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_lg_regionmax()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### lg_regionmaxp
+
+The `DB_ENV->get_lg_regionmax()` method returns the size of the underlying logging subsystem region in **lg_regionmaxp**.
+
+### Class
+
+DB_ENV , DB_LOGC , DB_LSN
+
+### See Also
+
+Logging Subsystem and Related Methods , DB_ENV->set_lg_regionmax()
diff --git a/docs-src/api/c/envget_lk_conflicts.md b/docs-src/api/c/envget_lk_conflicts.md
new file mode 100644
index 000000000..5559aabe7
--- /dev/null
+++ b/docs-src/api/c/envget_lk_conflicts.md
@@ -0,0 +1,46 @@
+---
+title: "DB_ENV->get_lk_conflicts()"
+api-name: "DB_ENV->get_lk_conflicts()"
+source: docs/api_reference/C/envget_lk_conflicts.html
+---
+## DB_ENV-\>get_lk_conflicts()
+
+``` c
+#include
+
+int
+DB_ENV->get_lk_conflicts(DB_ENV *dbenv,
+ const u_int8_t **lk_conflictsp, int *lk_modesp);
+```
+
+The `DB_ENV->get_lk_conflicts()` method returns the current conflicts array. You can specify a conflicts array using DB_ENV->set_lk_conflicts()
+
+The `DB_ENV->get_lk_conflicts()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_lk_conflicts()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### lk_conflictsp
+
+The **lk_conflictsp** parameter references memory into which a pointer to the current conflicts array is copied.
+
+#### lk_modesp
+
+The **lk_modesp** parameter references memory into which the size of the current conflicts array is copied.
+
+### Errors
+
+The `DB_ENV->get_lk_conflicts()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+The method was called on an environment which had been opened without being configured for locking.
+
+### Class
+
+DB_ENV , DB_LOCK
+
+### See Also
+
+Locking Subsystem and Related Methods , DB_ENV->set_lk_conflicts()
diff --git a/docs-src/api/c/envget_lk_detect.md b/docs-src/api/c/envget_lk_detect.md
new file mode 100644
index 000000000..2995bcf2c
--- /dev/null
+++ b/docs-src/api/c/envget_lk_detect.md
@@ -0,0 +1,41 @@
+---
+title: "DB_ENV->get_lk_detect()"
+api-name: "DB_ENV->get_lk_detect()"
+source: docs/api_reference/C/envget_lk_detect.html
+---
+## DB_ENV-\>get_lk_detect()
+
+``` c
+#include
+
+int
+DB_ENV->get_lk_detect(DB_ENV *dbenv, u_int32_t *lk_detectp);
+```
+
+The `DB_ENV->get_lk_detect()` method returns the deadlock detector configuration. You can manage this using the DB_ENV->set_lk_detect() method.
+
+The `DB_ENV->get_lk_detect()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_lk_detect()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### lk_detectp
+
+The `DB_ENV->get_lk_detect()` method returns the deadlock detector configuration in **lk_detectp**.
+
+### Errors
+
+The `DB_ENV->get_lk_detect()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+The method was called on an environment which had been opened without being configured for locking.
+
+### Class
+
+DB_ENV , DB_LOCK
+
+### See Also
+
+Locking Subsystem and Related Methods , DB_ENV->set_lk_detect()
diff --git a/docs-src/api/c/envget_lk_max_lockers.md b/docs-src/api/c/envget_lk_max_lockers.md
new file mode 100644
index 000000000..228322ba6
--- /dev/null
+++ b/docs-src/api/c/envget_lk_max_lockers.md
@@ -0,0 +1,41 @@
+---
+title: "DB_ENV->get_lk_max_lockers()"
+api-name: "DB_ENV->get_lk_max_lockers()"
+source: docs/api_reference/C/envget_lk_max_lockers.html
+---
+## DB_ENV-\>get_lk_max_lockers()
+
+``` c
+#include
+
+int
+DB_ENV->get_lk_max_lockers(DB_ENV *dbenv, u_int32_t *lk_maxp);
+```
+
+The `DB_ENV->get_lk_max_lockers()` method returns the maximum number of potential lockers. You can configure this using the DB_ENV->set_lk_max_lockers() method.
+
+The `DB_ENV->get_lk_max_lockers()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_lk_max_lockers()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### lk_maxp
+
+The `DB_ENV->get_lk_max_lockers()` method returns the maximum number of lockers in **lk_maxp**.
+
+### Errors
+
+The `DB_ENV->get_lk_max_lockers()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+The method was called on an environment which had been opened without being configured for locking.
+
+### Class
+
+DB_ENV , DB_LOCK
+
+### See Also
+
+Locking Subsystem and Related Methods , DB_ENV->set_lk_max_lockers()
diff --git a/docs-src/api/c/envget_lk_max_locks.md b/docs-src/api/c/envget_lk_max_locks.md
new file mode 100644
index 000000000..21b7c95ef
--- /dev/null
+++ b/docs-src/api/c/envget_lk_max_locks.md
@@ -0,0 +1,41 @@
+---
+title: "DB_ENV->get_lk_max_locks()"
+api-name: "DB_ENV->get_lk_max_locks()"
+source: docs/api_reference/C/envget_lk_max_locks.html
+---
+## DB_ENV-\>get_lk_max_locks()
+
+``` c
+#include
+
+int
+DB_ENV->get_lk_max_locks(DB_ENV *dbenv, u_int32_t *lk_maxp);
+```
+
+The `DB_ENV->get_lk_max_locks()` method returns the maximum number of potential locks. You can configure this using the DB_ENV->set_lk_max_locks() method.
+
+The `DB_ENV->get_lk_max_locks()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_lk_max_locks()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### lk_maxp
+
+The `DB_ENV->get_lk_max_locks()` method returns the maximum number of locks in **lk_maxp**.
+
+### Errors
+
+The `DB_ENV->get_lk_max_locks()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+The method was called on an environment which had been opened without being configured for locking.
+
+### Class
+
+DB_ENV , DB_LOCK
+
+### See Also
+
+Locking Subsystem and Related Methods , DB_ENV->set_lk_max_locks()
diff --git a/docs-src/api/c/envget_lk_max_objects.md b/docs-src/api/c/envget_lk_max_objects.md
new file mode 100644
index 000000000..6d7807810
--- /dev/null
+++ b/docs-src/api/c/envget_lk_max_objects.md
@@ -0,0 +1,41 @@
+---
+title: "DB_ENV->get_lk_max_objects()"
+api-name: "DB_ENV->get_lk_max_objects()"
+source: docs/api_reference/C/envget_lk_max_objects.html
+---
+## DB_ENV-\>get_lk_max_objects()
+
+``` c
+#include
+
+int
+DB_ENV->get_lk_max_objects(DB_ENV *dbenv, u_int32_t *lk_maxp);
+```
+
+The `DB_ENV->get_lk_max_objects()` method returns the maximum number of locked objects. You can configure this using the DB_ENV->set_lk_max_objects() method.
+
+The `DB_ENV->get_lk_max_objects()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_lk_max_objects()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### lk_maxp
+
+The `DB_ENV->get_lk_max_objects()` method returns the maximum number of potentially locked objects in **lk_maxp**.
+
+### Errors
+
+The `DB_ENV->get_lk_max_objects()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+The method was called on an environment which had been opened without being configured for locking.
+
+### Class
+
+DB_ENV , DB_LOCK
+
+### See Also
+
+Locking Subsystem and Related Methods , DB_ENV->set_lk_max_objects()
diff --git a/docs-src/api/c/envget_lk_partitions.md b/docs-src/api/c/envget_lk_partitions.md
new file mode 100644
index 000000000..8f90fb74c
--- /dev/null
+++ b/docs-src/api/c/envget_lk_partitions.md
@@ -0,0 +1,41 @@
+---
+title: "DB_ENV->get_lk_partitions()"
+api-name: "DB_ENV->get_lk_partitions()"
+source: docs/api_reference/C/envget_lk_partitions.html
+---
+## DB_ENV-\>get_lk_partitions()
+
+``` c
+#include
+
+int
+DB_ENV->get_lk_partitions(DB_ENV *dbenv, u_int32_t *lk_partitions);
+```
+
+The `DB_ENV->get_lk_partitions()` method returns the number of lock table partitions used in the Berkeley DB environment. You can configure this using the DB_ENV->set_lk_partitions() method.
+
+The `DB_ENV->get_lk_partitions()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_lk_partitions()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### lk_partitions
+
+The `DB_ENV->get_lk_partitions()` method returns the number of partitions in **lk_partitions**.
+
+### Errors
+
+The `DB_ENV->get_lk_partitions()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+The method was called on an environment which had been opened without being configured for locking.
+
+### Class
+
+DB_ENV , DB_LOCK
+
+### See Also
+
+Locking Subsystem and Related Methods , DB_ENV->set_lk_partitions()
diff --git a/docs-src/api/c/envget_lk_priority.md b/docs-src/api/c/envget_lk_priority.md
new file mode 100644
index 000000000..0e9e84ca0
--- /dev/null
+++ b/docs-src/api/c/envget_lk_priority.md
@@ -0,0 +1,42 @@
+---
+title: "DB_ENV->get_lk_priority()"
+api-name: "DB_ENV->get_lk_priority()"
+source: docs/api_reference/C/envget_lk_priority.html
+---
+## DB_ENV-\>get_lk_priority()
+
+``` c
+#include
+
+int
+DB_ENV->get_lk_priority(DB_ENV *dbenv,
+ u_int32_t lockerid, u_int32_t *priority);
+```
+
+Get the deadlock priority for the given locker.
+
+### Parameters
+
+#### lockerid
+
+The **lockerid** parameter represents a locker returned by `envM;lock_id()`.
+
+#### priority
+
+Upon return, the **priority** parameter will point to a value between 0 and 2^32-1.
+
+### Errors
+
+The `DB_ENV->get_lk_priority()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV , DB_LOCK
+
+### See Also
+
+Locking Subsystem and Related Methods , DB_ENV->set_lk_priority()
diff --git a/docs-src/api/c/envget_lk_tablesize.md b/docs-src/api/c/envget_lk_tablesize.md
new file mode 100644
index 000000000..8f1437487
--- /dev/null
+++ b/docs-src/api/c/envget_lk_tablesize.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_lk_tablesize()"
+api-name: "DB_ENV->get_lk_tablesize()"
+source: docs/api_reference/C/envget_lk_tablesize.html
+---
+## DB_ENV-\>get_lk_tablesize()
+
+``` c
+#include
+
+int
+DB_ENV->get_lk_tablesize(DB_ENV *dbenv, u_int32_t *tablesizep;
+```
+
+The `DB_ENV->get_lk_tablesize()` method returns the size of the lock object hash table in the Berkeley DB environment. This value is set using the DB_ENV->set_lk_tablesize() method.
+
+The `DB_ENV->get_lk_tablesize()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_lk_tablesize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### tablesizep
+
+The **tablesizep** parameter references memory into which is copied the size of the lock object hash table configured for the Berkeley DB environment.
+
+### Class
+
+DB_ENV , DB_LOCK
+
+### See Also
+
+Locking Subsystem and Related Methods
diff --git a/docs-src/api/c/envget_memory_init.md b/docs-src/api/c/envget_memory_init.md
new file mode 100644
index 000000000..eb4824feb
--- /dev/null
+++ b/docs-src/api/c/envget_memory_init.md
@@ -0,0 +1,62 @@
+---
+title: "DB_ENV->get_memory_init()"
+api-name: "DB_ENV->get_memory_init()"
+source: docs/api_reference/C/envget_memory_init.html
+---
+## DB_ENV-\>get_memory_init()
+
+``` c
+#include
+
+int
+DB_ENV->get_memory_init(DB_ENV *dbenv, DB_MEM_CONFIG type,
+ u_int32_t *countp);
+```
+
+The `DB_ENV->get_memory_init()` method returns the number of objects to allocate and initialize when an environment is created. The count is returned for a specific named structure. The count for each structure is set using the DB_ENV->set_memory_init() method.
+
+The `DB_ENV->get_memory_init()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_memory_init()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### type
+
+The **struct** parameter identifies the structure for which you want an object count returned. It must be one of the following values:
+
+- `DB_MEM_LOCK`
+
+ Initialize locks. A thread uses this structure to lock a page (or record for the QUEUE access method) and hold it to the end of a transactions.
+
+- `DB_MEM_LOCKOBJECT`
+
+ Initialize lock objects. For each page (or record) which is locked in the system, a lock object will be allocated.
+
+- `DB_MEM_LOCKER`
+
+ Initialize lockers. Each thread which is active in a transactional environment will use a locker structure either for each transaction which is active, or for each non-transactional cursor that is active.
+
+- `DB_MEM_LOGID`
+
+ Initialize the log fileid structures. For each database handle which is opened for writing in a transactional environment, a log fileid structure is used.
+
+- `DB_MEM_TRANSACTION`
+
+ Initialize transaction structures. Each active transaction uses a transaction structure until it either commits or aborts.
+
+- `DB_MEM_THREAD`
+
+ Initialize thread identification structures. If thread tracking is enabled then each active thread will use a structure. Note that since a thread does not signal the BDB library that it will no longer be making calls, unused structures may accumulate until a cleanup is triggered either using a high water mark or by running DB_ENV->failchk() .
+
+#### countp
+
+The **countp** parameter references memory into which the object count for the specified structure is copied.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envget_memory_max.md b/docs-src/api/c/envget_memory_max.md
new file mode 100644
index 000000000..0ece54537
--- /dev/null
+++ b/docs-src/api/c/envget_memory_max.md
@@ -0,0 +1,42 @@
+---
+title: "DB_ENV->get_memory_max()"
+api-name: "DB_ENV->get_memory_max()"
+source: docs/api_reference/C/envget_memory_max.html
+---
+## DB_ENV-\>get_memory_max()
+
+``` c
+#include
+
+int
+DB_ENV->get_memory_max(DB_ENV *dbenv, u_int32_t *gbytesp,
+ u_int32_t *bytesp);
+```
+
+The `DB_ENV->get_memory_max()` method returns the maximum amount of memory to be used by shared structures other than mutexes and the page cache (memory pool). This value is set using the DB_ENV->set_memory_max() method.
+
+The `DB_ENV->get_memory_max()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_memory_max()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### gbytesp
+
+The **gbytesp** parameter references memory into which is copied the maximum number of gigabytes of memory that can be allocated.
+
+#### bytesp
+
+The **bytesp** parameter references memory into which is copied the additional bytes of memory that can be allocated.
+
+#### sizep
+
+The **sizep** parameter references memory into which is copied the maximum number of bytes to be allocated.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envget_metadata_dir.md b/docs-src/api/c/envget_metadata_dir.md
new file mode 100644
index 000000000..857e8d3ca
--- /dev/null
+++ b/docs-src/api/c/envget_metadata_dir.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_metadata_dir()"
+api-name: "DB_ENV->get_metadata_dir()"
+source: docs/api_reference/C/envget_metadata_dir.html
+---
+## DB_ENV-\>get_metadata_dir()
+
+``` c
+#include
+
+int
+DB_ENV->get_metadata_dir(DB_ENV *envp, const char **dirp);
+```
+
+The `DB_ENV->get_metadata_dir()` method returns the directory where persistent metadata is stored. This location can be set using the DB_ENV->set_metadata_dir() method.
+
+The `DB_ENV->get_metadata_dir()` directory may be called at any time during the life of the application.
+
+The `DB_ENV->get_metadata_dir()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dirp
+
+The **dirp** parameter references memory into which is copied the directory which contains persistent metadata files.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods , DB_ENV->set_metadata_dir()
diff --git a/docs-src/api/c/envget_mp_mmapsize.md b/docs-src/api/c/envget_mp_mmapsize.md
new file mode 100644
index 000000000..d1d7b9c32
--- /dev/null
+++ b/docs-src/api/c/envget_mp_mmapsize.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_mp_mmapsize()"
+api-name: "DB_ENV->get_mp_mmapsize()"
+source: docs/api_reference/C/envget_mp_mmapsize.html
+---
+## DB_ENV-\>get_mp_mmapsize()
+
+``` c
+#include
+
+int
+DB_ENV->get_mp_mmapsize(DB_ENV *dbenv, size_t *mp_mmapsizep);
+```
+
+The `DB_ENV->get_mp_mmapsize()` method returns the the maximum file size, in bytes, for a file to be mapped into the process address space. This value can be managed using the DB_ENV->set_mp_mmapsize() method.
+
+The `DB_ENV->get_mp_mmapsize()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_mp_mmapsize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### mp_mmapsizep
+
+The `DB_ENV->get_mp_mmapsize()` method returns the maximum file map size in **mp_mmapsizep**.
+
+### Class
+
+DB_ENV , DB_MPOOLFILE
+
+### See Also
+
+Memory Pools and Related Methods , DB_ENV->set_mp_mmapsize()
diff --git a/docs-src/api/c/envget_mp_mtxcount.md b/docs-src/api/c/envget_mp_mtxcount.md
new file mode 100644
index 000000000..da139a195
--- /dev/null
+++ b/docs-src/api/c/envget_mp_mtxcount.md
@@ -0,0 +1,29 @@
+---
+title: "DB_ENV->get_mp_mtxcount()"
+api-name: "DB_ENV->get_mp_mtxcount()"
+source: docs/api_reference/C/envget_mp_mtxcount.html
+---
+## DB_ENV-\>get_mp_mtxcount()
+
+``` c
+#include
+
+int
+DB_ENV->get_mp_mtxcount(DB_ENV *dbenv, u_int32_t *mtxcount);
+```
+
+The `DB_ENV->get_mp_mtxcount()` method returns the number of mutexes allocated for the hash table in the buffer pool.
+
+### Parameters
+
+#### mtxcount
+
+This parameter specifies the number of mutexes allocated for the hash table in the buffer pool.
+
+### Class
+
+DB_ENV , DB_MPOOLFILE
+
+### See Also
+
+Memory Pools and Related Methods , DB_ENV->set_mp_mtxcount()
diff --git a/docs-src/api/c/envget_mp_pagesize.md b/docs-src/api/c/envget_mp_pagesize.md
new file mode 100644
index 000000000..f8f213fd3
--- /dev/null
+++ b/docs-src/api/c/envget_mp_pagesize.md
@@ -0,0 +1,31 @@
+---
+title: "DB_ENV->get_mp_pagesize()"
+api-name: "DB_ENV->get_mp_pagesize()"
+source: docs/api_reference/C/envget_mp_pagesize.html
+---
+## DB_ENV-\>get_mp_pagesize()
+
+``` c
+#include
+
+int
+DB_ENV->get_mp_pagesize(DB_ENV *dbenv, u_int32_t *pagesizep);
+```
+
+The `DB_ENV->get_mp_pagesize()` method returns the assumed page size used to configure the buffer pool.
+
+The `DB_ENV->get_mp_pagesize()` method may be called at any time during the life of the application.
+
+### Parameters
+
+#### pagesizep
+
+This parameter specifies the assumed page size used to configure the buffer pool.
+
+### Class
+
+DB_ENV , DB_MPOOLFILE
+
+### See Also
+
+Memory Pools and Related Methods , DB_ENV->set_mp_pagesize()
diff --git a/docs-src/api/c/envget_mp_tablesize.md b/docs-src/api/c/envget_mp_tablesize.md
new file mode 100644
index 000000000..0d928bbd0
--- /dev/null
+++ b/docs-src/api/c/envget_mp_tablesize.md
@@ -0,0 +1,29 @@
+---
+title: "DB_ENV->get_mp_tablesize()"
+api-name: "DB_ENV->get_mp_tablesize()"
+source: docs/api_reference/C/envget_mp_tablesize.html
+---
+## DB_ENV-\>get_mp_tablesize()
+
+``` c
+#include
+
+int
+DB_ENV->get_mp_tablesize(DB_ENV *dbenv, u_int32_t *tablesizep);
+```
+
+The `DB_ENV->get_mp_tablesize()` method returns the hash table size in the buffer pool.
+
+### Parameters
+
+#### tablesize
+
+This parameter specifies the hash table size in the buffer pool.
+
+### Class
+
+DB_ENV , DB_MPOOLFILE
+
+### See Also
+
+Memory Pools and Related Methods , DB_ENV->set_mp_tablesize()
diff --git a/docs-src/api/c/envget_msgfile.md b/docs-src/api/c/envget_msgfile.md
new file mode 100644
index 000000000..9b139200d
--- /dev/null
+++ b/docs-src/api/c/envget_msgfile.md
@@ -0,0 +1,31 @@
+---
+title: "DB_ENV->get_msgfile()"
+api-name: "DB_ENV->get_msgfile()"
+source: docs/api_reference/C/envget_msgfile.html
+---
+## DB_ENV-\>get_msgfile()
+
+``` c
+#include
+
+void
+DB_ENV->get_msgfile(DB_ENV *dbenv, FILE **msgfilep);
+```
+
+The `DB_ENV->get_msgfile()` method returns the `FILE *` used for displaying messages. This is set using the DB_ENV->set_msgfile() method.
+
+The `DB_ENV->get_msgfile()` method may be called at any time during the life of the application.
+
+### Parameters
+
+#### msgfilep
+
+The `DB_ENV->get_msgfile()` method returns the FILE \* in **msgfilep**.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods , DB_ENV->set_msgfile()
diff --git a/docs-src/api/c/envget_open_flags.md b/docs-src/api/c/envget_open_flags.md
new file mode 100644
index 000000000..20e94d1cb
--- /dev/null
+++ b/docs-src/api/c/envget_open_flags.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_open_flags()"
+api-name: "DB_ENV->get_open_flags()"
+source: docs/api_reference/C/envget_open_flags.html
+---
+## DB_ENV-\>get_open_flags()
+
+``` c
+#include
+
+int
+DB_ENV->get_open_flags(DB_ENV *dbenv, u_int32_t *flagsp);
+```
+
+The `DB_ENV->get_open_flags()` method returns the open method flags originally used to create the database environment.
+
+The `DB_ENV->get_open_flags()` method may not be called before the `DB_ENV->open()` method is called.
+
+The `DB_ENV->get_open_flags()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flagsp
+
+The `DB_ENV->get_open_flags()` method returns the open method flags originally used to create the database environment in **flagsp**.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods , DB_ENV->open()
diff --git a/docs-src/api/c/envget_shm_key.md b/docs-src/api/c/envget_shm_key.md
new file mode 100644
index 000000000..a39d8f71e
--- /dev/null
+++ b/docs-src/api/c/envget_shm_key.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_shm_key()"
+api-name: "DB_ENV->get_shm_key()"
+source: docs/api_reference/C/envget_shm_key.html
+---
+## DB_ENV-\>get_shm_key()
+
+``` c
+#include
+
+int
+DB_ENV->get_shm_key(DB_ENV *dbenv, long *shm_keyp);
+```
+
+The `DB_ENV->get_shm_key()` method returns the base segment ID. This is used for Berkeley DB environment shared memory regions created in system memory on VxWorks or systems supporting X/Open-style shared memory interfaces. It may be specified using the DB_ENV->set_shm_key() method.
+
+The `DB_ENV->get_shm_key()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_shm_key()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### shm_keyp
+
+The `DB_ENV->get_shm_key()` method returns the base segment ID in **shm_keyp**.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods , DB_ENV->set_shm_key()
diff --git a/docs-src/api/c/envget_thread_count.md b/docs-src/api/c/envget_thread_count.md
new file mode 100644
index 000000000..987bf0baf
--- /dev/null
+++ b/docs-src/api/c/envget_thread_count.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_thread_count()"
+api-name: "DB_ENV->get_thread_count()"
+source: docs/api_reference/C/envget_thread_count.html
+---
+## DB_ENV-\>get_thread_count()
+
+``` c
+#include
+
+int
+DB_ENV->get_thread_count(DB_ENV *dbenv, u_int32_t *countp);
+```
+
+The `DB_ENV->get_thread_count()` method returns the thread count as set by the DB_ENV->set_thread_count() method.
+
+The `DB_ENV->get_thread_count()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_thread_count()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### countp
+
+The `DB_ENV->get_thread_count()` method returns the thread count in **countp**.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods , DB_ENV->set_thread_count()
diff --git a/docs-src/api/c/envget_timeout.md b/docs-src/api/c/envget_timeout.md
new file mode 100644
index 000000000..9bc54f0da
--- /dev/null
+++ b/docs-src/api/c/envget_timeout.md
@@ -0,0 +1,50 @@
+---
+title: "DB_ENV->get_timeout()"
+api-name: "DB_ENV->get_timeout()"
+source: docs/api_reference/C/envget_timeout.html
+---
+## DB_ENV-\>get_timeout()
+
+``` c
+#include
+
+int
+DB_ENV->get_timeout(DB_ENV *dbenv, db_timeout_t *timeoutp,
+ u_int32_t flag);
+```
+
+The `DB_ENV->get_timeout()` method returns a value, in microseconds, representing either lock or transaction timeouts. These values are set using the DB_ENV->set_timeout() method.
+
+The `DB_ENV->get_timeout()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_timeout()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### timeoutp
+
+The **timeoutp** parameter references memory into which the timeout value of the specified **flag** parameter is copied.
+
+#### flag
+
+The **flags** parameter must be set to one of the following values:
+
+- `DB_SET_LOCK_TIMEOUT`
+
+ Return the timeout value for locks in this database environment.
+
+- `DB_SET_REG_TIMEOUT`
+
+ Return the timeout value for how long to wait for processes to exit the environment before recovery is started. This flag only has meaning when the DB_ENV->open() method was called with the DB_REGISTER flag and recovery must be performed.
+
+- `DB_SET_TXN_TIMEOUT`
+
+ Return the timeout value for transactions in this database environment.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods , DB_ENV->set_timeout()
diff --git a/docs-src/api/c/envget_tmp_dir.md b/docs-src/api/c/envget_tmp_dir.md
new file mode 100644
index 000000000..4d44b6a5d
--- /dev/null
+++ b/docs-src/api/c/envget_tmp_dir.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_tmp_dir()"
+api-name: "DB_ENV->get_tmp_dir()"
+source: docs/api_reference/C/envget_tmp_dir.html
+---
+## DB_ENV-\>get_tmp_dir()
+
+``` c
+#include
+
+int
+DB_ENV->get_tmp_dir(DB_ENV *dbenv, const char **dirp);
+```
+
+The `DB_ENV->get_tmp_dir()` method returns the database environment temporary file directory.
+
+The `DB_ENV->get_tmp_dir()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_tmp_dir()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dirp
+
+The `DB_ENV->get_tmp_dir()` method returns a reference to the database environment temporary file directory in **dirp**.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods , DB_ENV->set_tmp_dir()
diff --git a/docs-src/api/c/envget_tx_max.md b/docs-src/api/c/envget_tx_max.md
new file mode 100644
index 000000000..6e373da41
--- /dev/null
+++ b/docs-src/api/c/envget_tx_max.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_tx_max()"
+api-name: "DB_ENV->get_tx_max()"
+source: docs/api_reference/C/envget_tx_max.html
+---
+## DB_ENV-\>get_tx_max()
+
+``` c
+#include
+
+int
+DB_ENV->get_tx_max(DB_ENV *dbenv, u_int32_t *tx_maxp);
+```
+
+The `DB_ENV->get_tx_max()` method returns the maximum number of active transactions currently configured for the environment. You can manage this value using the DB_ENV->set_tx_max() method.
+
+The `DB_ENV->get_tx_max()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_tx_max()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### tx_maxp
+
+The `DB_ENV->get_tx_max()` method returns the number of active transactions in **tx_maxp**.
+
+### Class
+
+DB_ENV , DB_TXN
+
+### See Also
+
+Transaction Subsystem and Related Methods , DB_ENV->set_tx_max()
diff --git a/docs-src/api/c/envget_tx_timestamp.md b/docs-src/api/c/envget_tx_timestamp.md
new file mode 100644
index 000000000..f4692b3db
--- /dev/null
+++ b/docs-src/api/c/envget_tx_timestamp.md
@@ -0,0 +1,33 @@
+---
+title: "DB_ENV->get_tx_timestamp()"
+api-name: "DB_ENV->get_tx_timestamp()"
+source: docs/api_reference/C/envget_tx_timestamp.html
+---
+## DB_ENV-\>get_tx_timestamp()
+
+``` c
+#include
+
+int
+DB_ENV->get_tx_timestamp(DB_ENV *dbenv, time_t *timestampp);
+```
+
+The `DB_ENV->get_tx_timestamp()` method returns the recovery timestamp. This value can be modified using the DB_ENV->set_tx_timestamp() method.
+
+The `DB_ENV->get_tx_timestamp()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_tx_timestamp()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### timestampp
+
+The `DB_ENV->get_tx_timestamp()` method returns the recovery timestamp in **timestampp**.
+
+### Class
+
+DB_ENV , DB_TXN
+
+### See Also
+
+Transaction Subsystem and Related Methods , DB_ENV->set_tx_timestamp()
diff --git a/docs-src/api/c/envget_verbose.md b/docs-src/api/c/envget_verbose.md
new file mode 100644
index 000000000..2f0677c27
--- /dev/null
+++ b/docs-src/api/c/envget_verbose.md
@@ -0,0 +1,97 @@
+---
+title: "DB_ENV->get_verbose()"
+api-name: "DB_ENV->get_verbose()"
+source: docs/api_reference/C/envget_verbose.html
+---
+## DB_ENV-\>get_verbose()
+
+``` c
+#include
+
+int
+DB_ENV->get_verbose(DB_ENV *dbenv, u_int32_t which, int *onoffp);
+```
+
+The `DB_ENV->get_verbose()` method returns whether the specified **which** parameter is currently set or not. These parameters are set using the DB_ENV->set_verbose() method.
+
+The `DB_ENV->get_verbose()` method may be called at any time during the life of the application.
+
+The `DB_ENV->get_verbose()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### which
+
+The **which** parameter is the message value for which configuration is being checked. Must be set to one of the following values:
+
+- `DB_VERB_DEADLOCK`
+
+ Display additional information when doing deadlock detection.
+
+- `DB_VERB_FILEOPS`
+
+ Display additional information when performing filesystem operations such as open, close or rename. May not be available on all platforms.
+
+- `DB_VERB_FILEOPS_ALL`
+
+ Display additional information when performing all filesystem operations, including read and write. May not be available on all platforms.
+
+- `DB_VERB_RECOVERY`
+
+ Display additional information when performing recovery.
+
+- `DB_VERB_REGISTER`
+
+ Display additional information concerning support for the DB_REGISTER flag to the DB_ENV->open() method.
+
+- `DB_VERB_REPLICATION`
+
+ Display all detailed information about replication. This includes the information displayed by all of the other DB_VERB_REP\_\* and DB_VERB_REPMGR\_\* values.
+
+- `DB_VERB_REP_ELECT`
+
+ Display detailed information about replication elections.
+
+- `DB_VERB_REP_LEASE`
+
+ Display detailed information about replication master leases.
+
+- `DB_VERB_REP_MISC`
+
+ Display detailed information about general replication processing not covered by the other DB_VERB_REP\_\* values.
+
+- `DB_VERB_REP_MSGS`
+
+ Display detailed information about replication message processing.
+
+- `DB_VERB_REP_SYNC`
+
+ Display detailed information about replication client synchronization.
+
+- `DB_VERB_REP_SYSTEM`
+
+ Saves replication system information to a system-owned file. This value is on by default.
+
+- `DB_VERB_REPMGR_CONNFAIL`
+
+ Display detailed information about Replication Manager connection failures.
+
+- `DB_VERB_REPMGR_MISC`
+
+ Display detailed information about general Replication Manager processing.
+
+- `DB_VERB_WAITSFOR`
+
+ Display the waits-for table when doing deadlock detection.
+
+#### onoffp
+
+The **onoffp** parameter references memory into which the configuration of the specified **which** parameter is copied.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envlog_get_config.md b/docs-src/api/c/envlog_get_config.md
new file mode 100644
index 000000000..01a3b243d
--- /dev/null
+++ b/docs-src/api/c/envlog_get_config.md
@@ -0,0 +1,59 @@
+---
+title: "DB_ENV->log_get_config()"
+api-name: "DB_ENV->log_get_config()"
+source: docs/api_reference/C/envlog_get_config.html
+---
+## DB_ENV-\>log_get_config()
+
+``` c
+#include
+
+int
+DB_ENV->log_get_config(DB_ENV *dbenv, u_int32_t which, int *onoffp);
+```
+
+The `DB_ENV->log_get_config()` method returns whether the specified **which** parameter is currently set or not. You can manage this value using the DB_ENV->log_set_config() method.
+
+The `DB_ENV->log_get_config()` method may be called at any time during the life of the application.
+
+The `DB_ENV->log_get_config()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### which
+
+The **which** parameter is the message value for which configuration is being checked. Must be set to one of the following values:
+
+- `DB_LOG_DIRECT`
+
+ System buffering is turned off for Berkeley DB log files to avoid double caching.
+
+- `DB_LOG_DSYNC`
+
+ Berkeley DB is configured to flush log writes to the backing disk before returning from the write system call, rather than flushing log writes explicitly in a separate system call, as necessary.
+
+- `DB_LOG_AUTO_REMOVE`
+
+ Berkeley DB automatically removes log files that are no longer needed.
+
+- `DB_LOG_IN_MEMORY`
+
+ Transaction logs are maintained in memory rather than on disk. This means that transactions exhibit the ACI (atomicity, consistency, and isolation) properties, but not D (durability).
+
+- `DB_LOG_ZERO`
+
+ All pages of a log file are zeroed when that log file is created.
+
+#### onoffp
+
+The **onoffp** parameter references memory into which the configuration of the specified **which** parameter is copied.
+
+If the returned **onoff** value is zero, the parameter is off; otherwise, on.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Logging Subsystem and Related Methods , DB_ENV->log_set_config()
diff --git a/docs-src/api/c/envlog_set_config.md b/docs-src/api/c/envlog_set_config.md
new file mode 100644
index 000000000..8810131c0
--- /dev/null
+++ b/docs-src/api/c/envlog_set_config.md
@@ -0,0 +1,95 @@
+---
+title: "DB_ENV->log_set_config()"
+api-name: "DB_ENV->log_set_config()"
+source: docs/api_reference/C/envlog_set_config.html
+---
+## DB_ENV-\>log_set_config()
+
+``` c
+#include
+
+int
+DB_ENV->log_set_config(DB_ENV *dbenv, u_int32_t flags, int onoff);
+```
+
+The `DB_ENV->log_set_config()` method configures the Berkeley DB logging subsystem.
+
+The `DB_ENV->log_set_config()` method configures a database environment, not only operations performed using the specified DB_ENV handle.
+
+The `DB_ENV->log_set_config()` method may be called at any time during the life of the application.
+
+The `DB_ENV->log_set_config()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### flags
+
+The **flags** parameter must be set by bitwise inclusively **OR**'ing together one or more of the following values:
+
+- `DB_LOG_DIRECT`
+
+ Turn off system buffering of Berkeley DB log files to avoid double caching.
+
+ Calling `DB_ENV->log_set_config()` with the DB_LOG_DIRECT flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_LOG_DIRECT flag or the flag should be specified in the DB_CONFIG configuration file.
+
+ The `DB_LOG_DIRECT` flag may be used to configure Berkeley DB at any time during the life of the application.
+
+- `DB_LOG_DSYNC`
+
+ Configure Berkeley DB to flush log writes to the backing disk before returning from the write system call, rather than flushing log writes explicitly in a separate system call, as necessary. This is only available on some systems (for example, systems supporting the IEEE/ANSI Std 1003.1 (POSIX) standard O_DSYNC flag, or systems supporting the Windows FILE_FLAG_WRITE_THROUGH flag). This flag may result in inaccurate file modification times and other file-level information for Berkeley DB log files. This flag may offer a performance increase on some systems and a performance decrease on others.
+
+ Calling `DB_ENV->log_set_config()` with the DB_LOG_DSYNC flag only affects the specified DB_ENV handle (and any other Berkeley DB handles opened within the scope of that handle). For consistent behavior across the environment, all DB_ENV handles opened in the environment must either set the DB_LOG_DSYNC flag or the flag should be specified in the DB_CONFIG configuration file.
+
+ The `DB_LOG_DSYNC` flag may be used to configure Berkeley DB at any time during the life of the application.
+
+- `DB_LOG_AUTO_REMOVE`
+
+ If set, Berkeley DB will automatically remove log files that are no longer needed.
+
+ Automatic log file removal is likely to make catastrophic recovery impossible.
+
+ Replication Manager applications operate in a group-aware manner for log file removal, and automatic log file removal simplifies the application.
+
+ Replication Base API applications will rarely want to configure automatic log file removal as it increases the likelihood a master will be unable to satisfy a client's request for a recent log record.
+
+ Calling `DB_ENV->log_set_config()` with the `DB_LOG_AUTO_REMOVE` flag affects the database environment, including all threads of control accessing the database environment.
+
+ The `DB_LOG_AUTO_REMOVE` flag may be used to configure Berkeley DB at any time during the life of the application.
+
+- `DB_LOG_IN_MEMORY`
+
+ If set, maintain transaction logs in memory rather than on disk. This means that transactions exhibit the ACI (atomicity, consistency, and isolation) properties, but not D (durability); that is, database integrity will be maintained, but if the application or system fails, integrity will not persist. All database files must be verified and/or restored from a replication group master or archival backup after application or system failure.
+
+ When in-memory logs are configured and no more log buffer space is available, Berkeley DB methods may return an additional error value, `DB_LOG_BUFFER_FULL`. When choosing log buffer and file sizes for in-memory logs, applications should ensure the in-memory log buffer size is large enough that no transaction will ever span the entire buffer, and avoid a state where the in-memory buffer is full and no space can be freed because a transaction that started in the first log "file" is still active.
+
+ Calling `DB_ENV->log_set_config()` with the `DB_LOG_IN_MEMORY` flag affects the database environment, including all threads of control accessing the database environment.
+
+ The `DB_LOG_IN_MEMORY` flag may be used to configure Berkeley DB only before the DB_ENV->open() method is called.
+
+- `DB_LOG_ZERO`
+
+ If set, zero all pages of a log file when that log file is created. This has shown to provide greater transaction throughput in some environments. The log file will be zeroed by the thread which needs to re-create the new log file. Other threads may not write to the log file while this is happening.
+
+ Calling `DB_ENV->log_set_config()` with the `DB_LOG_ZERO` flag affects only the current environment handle.
+
+ The `DB_LOG_ZERO` flag may be used to configure Berkeley DB at any time.
+
+#### onoff
+
+If the **onoff** parameter is zero, the specified flags are cleared; otherwise they are set.
+
+### Errors
+
+The `DB_ENV->log_set_config()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Logging Subsystem and Related Methods
diff --git a/docs-src/api/c/envlog_verify.md b/docs-src/api/c/envlog_verify.md
new file mode 100644
index 000000000..daddfee22
--- /dev/null
+++ b/docs-src/api/c/envlog_verify.md
@@ -0,0 +1,94 @@
+---
+title: "DB_ENV->log_verify()"
+api-name: "DB_ENV->log_verify()"
+source: docs/api_reference/C/envlog_verify.html
+---
+## DB_ENV-\>log_verify()
+
+``` c
+#include
+int
+DB_ENV->log_verify(DB_ENV *dbenv, const DB_LOG_VERIFY_CONFIG *config);
+
+```
+
+The `DB_ENV->log_verify()` method verifies the integrity of the log records of an environment and writes both error and normal messages to the error/message output facility of the database environment handle.
+
+The `DB_ENV->log_verify()` method does not perform the locking function, even in Berkeley DB environments that are configured with a locking subsystem. Because this function does not access any database files, you can call it even when the environment has other threads of control attached and running.
+
+The `DB_ENV->log_verify()` method is the underlying method used by the `DB_ENV-> db_log_verify` utility. See the `DB_ENV-> db_log_verify` utility source code for an example of using `DB_ENV->log_verify()` in a IEEE/ANSI Std 1003.1 (POSIX) environment.
+
+The `DB_ENV->log_verify()` method returns DB_LOG_VERIFY_BAD when either log errors are detected or the internal data storage layer does not work. It returns EINVAL if you specify wrong configurations. Unless otherwise specified, the `DB_ENV->log_verify()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### config
+
+The configuration parameter of type DB_LOG_VERIFY_CONFIG is for the verification of log files. A struct variable of this type must be memset to 0 before setting any configurations to it.
+
+### DB_LOG_VERIFY_CONFIG members
+
+``` c
+struct __db_logvrfy_config {
+int continue_after_fail, verbose;
+u_int32_t cachesize;
+const char *temp_envhome;
+const char *dbfile, *dbname;
+DB_LSN start_lsn, end_lsn;
+time_t start_time, end_time;
+};
+```
+
+#### continue_after_fail
+
+The **continue_after_fail** parameter specifies whether or not continue the verification process when an error in the log is detected.
+
+#### verbose
+
+The **verbose** parameter specifies whether or not to display verbose output during the verification process.
+
+#### cachesize
+
+The **cachesize** parameter specifies the size of the cache of the temporary internal environment in bytes.
+
+#### temp_envhome
+
+The **temp_envhome** parameter is the home directory of the temporary database environment that is used internally during the verification. It can be NULL, meaning the environment and all databases are in-memory.
+
+#### dbfile
+
+The **dbfile** parameter specifies that for log records involving a database file, only those related to this database file are verified. Log records not involving database files are verified regardless of this parameter.
+
+#### dbname
+
+The **dbname** parameter specifies that for log records involving a database file, only those related to this database file are verified. Log records not involving database files are verified regardless of this parameter.
+
+#### start_lsn and end_lsn
+
+The **start_lsn** and **end_lsn** parameters specify the range of log records from the entire log set, that must be verified. Either of them can be \[0\]\[0\], to specify an open ended range. If both of them are \[0\]\[0\] (by default) the entire log is verified.
+
+#### start_time and end_time
+
+The **start_time** and **end_time** parameters specify range of log records from the entire log set that must be verified for a time range. Either of them can be 0, to specify an open ended range. If both of them are 0 (by default), the entire log is verified.
+
+Note that the time range specified is not precise, because such a time range is converted to an lsn range based on the time points we know from transaction commits and checkpoints.
+
+You can specify either an lsn range or a time range. You can neither specify both nor specify an lsn and a time as a range.
+
+### Environment Variables
+
+If the database is opened within a database environment, the environment variable `DB_HOME` can be used as the path of the database environment home.
+
+### Errors
+
+The `DB_ENV->log_verify()` method may fail and return one of the following non-zero errors:
+
+EINVAL or DB_LOG_VERIFY_BAD.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envlsn_reset.md b/docs-src/api/c/envlsn_reset.md
new file mode 100644
index 000000000..352388ec3
--- /dev/null
+++ b/docs-src/api/c/envlsn_reset.md
@@ -0,0 +1,55 @@
+---
+title: "DB_ENV->lsn_reset()"
+api-name: "DB_ENV->lsn_reset()"
+source: docs/api_reference/C/envlsn_reset.html
+---
+## DB_ENV-\>lsn_reset()
+
+``` c
+#include
+
+int
+DB_ENV->lsn_reset(DB_ENV *dbenv, const char *file, u_int32_t flags);
+```
+
+The `DB_ENV->lsn_reset()` method allows database files to be moved from one transactional database environment to another.
+
+Database pages in transactional database environments contain references to the environment's log files (that is, log sequence numbers, or LSNs). Copying or moving a database file from one database environment to another, and then modifying it, can result in data corruption if the LSNs are not first cleared.
+
+Note that LSNs should be reset before moving or copying the database file into a new database environment, rather than moving or copying the database file and then resetting the LSNs. Berkeley DB has consistency checks that may be triggered if an application calls `DB_ENV->lsn_reset()` on a database in a new environment when the database LSNs still reflect the old environment.
+
+The `DB_ENV->lsn_reset()` method modifies the physical file, in-place. Applications should not reset LSNs in files that are currently in use.
+
+The `DB_ENV->lsn_reset()` method may be called at any time during the life of the application.
+
+The `DB_ENV->lsn_reset()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### file
+
+The name of the physical file in which the LSNs are to be cleared.
+
+#### flags
+
+The **flags** parameter must be set to 0 or the following value:
+
+- `DB_ENCRYPT`
+
+ The file contains encrypted databases.
+
+### Errors
+
+The `DB_ENV->lsn_reset()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envopen.md b/docs-src/api/c/envopen.md
new file mode 100644
index 000000000..db558376a
--- /dev/null
+++ b/docs-src/api/c/envopen.md
@@ -0,0 +1,175 @@
+---
+title: "DB_ENV->open()"
+api-name: "DB_ENV->open()"
+source: docs/api_reference/C/envopen.html
+---
+## DB_ENV-\>open()
+
+``` c
+#include
+
+int
+DB_ENV->open(DB_ENV *dbenv, char *db_home, u_int32_t flags, int mode);
+```
+
+The `DB_ENV->open()` method opens a Berkeley DB environment. It provides a structure for creating a consistent environment for processes using one or more of the features of Berkeley DB.
+
+The `DB_ENV->open()` method method returns a non-zero error value on failure and 0 on success. If `DB_ENV->open()` fails, the DB_ENV->close() method must be called to discard the DB_ENV handle.
+
+### Warning
+
+Using environments with some journaling filesystems might result in log file corruption. This can occur if the operating system experiences an unclean shutdown when a log file is being created. Please see Using Recovery on Journaling Filesystems in the *Berkeley DB Programmer's Reference Guide* for more information.
+
+### Parameters
+
+#### db_home
+
+The **db_home** parameter is the database environment's home directory. For more information on **db_home**, and filename resolution in general, see Berkeley DB File Naming . The environment variable **DB_HOME** may be used as the path of the database home, as described in Berkeley DB File Naming .
+
+When using a Unicode build on Windows (the default), the **db_home** argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters.
+
+#### flags
+
+The **flags** parameter specifies the subsystems that are initialized and how the application's environment affects Berkeley DB file naming, among other things. The **flags** parameter must be set to 0 or by bitwise inclusively **OR**'ing together one or more of the values described in this section.
+
+Because there are a large number of flags that can be specified, they have been grouped together by functionality. The first group of flags indicates which of the Berkeley DB subsystems should be initialized.
+
+The choice of subsystems initialized for a Berkeley DB database environment is specified by the thread of control initially creating the environment. Any subsequent thread of control joining the environment will automatically be configured to use the same subsystems as were created in the environment (unless the thread of control requests a subsystem not available in the environment, which will fail). Applications joining an environment, able to adapt to whatever subsystems have been configured in the environment, should open the environment without specifying any subsystem flags. Applications joining an environment, requiring specific subsystems from their environments, should open the environment specifying those specific subsystem flags.
+
+- `DB_INIT_CDB`
+
+ Initialize locking for the Berkeley DB Concurrent Data Store product. In this mode, Berkeley DB provides multiple reader/single writer access. The only other subsystem that should be specified with the `DB_INIT_CDB` flag is `DB_INIT_MPOOL`.
+
+- `DB_INIT_LOCK`
+
+ Initialize the locking subsystem. This subsystem should be used when multiple processes or threads are going to be reading and writing a Berkeley DB database, so that they do not interfere with each other. If all threads are accessing the database(s) read-only, locking is unnecessary. When the DB_INIT_LOCK flag is specified, it is usually necessary to run a deadlock detector, as well. See db_deadlock and DB_ENV->lock_detect() for more information.
+
+- `DB_INIT_LOG`
+
+ Initialize the logging subsystem. This subsystem should be used when recovery from application or system failure is necessary. If the log region is being created and log files are already present, the log files are reviewed; subsequent log writes are appended to the end of the log, rather than overwriting current log entries.
+
+- `DB_INIT_MPOOL`
+
+ Initialize the shared memory buffer pool subsystem. This subsystem should be used whenever an application is using any Berkeley DB access method.
+
+- `DB_INIT_REP`
+
+ Initialize the replication subsystem. This subsystem should be used whenever an application plans on using replication. The `DB_INIT_REP` flag requires the `DB_INIT_TXN` and `DB_INIT_LOCK` flags also be configured.
+
+ You can also specify this flag in the DB_CONFIG configuration file. The syntax is a single line with the string "set_open_flags", one or more whitespace characters, the string "DB_INIT_REP", optionally one or more whitespace characters and the string "on" or "off". If the optional string is omitted, the default is "on"; for example, "set_open_flags DB_INIT_REP" or "set_open_flags DB_INIT_REP on". Because the DB_CONFIG file is read when the database environment is opened, it will silently overrule configuration done before that time.
+
+- `DB_INIT_TXN`
+
+ Initialize the transaction subsystem. This subsystem should be used when recovery and atomicity of multiple operations are important. The `DB_INIT_TXN` flag implies the `DB_INIT_LOG` flag.
+
+The second group of flags govern what recovery, if any, is performed when the environment is initialized:
+
+- `DB_RECOVER`
+
+ Run normal recovery on this environment before opening it for normal use. If this flag is set, the `DB_CREATE` and `DB_INIT_TXN` flags must also be set, because the regions will be removed and re-created, and transactions are required for application recovery.
+
+- `DB_RECOVER_FATAL`
+
+ Run catastrophic recovery on this environment before opening it for normal use. If this flag is set, the `DB_CREATE` and `DB_INIT_TXN` flags must also be set, because the regions will be removed and re-created, and transactions are required for application recovery.
+
+A standard part of the recovery process is to remove the existing Berkeley DB environment and create a new one in which to perform recovery. If the thread of control performing recovery does not specify the correct region initialization information (for example, the correct memory pool cache size), the result can be an application running in an environment with incorrect cache and other subsystem sizes. For this reason, the thread of control performing recovery should specify correct configuration information before calling the `DB_ENV->open()` method; or it should remove the environment after recovery is completed, leaving creation of the correctly sized environment to a subsequent call to the `DB_ENV->open()` method.
+
+All Berkeley DB recovery processing must be single-threaded; that is, only a single thread of control may perform recovery or access a Berkeley DB environment while recovery is being performed. Because it is not an error to specify `DB_RECOVER` for an environment for which no recovery is required, it is reasonable programming practice for the thread of control responsible for performing recovery and creating the environment to always specify the `DB_CREATE` and `DB_RECOVER` flags during startup.
+
+The third group of flags govern file-naming extensions in the environment:
+
+- `DB_USE_ENVIRON`
+
+ The Berkeley DB process' environment may be permitted to specify information to be used when naming files; see Berkeley DB File Naming . Because permitting users to specify which files are used can create security problems, environment information will be used in file naming for all users only if the `DB_USE_ENVIRON` flag is set.
+
+- `DB_USE_ENVIRON_ROOT`
+
+ The Berkeley DB process' environment may be permitted to specify information to be used when naming files; see Berkeley DB File Naming . Because permitting users to specify which files are used can create security problems, if the `DB_USE_ENVIRON_ROOT` flag is set, environment information will be used in file naming only for users with appropriate permissions (for example, users with a user-ID of 0 on `UNIX` systems).
+
+Finally, there are a few additional unrelated flags:
+
+- `DB_CREATE`
+
+ Cause Berkeley DB subsystems to create any underlying files, as necessary.
+
+- `DB_LOCKDOWN`
+
+ Lock shared Berkeley DB environment files and memory-mapped databases into memory.
+
+- `DB_FAILCHK`
+
+ Internally call the DB_ENV->failchk() method as part of opening the environment. When `DB_FAILCHK` is specified, a check is made to ensure all `DB_ENV->failchk()` prerequisites are meet.
+
+ If the `DB_FAILCHK` flag is used in conjunction with the `DB_REGISTER` flag, then a check will be made to see if the environment needs recovery. If recovery is needed, a call will be made to the `DB_ENV->failchk()` method to release any database reads locks held by the thread of control that exited and, if needed, to abort the unresolved transaction. If `DB_ENV->failchk()` determines environment recovery is still required, the recovery actions for `DB_REGISTER` will be followed.
+
+ If the `DB_FAILCHK` flag is not used in conjunction with the `DB_REGISTER` flag, then make an internal call to `DB_ENV->failchk()` as the last step of opening the environment. If `DB_ENV->failchk()` determines database environment recovery is required, DB_RUNRECOVERY will be returned.
+
+- `DB_PRIVATE`
+
+ Allocate region memory from the heap instead of from memory backed by the filesystem or system shared memory.
+
+ ### Note
+
+ Use of this flag means that the environment can only be accessed by one environment handle. The environment cannot be accessed by multiple processes. This is true even if one of those processes is one of the the Berkeley DB utilities. (For example, db_archive , db_checkpoint or db_stat .) Nor can a single process open multiple handles to the environment.
+
+ This flag has two effects on the Berkeley DB environment. First, all underlying data structures are allocated from per-process memory instead of from shared memory that is accessible to more than a single process. Second, mutexes are only configured to work between threads.
+
+ See Shared Memory Regions for more information.
+
+ You can also specify this flag in the DB_CONFIG configuration file. The syntax is a single line with the string "set_open_flags", one or more whitespace characters, the string "DB_PRIVATE", optionally one or more whitespace characters and the string "on" or "off". If the optional string is omitted, the default is "on"; for example, "set_open_flags DB_PRIVATE" or "set_open_flags DB_PRIVATE on". Because the DB_CONFIG file is read when the database environment is opened, it will silently overrule configuration done before that time.
+
+- `DB_REGISTER`
+
+ Check to see if recovery needs to be performed before opening the database environment. (For this check to be accurate, all processes using the environment must specify `DB_REGISTER` when opening the environment.) If recovery needs to be performed for any reason (including the initial use of the `DB_REGISTER` flag), and `DB_RECOVER` is also specified, recovery will be performed and the open will proceed normally. If recovery needs to be performed and `DB_RECOVER` is not specified, DB_RUNRECOVERY will be returned. If recovery does not need to be performed, the `DB_RECOVER` flag will be ignored. See Architecting Transactional Data Store applications for more information.
+
+- `DB_SYSTEM_MEM`
+
+ Allocate region memory from system shared memory instead of from heap memory or memory backed by the filesystem.
+
+ See Shared Memory Regions for more information.
+
+- `DB_THREAD`
+
+ Cause the DB_ENV handle returned by `DB_ENV->open()` to be *free-threaded;* that is, concurrently usable by multiple threads in the address space. The `DB_THREAD ` flag should be specified if the DB_ENV handle will be concurrently used by more than one thread in the process, or if any DB handles opened in the scope of the DB_ENV handle will be concurrently used by more than one thread in the process.
+
+ This flag is required when using the Replication Manager.
+
+ You can also specify this flag in the DB_CONFIG configuration file. The syntax is a single line with the string "set_open_flags", one or more whitespace characters, the string "DB_THREAD", optionally one or more whitespace characters and the string "on" or "off". If the optional string is omitted, the default is "on"; for example, "set_open_flags DB_THREAD" or "set_open_flags DB_THREAD on". Because the DB_CONFIG file is read when the database environment is opened, it will silently overrule configuration done before that time.
+
+#### mode
+
+On Windows systems, the mode parameter is ignored.
+
+On UNIX systems or in IEEE/ANSI Std 1003.1 (POSIX) environments, files created by Berkeley DB are created with mode **mode** (as described in **chmod**(2)) and modified by the process' umask value at the time of creation (see **umask**(2)). Created files are owned by the process owner; the group ownership of created files is based on the system and directory defaults, and is not further specified by Berkeley DB. System shared memory segments created by Berkeley DB are created with mode **mode**, unmodified by the process' umask value. If **mode** is 0, Berkeley DB will use a default mode of readable and writable by both owner and group.
+
+### Errors
+
+The `DB_ENV->open()` method may fail and return one of the following non-zero errors:
+
+#### DB_RUNRECOVERY
+
+Either the `DB_REGISTER` flag was specified, a failure occurred, and no recovery flag was specified, or the `DB_FAILCHK` flag was specified and recovery was deemed necessary.
+
+#### DB_VERSION_MISMATCH
+
+The version of the Berkeley DB library doesn't match the version that created the database environment.
+
+#### EAGAIN
+
+The shared memory region was locked and (repeatedly) unavailable.
+
+#### EINVAL
+
+If the `DB_THREAD` flag was specified and fast mutexes are not available for this architecture; The `DB_HOME` or `TMPDIR` environment variables were set, but empty; An incorrectly formatted **NAME VALUE** entry or line was found; or if an invalid flag value or parameter was specified.
+
+#### ENOENT
+
+The file or directory does not exist.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envremove.md b/docs-src/api/c/envremove.md
new file mode 100644
index 000000000..0b0bf2762
--- /dev/null
+++ b/docs-src/api/c/envremove.md
@@ -0,0 +1,69 @@
+---
+title: "DB_ENV->remove()"
+api-name: "DB_ENV->remove()"
+source: docs/api_reference/C/envremove.html
+---
+## DB_ENV-\>remove()
+
+``` c
+#include
+
+int
+DB_ENV->remove(DB_ENV *dbenv, char *db_home, u_int32_t flags);
+```
+
+The `DB_ENV->remove()` method destroys a Berkeley DB environment if it is not currently in use. The environment regions, including any backing files, are removed. Any log or database files and the environment directory are not removed.
+
+If there are processes that have called DB_ENV->open() without calling DB_ENV->close() (that is, there are processes currently using the environment), `DB_ENV->remove()` will fail without further action unless the DB_FORCE flag is set, in which case `DB_ENV->remove()` will attempt to remove the environment, regardless of any processes still using it.
+
+The result of attempting to forcibly destroy the environment when it is in use is unspecified. Processes using an environment often maintain open file descriptors for shared regions within it. On UNIX systems, the environment removal will usually succeed, and processes that have already joined the region will continue to run in that region without change. However, processes attempting to join the environment will either fail or create new regions. On other systems in which the **unlink**(2) system call will fail if any process has an open file descriptor for the file (for example Windows/NT), the region removal will fail.
+
+Calling `DB_ENV->remove()` should not be necessary for most applications because the Berkeley DB environment is cleaned up as part of normal database recovery procedures. However, applications may want to call `DB_ENV->remove()` as part of application shut down to free up system resources. For example, if the DB_SYSTEM_MEM flag was specified to DB_ENV->open() , it may be useful to call `DB_ENV->remove()` in order to release system shared memory segments that have been allocated. Or, on architectures in which mutexes require allocation of underlying system resources, it may be useful to call `DB_ENV->remove()` in order to release those resources. Alternatively, if recovery is not required because no database state is maintained across failures, and no system resources need to be released, it is possible to clean up an environment by simply removing all the Berkeley DB files in the database environment's directories.
+
+In multithreaded applications, only a single thread may call the `DB_ENV->remove()` method.
+
+A DB_ENV handle that has already been used to open an environment should not be used to call the `DB_ENV->remove()` method; a new DB_ENV handle should be created for that purpose.
+
+After `DB_ENV->remove()` has been called, regardless of its return, the Berkeley DB environment handle may not be accessed again.
+
+The `DB_ENV->remove()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### db_home
+
+The **db_home** parameter names the database environment to be removed.
+
+When using a Unicode build on Windows (the default), the **db_home** argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters.
+
+#### flags
+
+The **flags** parameter must be set to 0 or by bitwise inclusively **OR**'ing together one or more of the following values:
+
+- `DB_FORCE`
+
+ If set, the environment is removed, regardless of any processes that may still using it, and no locks are acquired during this process. (Generally, this flag is specified only when applications were unable to shut down cleanly, and there is a risk that an application may have died holding a Berkeley DB lock.)
+
+- `DB_USE_ENVIRON`
+
+ The Berkeley DB process' environment may be permitted to specify information to be used when naming files; see Berkeley DB File Naming . Because permitting users to specify which files are used can create security problems, environment information will be used in file naming for all users only if the `DB_USE_ENVIRON` flag is set.
+
+- `DB_USE_ENVIRON_ROOT`
+
+ The Berkeley DB process' environment may be permitted to specify information to be used when naming files; see Berkeley DB File Naming . Because permitting users to specify which files are used can create security problems, if the `DB_USE_ENVIRON_ROOT` flag is set, environment information will be used in file naming only for users with appropriate permissions (for example, users with a user-ID of 0 on `UNIX` systems).
+
+### Errors
+
+The `DB_ENV->remove()` method may fail and return one of the following non-zero errors:
+
+#### EBUSY
+
+The shared memory region was in use and the force flag was not set.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envset_alloc.md b/docs-src/api/c/envset_alloc.md
new file mode 100644
index 000000000..1b0f87c50
--- /dev/null
+++ b/docs-src/api/c/envset_alloc.md
@@ -0,0 +1,60 @@
+---
+title: "DB_ENV->set_alloc()"
+api-name: "DB_ENV->set_alloc()"
+source: docs/api_reference/C/envset_alloc.html
+---
+## DB_ENV-\>set_alloc()
+
+``` c
+#include
+
+int
+DB_ENV->set_alloc(DB_ENV *dbenv,
+ void *(*app_malloc)(size_t),
+ void *(*app_realloc)(void *, size_t),
+ void (*app_free)(void *));
+```
+
+Set the allocation functions used by the DB_ENV and DB methods to allocate or free memory owned by the application.
+
+There are a number of interfaces in Berkeley DB where memory is allocated by the library and then given to the application. For example, the DB_DBT_MALLOC flag, when specified in the DBT object, will cause the DB methods to allocate and reallocate memory which then becomes the responsibility of the calling application. Other examples are the Berkeley DB interfaces which return statistical information to the application: DB->stat() , DB_ENV->lock_stat() , DB_ENV->log_archive() , DB_ENV->log_stat() , DB_ENV->memp_stat() , and DB_ENV->txn_stat() . There is one method in Berkeley DB where memory is allocated by the application and then given to the library: the callback specified to DB->associate() .
+
+On systems in which there may be multiple library versions of the standard allocation routines (notably Windows NT), transferring memory between the library and the application will fail because the Berkeley DB library allocates memory from a different heap than the application uses to free it. To avoid this problem, the `DB_ENV->set_alloc()` and DB->set_alloc() methods can be used to pass Berkeley DB references to the application's allocation routines.
+
+It is not an error to specify only one or two of the possible allocation function parameters to these interfaces; however, in that case the specified interfaces must be compatible with the standard library interfaces, as they will be used together. The functions specified must match the calling conventions of the ANSI C X3.159-1989 (ANSI C) library routines of the same name.
+
+The `DB_ENV->set_alloc()` method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.
+
+The `DB_ENV->set_alloc()` method may not be called after the DB_ENV->open() method is called.
+
+The `DB_ENV->set_alloc()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### app_malloc
+
+The **app_malloc** parameter is the application-specified malloc function.
+
+#### app_realloc
+
+The **app_realloc** parameter is the application-specified realloc function.
+
+#### app_free
+
+The **app_free** parameter is the application-specified free function.
+
+### Errors
+
+The `DB_ENV->set_alloc()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB_ENV->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envset_app_dispatch.md b/docs-src/api/c/envset_app_dispatch.md
new file mode 100644
index 000000000..b8d22cc79
--- /dev/null
+++ b/docs-src/api/c/envset_app_dispatch.md
@@ -0,0 +1,85 @@
+---
+title: "DB_ENV->set_app_dispatch()"
+api-name: "DB_ENV->set_app_dispatch()"
+source: docs/api_reference/C/envset_app_dispatch.html
+---
+## DB_ENV-\>set_app_dispatch()
+
+``` c
+#include
+
+int
+DB_ENV->set_app_dispatch(DB_ENV *dbenv,
+ int (*tx_recover)(DB_ENV *dbenv,
+ DBT *log_rec, DB_LSN *lsn, db_recops op));
+```
+
+Declare a function to be called during transaction abort and recovery to process application-specific log records.
+
+The `DB_ENV->set_app_dispatch()` method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.
+
+The `DB_ENV->set_app_dispatch()` method may not be called after the DB_ENV->open() method is called. If the database environment already exists when DB_ENV->open() is called, the information specified to `DB_ENV->set_app_dispatch()` must be consistent with the existing environment or corruption can occur.
+
+The `DB_ENV->set_app_dispatch()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### tx_recover
+
+The **tx_recover** parameter is the application's abort and recovery function. The function takes four parameters:
+
+- `dbenv`
+
+ The **dbenv** parameter is the enclosing database environment handle.
+
+- `log_rec`
+
+ The **log_rec** parameter is a log record.
+
+- `lsn`
+
+ The **lsn** parameter is a log sequence number.
+
+- `op`
+
+ The **op** parameter is one of the following values:
+
+ - `DB_TXN_BACKWARD_ROLL`
+
+ The log is being read backward to determine which transactions have been committed and to abort those operations that were not; undo the operation described by the log record.
+
+ - `DB_TXN_FORWARD_ROLL`
+
+ The log is being played forward; redo the operation described by the log record.
+
+ - `DB_TXN_ABORT`
+
+ The log is being read backward during a transaction abort; undo the operation described by the log record.
+
+ - `DB_TXN_APPLY`
+
+ The log is being applied on a replica site; redo the operation described by the log record.
+
+ - `DB_TXN_PRINT`
+
+ The log is being printed for debugging purposes; print the contents of this log record in the desired format.
+
+ The DB_TXN_FORWARD_ROLL and DB_TXN_APPLY operations frequently imply the same actions, redoing changes that appear in the log record, although if a recovery function is to be used on a replication client where reads may be taking place concurrently with the processing of incoming messages, DB_TXN_APPLY operations should also perform appropriate locking. The macro DB_REDO(op) checks that the operation is one of DB_TXN_FORWARD_ROLL or DB_TXN_APPLY, and should be used in the recovery code to refer to the conditions under which operations should be redone. Similarly, the macro DB_UNDO(op) checks if the operation is one of DB_TXN_BACKWARD_ROLL or DB_TXN_ABORT.
+
+The function must return 0 on success and either **errno** or a value outside of the Berkeley DB error name space on failure.
+
+### Errors
+
+The `DB_ENV->set_app_dispatch()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB_ENV->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV , DB_TXN
+
+### See Also
+
+Transaction Subsystem and Related Methods
diff --git a/docs-src/api/c/envset_backup_callbacks.md b/docs-src/api/c/envset_backup_callbacks.md
new file mode 100644
index 000000000..7442c6563
--- /dev/null
+++ b/docs-src/api/c/envset_backup_callbacks.md
@@ -0,0 +1,102 @@
+---
+title: "DB_ENV->set_backup_callbacks()"
+api-name: "DB_ENV->set_backup_callbacks()"
+source: docs/api_reference/C/envset_backup_callbacks.html
+---
+## DB_ENV-\>set_backup_callbacks()
+
+``` c
+#include
+
+DB_ENV->set_backup_callbacks(DB_ENV,
+ int (*open_func)(DB_ENV *, const char *dbname,
+ const char *target, void **handle),
+ int (*write_func)(DB_ENV *, u_int32_t offset_gbytes,
+ u_int32_t offset_bytes, u_int32_t size,
+ u_int8_t *buf, void *handle),
+ int (*close_func)(DB_ENV *, const char *dbname, void *handle));
+```
+
+The `DB_ENV->set_backup_callbacks()` method configures three callback functions which can be used by the DB_ENV->backup() or DB_ENV->dbbackup() methods to override their default behavior. If one callback is configured, then all three callbacks must be configured. These callbacks are required if the `target` parameter is set to `NULL` for the DB_ENV->backup() or DB_ENV->dbbackup() methods.
+
+The `DB_ENV->set_backup_callbacks()` method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.
+
+The `DB_ENV->set_backup_callbacks()` method may be called at any time during the life of the application.
+
+The `DB_ENV->set_backup_callbacks()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### open_func
+
+The **open_func** parameter is the function used when a target location is opened during a backup. This function should do whatever is necessary to prepare the backup destination for writing the data.
+
+This function takes four parameters:
+
+- `dbenv`
+
+ The **dbenv** parameter is the enclosing database environment handle.
+
+- `dbname`
+
+ The **dbname** parameter is the name of the database being backed up.
+
+- `target`
+
+ The **target** parameter is the backup's directory destination.
+
+- `handle`
+
+ The **handle** parameter references the handle (usually a file handle) to which the backup will be written.
+
+#### write_func
+
+The **write_func** parameter is the function used to write data during a backup. The function takes six parameters:
+
+- `dbenv`
+
+ The **dbenv** parameter is the enclosing database environment handle.
+
+- `offset_gbytes`
+
+ The **offset_gbytes** parameter specifies the number of gigabytes into the output handle where the data can should be written. This value, plus the value specified on `offset_bytes`, indicates the offset within the output handle where the backup should begin.
+
+- `offset_bytes`
+
+ The **offset_bytes** parameter specifies the number of bytes into the output handle where the data can be located. This value, plus the value specified on `offset_gbytes`, indicates the offset within the output handle where the backup should begin.
+
+- `size`
+
+ The **size** parameter specifies the number of bytes to back up from the buffer.
+
+- `buf`
+
+ The **buf** parameter is the buffer which contains the data to be backed up.
+
+- `handle`
+
+ The **handle** parameter references the handle (usually a file handle) to which the backup will be written.
+
+#### close_func
+
+The **close_func** parameter is the function used when ending a backup and closing a backup target. The function takes three parameters:
+
+- `dbenv`
+
+ The **dbenv** parameter is the enclosing database environment handle.
+
+- `dbname`
+
+ The **dbname** parameter is the name of the database that has now been backed up.
+
+- `handle`
+
+ The **handle** parameter references the handle (usually a file handle) to which the backup was written, and which now must be closed or otherwise discarded.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods , DB_ENV->get_backup_callbacks() , DB_ENV->backup() , and DB_ENV->dbbackup() .
diff --git a/docs-src/api/c/envset_backup_config.md b/docs-src/api/c/envset_backup_config.md
new file mode 100644
index 000000000..f09adea77
--- /dev/null
+++ b/docs-src/api/c/envset_backup_config.md
@@ -0,0 +1,59 @@
+---
+title: "DB_ENV->set_backup_config()"
+api-name: "DB_ENV->set_backup_config()"
+source: docs/api_reference/C/envset_backup_config.html
+---
+## DB_ENV-\>set_backup_config()
+
+``` c
+#include
+
+DB_ENV->set_backup_config(DB_ENV, db_backup_config_t option,
+ u_int32_t value);
+```
+
+The `DB_ENV->set_backup_config()` method configures tuning parameters for the hot backup APIs. See the DB_ENV->backup() and DB_ENV->dbbackup() methods for a description of the hot backup APIs.
+
+The `DB_ENV->set_backup_config()` method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.
+
+The `DB_ENV->set_backup_config()` method may be called at any time during the life of the application.
+
+The `DB_ENV->set_backup_config()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### option
+
+The **option** parameter identifies the backup parameter to be modified. It must be one of the following:
+
+- `DB_BACKUP_WRITE_DIRECT`
+
+ Turning this on causes direct I/O to be used when writing pages to the disk. For some environments, direct I/O can provide faster write throughput, but usually it is slower because the OS buffer pool offers asynchronous activity.
+
+ By default, this option is turned off.
+
+- `DB_BACKUP_READ_COUNT`
+
+ Configures the number of pages to read before pausing. Increasing this value increases the amount of I/O the backup process performs for any given time interval. If your application is already heavily I/O bound, setting this value to a lower number may help to improve your overall data throughput by reducing the I/O demands placed on your system.
+
+ By default, all pages are read without a pause.
+
+- `DB_BACKUP_READ_SLEEP`
+
+ Configures the number of microseconds to sleep between batches of reads. Increasing this value decreases the amount of I/O the backup process performs for any given time interval. If your application is already heavily I/O bound, setting this value to a higher number may help to improve your overall data throughput by reducing the I/O demands placed on your system.
+
+- `DB_BACKUP_SIZE`
+
+ Configures the size of the buffer, in bytes, to read from the database. Default is 1 megabyte.
+
+#### value
+
+The **value** parameter sets the configuration value for the option identified by the **option** parameter. For those options which can only be turned on or off, this parameter should be set to `0` for off and `1` for on. Otherwise, set this parameter to an integer value that represents the number of units for which you are configuring the backup APIs.
+
+### Class
+
+DB_ENV ,
+
+### See Also
+
+Database Environments and Related Methods , DB_ENV->get_backup_config() , DB_ENV->backup() , DB_ENV->dbbackup()
diff --git a/docs-src/api/c/envset_cache_max.md b/docs-src/api/c/envset_cache_max.md
new file mode 100644
index 000000000..856a35fab
--- /dev/null
+++ b/docs-src/api/c/envset_cache_max.md
@@ -0,0 +1,49 @@
+---
+title: "DB_ENV->set_cache_max()"
+api-name: "DB_ENV->set_cache_max()"
+source: docs/api_reference/C/envset_cache_max.html
+---
+## DB_ENV-\>set_cache_max()
+
+``` c
+#include
+
+int
+DB_ENV->set_cache_max(DB_ENV *dbenv, u_int32_t gbytes, u_int32_t bytes);
+```
+
+Sets the maximum cache size in bytes. The specified size is rounded to the nearest multiple of the cache region size, which is the initial cache size divided by the number of regions specified to the DB_ENV->set_cachesize() method. If no value is specified, it defaults to the initial cache size.
+
+The database environment's maximum cache size may also be configured using the environment's DB_CONFIG file. The syntax of the entry in that file is a single line with the string "set_cache_max", one or more whitespace characters, and the maximum cache size in bytes, specified in two parts: the gigabytes of cache and the additional bytes of cache. Because the DB_CONFIG file is read when the database environment is opened, it will silently overrule configuration done before that time.
+
+The `DB_ENV->set_cache_max()` method configures a database environment, not only operations performed using the specified DB_ENV handle.
+
+The `DB_ENV->set_cache_max()` method must be called prior to opening the database environment.
+
+The `DB_ENV->set_cache_max()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### gbytes
+
+The **gbytes** parameter specifies the number of bytes which, when added to the **bytes** parameter, specifies the maximum size of the cache.
+
+#### bytes
+
+The **bytes** parameter specifies the number of bytes which, when added to the **gbytes** parameter, specifies the maximum size of the cache.
+
+### Errors
+
+The `DB_ENV->set_cache_max()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+An invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envset_cachesize.md b/docs-src/api/c/envset_cachesize.md
new file mode 100644
index 000000000..26d5d12b8
--- /dev/null
+++ b/docs-src/api/c/envset_cachesize.md
@@ -0,0 +1,60 @@
+---
+title: "DB_ENV->set_cachesize()"
+api-name: "DB_ENV->set_cachesize()"
+source: docs/api_reference/C/envset_cachesize.html
+---
+## DB_ENV-\>set_cachesize()
+
+``` c
+#include
+
+int
+DB_ENV->set_cachesize(DB_ENV *dbenv,
+ u_int32_t gbytes, u_int32_t bytes, int ncache);
+```
+
+Sets the size of the shared memory buffer pool — that is, the cache. The cache should be the size of the normal working data set of the application, with some small amount of additional memory for unusual situations. (Note: the working set is not the same as the number of pages accessed simultaneously, and is usually much larger.)
+
+The default cache size is 256KB, and may not be specified as less than 20KB. Any cache size less than 500MB is automatically increased by 25% to account for cache overhead; cache sizes larger than 500MB are used as specified. The maximum size of a single cache is 4GB on 32-bit systems and 10TB on 64-bit systems. (All sizes are in powers-of-two, that is, 256KB is 2^18 not 256,000.) For information on tuning the Berkeley DB cache size, see Selecting a cache size .
+
+It is possible to specify caches to Berkeley DB large enough they cannot be allocated contiguously on some architectures. For example, some releases of Solaris limit the amount of memory that may be allocated contiguously by a process. If **ncache** is 0 or 1, the cache will be allocated contiguously in memory. If it is greater than 1, the cache will be split across **ncache** separate regions, where the **region size** is equal to the initial cache size divided by **ncache**.
+
+The cache may be resized by calling `DB_ENV->set_cachesize()` after the environment is open. The supplied size will be rounded to the nearest multiple of the region size and may not be larger than the maximum size configured with DB_ENV->set_cache_max() . The **ncache** parameter is ignored when resizing the cache.
+
+The database environment's initial cache size may also be configured using the environment's DB_CONFIG file. The syntax of the entry in that file is a single line with the string "set_cachesize", one or more whitespace characters, and the initial cache size specified in three parts: the gigabytes of cache, the additional bytes of cache, and the number of caches, also separated by whitespace characters. For example, "set_cachesize 2 524288000 3" would create a 2.5GB logical cache, split between three physical caches. Because the DB_CONFIG file is read when the database environment is opened, it will silently overrule configuration done before that time.
+
+The `DB_ENV->set_cachesize()` method configures a database environment, not only operations performed using the specified DB_ENV handle.
+
+The `DB_ENV->set_cachesize()` method may be called at any time during the life of the application.
+
+The `DB_ENV->set_cachesize()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### gbytes
+
+The size of the cache is set to **gbytes** gigabytes plus **bytes**.
+
+#### bytes
+
+The size of the cache is set to **gbytes** gigabytes plus **bytes**.
+
+#### ncache
+
+The **ncache** parameter is the number of caches to create.
+
+### Errors
+
+The `DB_ENV->set_cachesize()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the specified cache size was impossibly small; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envset_create_dir.md b/docs-src/api/c/envset_create_dir.md
new file mode 100644
index 000000000..870f81ca0
--- /dev/null
+++ b/docs-src/api/c/envset_create_dir.md
@@ -0,0 +1,49 @@
+---
+title: "DB_ENV->set_create_dir()"
+api-name: "DB_ENV->set_create_dir()"
+source: docs/api_reference/C/envset_create_dir.html
+---
+## DB_ENV-\>set_create_dir()
+
+``` c
+#include
+
+int
+DB_ENV->set_create_dir(DB_ENV *dbenv, const char *dir);
+```
+
+Sets the path of a directory to be used as the location to create the access method database files. When the DB->open() function is used to create a file it will be created relative to this path.
+
+If no database directories are specified, database files will be created either by absolute paths or relative to the environment home directory. See Berkeley DB File Naming for more information.
+
+The database environment's create directory may also be configured using the environment's DB_CONFIG file. The syntax of the entry in that file is a single line with the string "set_create_dir", one or more whitespace characters, and the directory name.
+
+The `DB_ENV->set_create_dir()` method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.
+
+The `DB_ENV->set_create_dir()` method may be called at any time.
+
+The `DB_ENV->set_create_dir()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dir
+
+The **dir** parameter is a directory to be used to create database files. This directory must be one of the directories specified via a call to DB_ENV->add_data_dir()
+
+When using a Unicode build on Windows (the default), this argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters.
+
+### Errors
+
+The `DB_ENV->set_create_dir()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB_ENV->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envset_data_dir.md b/docs-src/api/c/envset_data_dir.md
new file mode 100644
index 000000000..a86974417
--- /dev/null
+++ b/docs-src/api/c/envset_data_dir.md
@@ -0,0 +1,53 @@
+---
+title: "DB_ENV->set_data_dir()"
+api-name: "DB_ENV->set_data_dir()"
+source: docs/api_reference/C/envset_data_dir.html
+---
+## DB_ENV-\>set_data_dir()
+
+``` c
+#include
+
+int
+DB_ENV->set_data_dir(DB_ENV *dbenv, const char *dir);
+```
+
+### Note
+
+This interface has been deprecated. You should use DB_ENV->add_data_dir() and DB_ENV->set_create_dir() instead.
+
+Set the path of a directory to be used as the location of the access method database files. Paths specified to the DB->open() function will be searched relative to this path. Paths set using this method are additive, and specifying more than one will result in each specified directory being searched for database files. If any directories are specified, database files will always be created in the first path specified.
+
+If no database directories are specified, database files must be named either by absolute paths or relative to the environment home directory. See Berkeley DB File Naming for more information.
+
+The database environment's data directories may also be configured using the environment's DB_CONFIG file. The syntax of the entry in that file is a single line with the string "set_data_dir", one or more whitespace characters, and the directory name. Note that if you use this method for your application, and you also want to use the db_recover or db_archive utilities, then you should create a DB_CONFIG file and set the "set_data_dir" parameter in it.
+
+The `DB_ENV->set_data_dir()` method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.
+
+The `DB_ENV->set_data_dir()` method may not be called after the DB_ENV->open() method is called. If the database environment already exists when DB_ENV->open() is called, the information specified to `DB_ENV->set_data_dir()` must be consistent with the existing environment or corruption can occur.
+
+The `DB_ENV->set_data_dir()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### dir
+
+The **dir** parameter is a directory to be used as a location for database files. This directory must currently exist at environment open time.
+
+When using a Unicode build on Windows (the default), this argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters.
+
+### Errors
+
+The `DB_ENV->set_data_dir()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB_ENV->open() was called; or if an invalid flag value or parameter was specified.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envset_data_len.md b/docs-src/api/c/envset_data_len.md
new file mode 100644
index 000000000..d3f827a38
--- /dev/null
+++ b/docs-src/api/c/envset_data_len.md
@@ -0,0 +1,41 @@
+---
+title: "DB_ENV->set_data_len()"
+api-name: "DB_ENV->set_data_len()"
+source: docs/api_reference/C/envset_data_len.html
+---
+## DB_ENV-\>set_data_len()
+
+``` c
+#include
+
+int
+DB_ENV->set_data_len(DB_ENV *dbenv, u_int32_t bytes);
+```
+
+Limits the amount of data displayed when DB_ENV->lock_stat_print() is called with the `DB_STAT_ALL` or `DB_STAT_LOCK_OBJECTS` flag.
+
+This method is explicitly called in the db_printlog and db_dump utilities when using the **-D** command line option. When used in this manner it will set the maximum number of bytes to display for each key/data item. These utilities run in their own environment context.
+
+If you want to call this method from the primary application and have it set the maximum number of bytes to display for each key/data item, then you must bring the db_dump/db_printlog code into the primary application and ensure that the same environment handle is used throughout.
+
+This limit may also be configured using the environment's DB_CONFIG file. In this case, the limit will equally affect your application code, as well as the command line utilities noted above without modification to their code. The syntax of the entry in that file is a single line with the string "set_data_len", one or more whitespace characters, and the limit in bytes that you want to set.
+
+The `DB_ENV->set_data_len()` method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.
+
+The `DB_ENV->set_data_len()` method may be called at any time during the life of the application.
+
+The `DB_ENV->set_data_len()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### bytes
+
+The **bytes** parameter identifies the maximum number of bytes to display when dumping the database or printing the log. The value specified here must be greater than `0`.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envset_encrypt.md b/docs-src/api/c/envset_encrypt.md
new file mode 100644
index 000000000..37da7ed5f
--- /dev/null
+++ b/docs-src/api/c/envset_encrypt.md
@@ -0,0 +1,55 @@
+---
+title: "DB_ENV->set_encrypt()"
+api-name: "DB_ENV->set_encrypt()"
+source: docs/api_reference/C/envset_encrypt.html
+---
+## DB_ENV-\>set_encrypt()
+
+``` c
+#include
+
+int
+DB_ENV->set_encrypt(DB_ENV *dbenv, const char *passwd, u_int32_t flags);
+```
+
+Set the password used by the Berkeley DB library to perform encryption and decryption.
+
+The `DB_ENV->set_encrypt()` method configures a database environment, not only operations performed using the specified DB_ENV handle.
+
+The `DB_ENV->set_encrypt()` method may not be called after the DB_ENV->open() method is called. If the database environment already exists when DB_ENV->open() is called, the information specified to `DB_ENV->set_encrypt()` must be consistent with the existing environment or an error will be returned.
+
+The `DB_ENV->set_encrypt()` method returns a non-zero error value on failure and 0 on success.
+
+### Parameters
+
+#### passwd
+
+The **passwd** parameter is the password used to perform encryption and decryption.
+
+#### flags
+
+The **flags** parameter must be set to 0 or the following value:
+
+- `DB_ENCRYPT_AES`
+
+ Use the Rijndael/AES (also known as the Advanced Encryption Standard and Federal Information Processing Standard (FIPS) 197) algorithm for encryption or decryption.
+
+### Errors
+
+The `DB_ENV->set_encrypt()` method may fail and return one of the following non-zero errors:
+
+#### EINVAL
+
+If the method was called after DB_ENV->open() was called; or if an invalid flag value or parameter was specified.
+
+#### EOPNOTSUPP
+
+Cryptography is not available in this Berkeley DB release.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envset_errcall.md b/docs-src/api/c/envset_errcall.md
new file mode 100644
index 000000000..0739560a9
--- /dev/null
+++ b/docs-src/api/c/envset_errcall.md
@@ -0,0 +1,58 @@
+---
+title: "DB_ENV->set_errcall()"
+api-name: "DB_ENV->set_errcall()"
+source: docs/api_reference/C/envset_errcall.html
+---
+## DB_ENV-\>set_errcall()
+
+``` c
+#include
+
+void
+DB_ENV->set_errcall(DB_ENV *dbenv, void (*db_errcall_fcn)
+ (const DB_ENV *dbenv, const char *errpfx, const char *msg));
+```
+
+When an error occurs in the Berkeley DB library, a Berkeley DB error or an error return value is returned by the interface. In some cases, however, the **errno** value may be insufficient to completely describe the cause of the error, especially during initial application debugging.
+
+The `DB_ENV->set_errcall()` and DB_ENV->set_errcall() methods are used to enhance the mechanism for reporting error messages to the application. In some cases, when an error occurs, Berkeley DB will call **db_errcall_fcn** with additional error information. It is up to the **db_errcall_fcn** function to display the error message in an appropriate manner.
+
+Setting **db_errcall_fcn** to NULL unconfigures the callback interface.
+
+Alternatively, you can use the DB->set_errfile() or DB->set_errfile() methods to display the additional information via a C library `FILE *`.
+
+This error-logging enhancement does not slow performance or significantly increase application size, and may be run during normal operation as well as during application debugging.
+
+The `DB_ENV->set_errcall()` method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.
+
+The `DB_ENV->set_errcall()` method may be called at any time during the life of the application.
+
+### Note
+
+Berkeley DB is not re-entrant. Callback functions should not attempt to make library calls (for example, to release locks or close open handles). Re-entering Berkeley DB is not guaranteed to work correctly, and the results are undefined.
+
+### Parameters
+
+#### db_errcall_fcn
+
+The **db_errcall_fcn** parameter is the application-specified error reporting function. The function takes three parameters:
+
+- `dbenv`
+
+ The **dbenv** parameter is the enclosing database environment.
+
+- `errpfx`
+
+ The **errpfx** parameter is the prefix string (as previously set by DB->set_errpfx() or DB_ENV->set_errpfx() ).
+
+- `msg`
+
+ The **msg** parameter is the error message string.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envset_errfile.md b/docs-src/api/c/envset_errfile.md
new file mode 100644
index 000000000..c9f43aa58
--- /dev/null
+++ b/docs-src/api/c/envset_errfile.md
@@ -0,0 +1,51 @@
+---
+title: "DB_ENV->set_errfile()"
+api-name: "DB_ENV->set_errfile()"
+source: docs/api_reference/C/envset_errfile.html
+---
+## DB_ENV-\>set_errfile()
+
+``` c
+#include
+
+void
+DB_ENV->set_errfile(DB_ENV *dbenv, FILE *errfile);
+```
+
+When an error occurs in the Berkeley DB library, a Berkeley DB error or an error return value is returned by the interface. In some cases, however, the return value may be insufficient to completely describe the cause of the error especially during initial application debugging.
+
+The `DB_ENV->set_errfile()` and DB->set_errfile() methods are used to enhance the mechanism for reporting error messages to the application by setting a C library FILE \* to be used for displaying additional Berkeley DB error messages. In some cases, when an error occurs, Berkeley DB will output an additional error message to the specified file reference.
+
+Alternatively, you can use the DB_ENV->set_errcall() or DB->set_errcall() methods to capture the additional error information in a way that does not use C library FILE \*'s.
+
+The error message will consist of the prefix string and a colon ("**:**") (if a prefix string was previously specified using DB->set_errpfx() or DB_ENV->set_errpfx() ), an error string, and a trailing \ character.
+
+The default configuration when applications first create DB or DB_ENV handles is as if the DB->set_errfile() or `DB_ENV->set_errfile()` methods were called with the standard error output (stderr) specified as the FILE \* argument. Applications wanting no output at all can turn off this default configuration by calling the DB->set_errfile() or `DB_ENV->set_errfile()` methods with NULL as the FILE \* argument. Additionally, explicitly configuring the error output channel using any of the following methods will also turn off this default output for the application:
+
+- `DB_ENV->set_errfile()`
+
+- DB->set_errfile()
+
+- DB_ENV->set_errcall()
+
+- DB->set_errcall()
+
+This error logging enhancement does not slow performance or significantly increase application size, and may be run during normal operation as well as during application debugging.
+
+The `DB_ENV->set_errfile()` method configures operations performed using the specified DB_ENV handle, not all operations performed on the underlying database environment.
+
+The `DB_ENV->set_errfile()` method may be called at any time during the life of the application.
+
+### Parameters
+
+#### errfile
+
+The **errfile** parameter is a C library FILE \* to be used for displaying additional Berkeley DB error information.
+
+### Class
+
+DB_ENV
+
+### See Also
+
+Database Environments and Related Methods
diff --git a/docs-src/api/c/envset_errpfx.md b/docs-src/api/c/envset_errpfx.md
new file mode 100644
index 000000000..9cd52d161
--- /dev/null
+++ b/docs-src/api/c/envset_errpfx.md
@@ -0,0 +1,35 @@
+---
+title: "DB_ENV->set_errpfx()"
+api-name: "DB_ENV->set_errpfx()"
+source: docs/api_reference/C/envset_errpfx.html
+---
+## DB_ENV-\>set_errpfx()
+
+``` c
+#include
+
+void
+DB_ENV->set_errpfx(DB_ENV *dbenv, const char *errpfx);
+```
+
+Set the prefix string that appears before error messages issued by Berkeley DB.
+
+The