Debian Codegraph @

docs/api_reference/C/db_env_set_func_dirfree.html

raw symbols SCIP
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_dirfree</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 C.  Berkeley DB Application Space Static Functions" />
11 <link rel="prev" href="db_env_set_func_close.html" title="db_env_set_func_close" />
12 <link rel="next" href="db_env_set_func_dirlist.html" title="db_env_set_func_dirlist" />
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">db_env_set_func_dirfree</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="db_env_set_func_close.html">Prev</a> </td>
25 <th width="60%" align="center">Appendix C. 
26 Berkeley DB Application Space Static Functions
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="db_env_set_func_dirlist.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="db_env_set_func_dirfree"></a>db_env_set_func_dirfree</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 db_env_set_func_dirfree(void (*func_dirfree)(char **namesp, int cnt)); </pre>
45 <p>
46 The Berkeley DB library requires the ability to return any memory
47 allocated as part of the routine which reads through a directory and
48 creates a list of files that the directory contains (see
49 <a class="xref" href="db_env_set_func_dirlist.html" title="db_env_set_func_dirlist">db_env_set_func_dirlist</a>).
50 </p>
51 <p>
52 The <code class="function">db_env_set_func_dirfree()</code> function configures all operations performed
53 by a process and all of its threads of control, not operations
54 confined to a single database environment.
55 </p>
56 <p>
57 Although the <code class="function">db_env_set_func_dirfree()</code> function may be called at any time
58 during the life of the application, it should normally be called
59 before making calls to the <a class="xref" href="envcreate.html" title="db_env_create">db_env_create</a> or
60 <a class="xref" href="dbcreate.html" title="db_create">db_create</a> methods.
61 </p>
62 <p>
63 The <code class="function">db_env_set_func_dirfree()</code> <span>
64 function returns a non-zero error value on failure and 0 on success.
65 </span>
66 </p>
67 <div class="sect2" lang="en" xml:lang="en">
68 <div class="titlepage">
69 <div>
70 <div>
71 <h3 class="title"><a id="idp55567840"></a>Parameters</h3>
72 </div>
73 </div>
74 </div>
75 <div class="sect3" lang="en" xml:lang="en">
76 <div class="titlepage">
77 <div>
78 <div>
79 <h4 class="title"><a id="idp55568032"></a>func_dirfree</h4>
80 </div>
81 </div>
82 </div>
83 <p>
84 The <span class="bold"><strong>func_dirfree</strong></span> parameter is a
85 function which frees the memory returned from the
86 <a class="xref" href="db_env_set_func_dirlist.html" title="db_env_set_func_dirlist">db_env_set_func_dirlist</a>
87 function.
88 </p>
89 <p>
90 The <span class="bold"><strong>namesp</strong></span> and <span class="bold"><strong>cnt</strong></span> parameters to this function are the same
91 values as were returned by the
92 <a class="xref" href="db_env_set_func_dirlist.html" title="db_env_set_func_dirlist">db_env_set_func_dirlist</a>
93 function.
94 </p>
95 </div>
96 </div>
97 <div class="sect2" lang="en" xml:lang="en">
98 <div class="titlepage">
99 <div>
100 <div>
101 <h3 class="title"><a id="idp55564640"></a>See Also</h3>
102 </div>
103 </div>
104 </div>
105 <p>
106 <a href="../../programmer_reference/program_runtime.html" class="olink">Run-time configuration</a>
107
108 </p>
109 </div>
110 </div>
111 <div class="navfooter">
112 <hr />
113 <table width="100%" summary="Navigation footer">
114 <tr>
115 <td width="40%" align="left"><a accesskey="p" href="db_env_set_func_close.html">Prev</a> </td>
116 <td width="20%" align="center">
117 <a accesskey="u" href="setfunc.html">Up</a>
118 </td>
119 <td width="40%" align="right"> <a accesskey="n" href="db_env_set_func_dirlist.html">Next</a></td>
120 </tr>
121 <tr>
122 <td width="40%" align="left" valign="top">db_env_set_func_close </td>
123 <td width="20%" align="center">
124 <a accesskey="h" href="index.html">Home</a>
125 </td>
126 <td width="40%" align="right" valign="top"> db_env_set_func_dirlist</td>
127 </tr>
128 </table>
129 </div>
130 </body>
131 </html>