• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/docs/api_reference/C/
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>db_env_set_func_close</title>
7    <link rel="stylesheet" href="apiReference.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 C API Reference" />
10    <link rel="up" href="setfunc.html" title="Appendix��3.�� Berkeley DB Application Space Static Functions" />
11    <link rel="prev" href="setfunc.html" title="Appendix��3.�� Berkeley DB Application Space Static Functions" />
12    <link rel="next" href="db_env_set_func_dirfree.html" title="db_env_set_func_dirfree" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">db_env_set_func_close</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="setfunc.html">Prev</a>��</td>
22          <th width="60%" align="center">Appendix��3.��
23                Berkeley DB Application Space Static Functions
24        </th>
25          <td width="20%" align="right">��<a accesskey="n" href="db_env_set_func_dirfree.html">Next</a></td>
26        </tr>
27      </table>
28      <hr />
29    </div>
30    <div class="sect1" lang="en" xml:lang="en">
31      <div class="titlepage">
32        <div>
33          <div>
34            <h2 class="title" style="clear: both"><a id="db_env_set_func_close"></a>db_env_set_func_close</h2>
35          </div>
36        </div>
37      </div>
38      <pre class="programlisting">#include &lt;db.h&gt;
39
40int
41db_env_set_func_close(int (*func_close)(int fd));  </pre>
42      <p>
43         Replace Berkeley DB calls to the IEEE/ANSI Std 1003.1 (POSIX)
44         <span class="bold"><strong>close</strong></span> function with <span class="bold"><strong>func_close</strong></span>, which must conform to the standard
45         interface specification.
46    </p>
47      <p>
48         The <code class="function">db_env_set_func_close()</code> function configures all operations performed
49         by a process and all of its threads of control, not operations
50         confined to a single database environment.
51    </p>
52      <p>
53         Although the <code class="function">db_env_set_func_close()</code> function may be called at any time
54         during the life of the application, it should normally be called
55         before making calls to the <a class="xref" href="envcreate.html" title="db_env_create">db_env_create</a> or
56         <a class="xref" href="dbcreate.html" title="db_create">db_create</a> methods.
57    </p>
58      <p>
59         The <code class="function">db_env_set_func_close()</code> <span>
60                  function returns a non-zero error value on failure and 0 on success.
61            </span>
62    </p>
63      <div class="sect2" lang="en" xml:lang="en">
64        <div class="titlepage">
65          <div>
66            <div>
67              <h3 class="title"><a id="id1718409"></a>Parameters</h3>
68            </div>
69          </div>
70        </div>
71        <div class="sect3" lang="en" xml:lang="en">
72          <div class="titlepage">
73            <div>
74              <div>
75                <h4 class="title"><a id="id1718484"></a>func_close</h4>
76              </div>
77            </div>
78          </div>
79          <p>
80                          The <span class="bold"><strong>func_close</strong></span> parameter is the
81                          replacement function.  It must conform to the standard interface
82                          specification.
83                     </p>
84        </div>
85      </div>
86      <div class="sect2" lang="en" xml:lang="en">
87        <div class="titlepage">
88          <div>
89            <div>
90              <h3 class="title"><a id="id1718618"></a>See Also</h3>
91            </div>
92          </div>
93        </div>
94        <p>
95          <a href="../../programmer_reference/program_runtime.html" class="olink">Run-time configuration</a>
96
97     </p>
98      </div>
99    </div>
100    <div class="navfooter">
101      <hr />
102      <table width="100%" summary="Navigation footer">
103        <tr>
104          <td width="40%" align="left"><a accesskey="p" href="setfunc.html">Prev</a>��</td>
105          <td width="20%" align="center">
106            <a accesskey="u" href="setfunc.html">Up</a>
107          </td>
108          <td width="40%" align="right">��<a accesskey="n" href="db_env_set_func_dirfree.html">Next</a></td>
109        </tr>
110        <tr>
111          <td width="40%" align="left" valign="top">Appendix��3.��
112                Berkeley DB Application Space Static Functions
113        ��</td>
114          <td width="20%" align="center">
115            <a accesskey="h" href="index.html">Home</a>
116          </td>
117          <td width="40%" align="right" valign="top">��db_env_set_func_dirfree</td>
118        </tr>
119      </table>
120    </div>
121  </body>
122</html>
123