1<!--$Id: runtime.so,v 10.38 2008/01/17 03:26:51 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB Reference Guide: Run-time configuration</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<table width="100%"><tr valign=top> 12<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Programmer Notes</dl></b></td> 13<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> 14</td></tr></table> 15<p align=center><b>Run-time configuration</b></p> 16<p>It is possible for applications to configure Berkeley DB at run-time to 17redirect Berkeley DB library and system calls to alternate interfaces. For 18example, an application might want Berkeley DB to call debugging memory 19allocation routines rather than the standard C library interfaces. The 20following interfaces support this functionality:</p> 21<blockquote><pre><a href="../../api_c/set_func_close.html">db_env_set_func_close</a> 22<a href="../../api_c/set_func_dirfree.html">db_env_set_func_dirfree</a> 23<a href="../../api_c/set_func_dirlist.html">db_env_set_func_dirlist</a> 24<a href="../../api_c/set_func_exists.html">db_env_set_func_exists</a> 25<a href="../../api_c/set_func_file_map.html">db_env_set_func_file_map</a> 26<a href="../../api_c/set_func_free.html">db_env_set_func_free</a> 27<a href="../../api_c/set_func_fsync.html">db_env_set_func_fsync</a> 28<a href="../../api_c/set_func_ftruncate.html">db_env_set_func_ftruncate</a> 29<a href="../../api_c/set_func_ioinfo.html">db_env_set_func_ioinfo</a> 30<a href="../../api_c/set_func_malloc.html">db_env_set_func_malloc</a> 31<a href="../../api_c/set_func_open.html">db_env_set_func_open</a> 32<a href="../../api_c/set_func_pread.html">db_env_set_func_pread</a> 33<a href="../../api_c/set_func_pwrite.html">db_env_set_func_pwrite</a> 34<a href="../../api_c/set_func_read.html">db_env_set_func_read</a> 35<a href="../../api_c/set_func_realloc.html">db_env_set_func_realloc</a> 36<a href="../../api_c/set_func_region_map.html">db_env_set_func_region_map</a> 37<a href="../../api_c/set_func_rename.html">db_env_set_func_rename</a> 38<a href="../../api_c/set_func_seek.html">db_env_set_func_seek</a> 39<a href="../../api_c/set_func_unlink.html">db_env_set_func_unlink</a> 40<a href="../../api_c/set_func_write.html">db_env_set_func_write</a> 41<a href="../../api_c/set_func_yield.html">db_env_set_func_yield</a></pre></blockquote> 42<p>These interfaces are available only on POSIX platforms and from the 43Berkeley DB C language API.</p> 44<p>A not-uncommon problem for applications is the new API in Solaris 2.6 45for manipulating large files. Because this API was not part of Solaris 462.5, it is difficult to create a single binary that takes advantage of 47the large file functionality in Solaris 2.6, but still runs on Solaris 482.5. <a href="solaris.txt">Example code</a> that supports this is 49included in the Berkeley DB distribution, however, the example code was 50written using previous versions of the Berkeley DB APIs, and is only useful 51as an example.</p> 52<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> 53</td></tr></table> 54<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 55</body> 56</html> 57