runtime.html   [plain text]


<!--$Id: runtime.html,v 1.2 2004/03/30 01:22:55 jtownsen Exp $-->
<!--Copyright 1997-2003 by Sleepycat Software, Inc.-->
<!--All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB Reference Guide: Run-time configuration</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<table width="100%"><tr valign=top>
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Programmer Notes</dl></h3></td>
<td align=right><a href="../program/compatible.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../program/faq.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p>
<h3 align=center>Run-time configuration</h3>
<p>It is possible to configure Berkeley DB at run-time so applications can
redirect all Berkeley DB calls to underlying library or system call
functionality.  For example, an application might want Berkeley DB to call
debugging memory allocation routines rather than the standard C library
interfaces.  The following interfaces support this functionality:</p>
<blockquote><pre><a href="../../api_c/set_func_close.html">db_env_set_func_close</a>
<a href="../../api_c/set_func_dirfree.html">db_env_set_func_dirfree</a>
<a href="../../api_c/set_func_dirlist.html">db_env_set_func_dirlist</a>
<a href="../../api_c/set_func_exists.html">db_env_set_func_exists</a>
<a href="../../api_c/set_func_free.html">db_env_set_func_free</a>
<a href="../../api_c/set_func_fsync.html">db_env_set_func_fsync</a>
<a href="../../api_c/set_func_ioinfo.html">db_env_set_func_ioinfo</a>
<a href="../../api_c/set_func_malloc.html">db_env_set_func_malloc</a>
<a href="../../api_c/set_func_map.html">db_env_set_func_map</a>
<a href="../../api_c/set_func_open.html">db_env_set_func_open</a>
<a href="../../api_c/set_func_read.html">db_env_set_func_read</a>
<a href="../../api_c/set_func_realloc.html">db_env_set_func_realloc</a>
<a href="../../api_c/set_func_rename.html">db_env_set_func_rename</a>
<a href="../../api_c/set_func_seek.html">db_env_set_func_seek</a>
<a href="../../api_c/set_func_sleep.html">db_env_set_func_sleep</a>
<a href="../../api_c/set_func_unlink.html">db_env_set_func_unlink</a>
<a href="../../api_c/set_func_unmap.html">db_env_set_func_unmap</a>
<a href="../../api_c/set_func_write.html">db_env_set_func_write</a>
<a href="../../api_c/set_func_yield.html">db_env_set_func_yield</a></pre></blockquote>
<p>These interfaces are available only from the Berkeley DB C language API, and
are not available from all of the operating systems Berkeley DB supports.</p>
<p>A not-uncommon problem for applications is the new API in Solaris 2.6
for manipulating large files.  Because this API was not part of Solaris
2.5, it is difficult to create a single binary that takes advantage of
the large file functionality in Solaris 2.6, but still runs on Solaris
2.5.  <a href="solaris.txt">Example code</a> that supports this is
included in the Berkeley DB distribution, however, the example code was
written using previous versions of the Berkeley DB APIs, and is only useful
as an example.</p>
<table width="100%"><tr><td><br></td><td align=right><a href="../program/compatible.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../program/faq.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p><font size=1><a href="../../sleepycat/legal.html">Copyright (c) 1996-2003</a> <a href="http://www.sleepycat.com">Sleepycat Software, Inc.</a> - All rights reserved.</font>
</body>
</html>