| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>Run-time configuration</title> |
| 7 | <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" /> |
| 10 | <link rel="up" href="program.html" title="Chapter 15. Programmer Notes" /> |
| 11 | <link rel="prev" href="program_compatible.html" title="Compatibility with historic UNIX interfaces" /> |
| 12 | <link rel="next" href="program_perfmon.html" title="Performance Event Monitoring" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">Run-time configuration</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="program_compatible.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 15. |
| 26 | Programmer Notes |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="program_perfmon.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="sect1" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title" style="clear: both"><a id="program_runtime"></a>Run-time configuration</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <p>It is possible for applications to configure Berkeley DB at run-time to |
| 42 | redirect Berkeley DB library and system calls to alternate interfaces. For |
| 43 | example, an application might want Berkeley DB to call debugging memory |
| 44 | allocation routines rather than the standard C library interfaces. The |
| 45 | following interfaces support this functionality:</p> |
| 46 | <div class="itemizedlist"> |
| 47 | <ul type="disc"> |
| 48 | <li> |
| 49 | <p> |
| 50 | <a href="../api_reference/C/db_env_set_func_close.html" class="olink">db_env_set_func_close</a> |
| 51 | </p> |
| 52 | </li> |
| 53 | <li> |
| 54 | <p> |
| 55 | <a href="../api_reference/C/db_env_set_func_dirfree.html" class="olink">db_env_set_func_dirfree</a> |
| 56 | </p> |
| 57 | </li> |
| 58 | <li> |
| 59 | <p> |
| 60 | <a href="../api_reference/C/db_env_set_func_dirlist.html" class="olink">db_env_set_func_dirlist</a> |
| 61 | </p> |
| 62 | </li> |
| 63 | <li> |
| 64 | <p> |
| 65 | <a href="../api_reference/C/db_env_set_func_exists.html" class="olink">db_env_set_func_exists</a> |
| 66 | </p> |
| 67 | </li> |
| 68 | <li> |
| 69 | <p> |
| 70 | <a href="../api_reference/C/db_env_set_func_file_map.html" class="olink">db_env_set_func_file_map</a> |
| 71 | </p> |
| 72 | </li> |
| 73 | <li> |
| 74 | <p> |
| 75 | <a href="../api_reference/C/db_env_set_func_free.html" class="olink">db_env_set_func_free</a> |
| 76 | </p> |
| 77 | </li> |
| 78 | <li> |
| 79 | <p> |
| 80 | <a href="../api_reference/C/db_env_set_func_fsync.html" class="olink">db_env_set_func_fsync</a> |
| 81 | </p> |
| 82 | </li> |
| 83 | <li> |
| 84 | <p> |
| 85 | <a href="../api_reference/C/db_env_set_func_ftruncate.html" class="olink">db_env_set_func_ftruncate</a> |
| 86 | </p> |
| 87 | </li> |
| 88 | <li> |
| 89 | <p> |
| 90 | <a href="../api_reference/C/db_env_set_func_ioinfo.html" class="olink">db_env_set_func_ioinfo</a> |
| 91 | </p> |
| 92 | </li> |
| 93 | <li> |
| 94 | <p> |
| 95 | <a href="../api_reference/C/db_env_set_func_malloc.html" class="olink">db_env_set_func_malloc</a> |
| 96 | </p> |
| 97 | </li> |
| 98 | <li> |
| 99 | <p> |
| 100 | <a href="../api_reference/C/db_env_set_func_open.html" class="olink">db_env_set_func_open</a> |
| 101 | </p> |
| 102 | </li> |
| 103 | <li> |
| 104 | <p> |
| 105 | <a href="../api_reference/C/db_env_set_func_pread.html" class="olink">db_env_set_func_pread</a> |
| 106 | </p> |
| 107 | </li> |
| 108 | <li> |
| 109 | <p> |
| 110 | <a href="../api_reference/C/db_env_set_func_pwrite.html" class="olink">db_env_set_func_pwrite</a> |
| 111 | </p> |
| 112 | </li> |
| 113 | <li> |
| 114 | <p> |
| 115 | <a href="../api_reference/C/db_env_set_func_read.html" class="olink">db_env_set_func_read</a> |
| 116 | </p> |
| 117 | </li> |
| 118 | <li> |
| 119 | <p> |
| 120 | <a href="../api_reference/C/db_env_set_func_realloc.html" class="olink">db_env_set_func_realloc</a> |
| 121 | </p> |
| 122 | </li> |
| 123 | <li> |
| 124 | <p> |
| 125 | <a href="../api_reference/C/db_env_set_func_region_map.html" class="olink">db_env_set_func_region_map</a> |
| 126 | </p> |
| 127 | </li> |
| 128 | <li> |
| 129 | <p> |
| 130 | <a href="../api_reference/C/db_env_set_func_rename.html" class="olink">db_env_set_func_rename</a> |
| 131 | </p> |
| 132 | </li> |
| 133 | <li> |
| 134 | <p> |
| 135 | <a href="../api_reference/C/db_env_set_func_seek.html" class="olink">db_env_set_func_seek</a> |
| 136 | </p> |
| 137 | </li> |
| 138 | <li> |
| 139 | <p> |
| 140 | <a href="../api_reference/C/db_env_set_func_unlink.html" class="olink">db_env_set_func_unlink</a> |
| 141 | </p> |
| 142 | </li> |
| 143 | <li> |
| 144 | <p> |
| 145 | <a href="../api_reference/C/db_env_set_func_write.html" class="olink">db_env_set_func_write</a> |
| 146 | </p> |
| 147 | </li> |
| 148 | <li> |
| 149 | <p> |
| 150 | <a href="../api_reference/C/db_env_set_func_yield.html" class="olink">db_env_set_func_yield</a> |
| 151 | </p> |
| 152 | </li> |
| 153 | </ul> |
| 154 | </div> |
| 155 | <p>These interfaces are available only on POSIX platforms and from the |
| 156 | Berkeley DB C language API.</p> |
| 157 | <p>A not-uncommon problem for applications is the new API in Solaris 2.6 |
| 158 | for manipulating large files. Because this API was not part of Solaris |
| 159 | 2.5, it is difficult to create a single binary that takes advantage of |
| 160 | the large file functionality in Solaris 2.6, but still runs on Solaris |
| 161 | 2.5. <a class="ulink" href="solaris.txt" target="_top">Example code</a> that supports this is |
| 162 | included in the Berkeley DB distribution, however, the example code was |
| 163 | written using previous versions of the Berkeley DB APIs, and is only useful |
| 164 | as an example.</p> |
| 165 | </div> |
| 166 | <div class="navfooter"> |
| 167 | <hr /> |
| 168 | <table width="100%" summary="Navigation footer"> |
| 169 | <tr> |
| 170 | <td width="40%" align="left"><a accesskey="p" href="program_compatible.html">Prev</a> </td> |
| 171 | <td width="20%" align="center"> |
| 172 | <a accesskey="u" href="program.html">Up</a> |
| 173 | </td> |
| 174 | <td width="40%" align="right"> <a accesskey="n" href="program_perfmon.html">Next</a></td> |
| 175 | </tr> |
| 176 | <tr> |
| 177 | <td width="40%" align="left" valign="top">Compatibility with historic UNIX interfaces </td> |
| 178 | <td width="20%" align="center"> |
| 179 | <a accesskey="h" href="index.html">Home</a> |
| 180 | </td> |
| 181 | <td width="40%" align="right" valign="top"> Performance Event Monitoring</td> |
| 182 | </tr> |
| 183 | </table> |
| 184 | </div> |
| 185 | </body> |
| 186 | </html> |