• 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-&gt;stat_print()</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="env.html" title="Chapter��5.�� The DB_ENV Handle" />
11    <link rel="prev" href="envset_verbose.html" title="DB_ENV-&gt;set_verbose()" />
12    <link rel="next" href="envstrerror.html" title="db_strerror" />
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-&gt;stat_print()</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="envset_verbose.html">Prev</a>��</td>
22          <th width="60%" align="center">Chapter��5.��
23                The DB_ENV Handle
24        </th>
25          <td width="20%" align="right">��<a accesskey="n" href="envstrerror.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="envstat"></a>DB_ENV-&gt;stat_print()</h2>
35          </div>
36        </div>
37      </div>
38      <pre class="programlisting">#include &lt;db.h&gt;
39
40int
41DB_ENV-&gt;stat_print(DB_ENV *dbenv, u_int32_t flags);  </pre>
42      <p>
43         The <code class="methodname">DB_ENV-&gt;stat_print()</code> method displays the default statistical
44         information. The information is printed to a specified output channel
45         (see the <a class="xref" href="envset_msgfile.html" title="DB_ENV-&gt;set_msgfile()">DB_ENV-&gt;set_msgfile()</a> 
46         method for more information), or passed to an application callback
47         function (see the <a class="xref" href="envset_msgcall.html" title="DB_ENV-&gt;set_msgcall()">DB_ENV-&gt;set_msgcall()</a> 
48         method for more information).
49    </p>
50      <p>
51             The <code class="methodname">DB_ENV-&gt;stat_print()</code> method may not be called before the 
52             <a class="xref" href="envopen.html" title="DB_ENV-&gt;open()">DB_ENV-&gt;open()</a>  method is called.
53    </p>
54      <p>
55         The <code class="methodname">DB_ENV-&gt;stat_print()</code> <span>
56            <span>
57                  method returns a non-zero error value on failure and 0 on success.
58            </span>
59            
60        </span>
61    </p>
62      <div class="sect2" lang="en" xml:lang="en">
63        <div class="titlepage">
64          <div>
65            <div>
66              <h3 class="title"><a id="id1673521"></a>Parameters</h3>
67            </div>
68          </div>
69        </div>
70        <div class="sect3" lang="en" xml:lang="en">
71          <div class="titlepage">
72            <div>
73              <div>
74                <h4 class="title"><a id="id1673488"></a>flags</h4>
75              </div>
76            </div>
77          </div>
78          <p>
79                          The <span class="bold"><strong>flags</strong></span> parameter must be set to 0
80                          or by bitwise inclusively <span class="bold"><strong>OR</strong></span>'ing
81                          together one or more of the following values:
82                     </p>
83          <div class="itemizedlist">
84            <ul type="disc">
85              <li>
86                <p><a id="stat_DB_STAT_ALL"></a>
87                  <code class="literal">DB_STAT_ALL</code>
88            </p>
89                <p>
90                Display all available information.
91            </p>
92              </li>
93              <li>
94                <p><a id="stat_DB_STAT_CLEAR"></a>
95                  <code class="literal">DB_STAT_CLEAR</code>
96            </p>
97                <p>
98                Reset statistics after displaying their values.
99            </p>
100              </li>
101              <li>
102                <p><a id="stat_DB_STAT_SUBSYSTEM"></a>
103                  <code class="literal">DB_STAT_SUBSYSTEM</code>
104            </p>
105                <p>
106                Display information for all configured subsystems.
107            </p>
108              </li>
109            </ul>
110          </div>
111        </div>
112      </div>
113      <div class="sect2" lang="en" xml:lang="en">
114        <div class="titlepage">
115          <div>
116            <div>
117              <h3 class="title"><a id="id1674185"></a>Class</h3>
118            </div>
119          </div>
120        </div>
121        <p>
122                <a class="link" href="env.html" title="Chapter��5.�� The DB_ENV Handle">DB_ENV</a>  
123            </p>
124      </div>
125      <div class="sect2" lang="en" xml:lang="en">
126        <div class="titlepage">
127          <div>
128            <div>
129              <h3 class="title"><a id="id1674077"></a>See Also</h3>
130            </div>
131          </div>
132        </div>
133        <p>
134                     <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a> 
135                </p>
136      </div>
137    </div>
138    <div class="navfooter">
139      <hr />
140      <table width="100%" summary="Navigation footer">
141        <tr>
142          <td width="40%" align="left"><a accesskey="p" href="envset_verbose.html">Prev</a>��</td>
143          <td width="20%" align="center">
144            <a accesskey="u" href="env.html">Up</a>
145          </td>
146          <td width="40%" align="right">��<a accesskey="n" href="envstrerror.html">Next</a></td>
147        </tr>
148        <tr>
149          <td width="40%" align="left" valign="top">DB_ENV-&gt;set_verbose()��</td>
150          <td width="20%" align="center">
151            <a accesskey="h" href="index.html">Home</a>
152          </td>
153          <td width="40%" align="right" valign="top">��db_strerror</td>
154        </tr>
155      </table>
156    </div>
157  </body>
158</html>
159