• 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;set_msgfile()</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_msgcall.html" title="DB_ENV-&gt;set_msgcall()" />
12    <link rel="next" href="envset_shm_key.html" title="DB_ENV-&gt;set_shm_key()" />
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;set_msgfile()</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="envset_msgcall.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="envset_shm_key.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="envset_msgfile"></a>DB_ENV-&gt;set_msgfile()</h2>
35          </div>
36        </div>
37      </div>
38      <pre class="programlisting">#include &lt;db.h&gt;
39
40void
41DB_ENV-&gt;set_msgfile(DB_ENV *dbenv, FILE *msgfile);  </pre>
42      <p>
43         There are interfaces in the Berkeley DB library which either directly
44         output informational messages or statistical information, or configure
45         the library to output such messages when performing other operations,
46         for example, <a class="xref" href="envset_verbose.html" title="DB_ENV-&gt;set_verbose()">DB_ENV-&gt;set_verbose()</a>  and
47         <a class="xref" href="envstat.html" title="DB_ENV-&gt;stat_print()">DB_ENV-&gt;stat_print()</a>.
48    </p>
49      <p>
50         The <code class="methodname">DB_ENV-&gt;set_msgfile()</code> and 
51         <a class="xref" href="dbset_msgfile.html" title="DB-&gt;set_msgfile()">DB-&gt;set_msgfile()</a>  methods
52         are used to display these messages for the application. In this case
53         the message will include a trailing &lt;newline&gt; character.
54    </p>
55      <p>
56         Setting <span class="bold"><strong>msgfile</strong></span> to NULL unconfigures
57         the interface.
58    </p>
59      <p>
60         Alternatively, you can use the
61            
62
63         <a class="xref" href="envset_msgcall.html" title="DB_ENV-&gt;set_msgcall()">DB_ENV-&gt;set_msgcall()</a>  or
64         <a class="xref" href="dbset_msgcall.html" title="DB-&gt;set_msgcall()">DB-&gt;set_msgcall()</a>
65         methods to capture the additional error information in a way that does
66         not use C library FILE *'s.
67         
68    </p>
69      <p>
70         The <code class="methodname">DB_ENV-&gt;set_msgfile()</code> method configures operations performed
71         using the specified <a class="link" href="env.html" title="Chapter��5.�� The DB_ENV Handle">DB_ENV</a>  handle, not all
72         operations performed on the underlying database environment.
73    </p>
74      <p>
75         The <code class="methodname">DB_ENV-&gt;set_msgfile()</code> method may be called at any time during the
76         life of the application.
77    </p>
78      <div class="sect2" lang="en" xml:lang="en">
79        <div class="titlepage">
80          <div>
81            <div>
82              <h3 class="title"><a id="id1671163"></a>Parameters</h3>
83            </div>
84          </div>
85        </div>
86        <div class="sect3" lang="en" xml:lang="en">
87          <div class="titlepage">
88            <div>
89              <div>
90                <h4 class="title"><a id="id1671311"></a>msgfile</h4>
91              </div>
92            </div>
93          </div>
94          <p>
95                          The <span class="bold"><strong>msgfile</strong></span> parameter is a C library
96                          FILE * to be used for displaying messages.
97                     </p>
98        </div>
99      </div>
100      <div class="sect2" lang="en" xml:lang="en">
101        <div class="titlepage">
102          <div>
103            <div>
104              <h3 class="title"><a id="id1671585"></a>Class</h3>
105            </div>
106          </div>
107        </div>
108        <p>
109                <a class="link" href="env.html" title="Chapter��5.�� The DB_ENV Handle">DB_ENV</a>  
110            </p>
111      </div>
112      <div class="sect2" lang="en" xml:lang="en">
113        <div class="titlepage">
114          <div>
115            <div>
116              <h3 class="title"><a id="id1671477"></a>See Also</h3>
117            </div>
118          </div>
119        </div>
120        <p>
121                     <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a> 
122                </p>
123      </div>
124    </div>
125    <div class="navfooter">
126      <hr />
127      <table width="100%" summary="Navigation footer">
128        <tr>
129          <td width="40%" align="left"><a accesskey="p" href="envset_msgcall.html">Prev</a>��</td>
130          <td width="20%" align="center">
131            <a accesskey="u" href="env.html">Up</a>
132          </td>
133          <td width="40%" align="right">��<a accesskey="n" href="envset_shm_key.html">Next</a></td>
134        </tr>
135        <tr>
136          <td width="40%" align="left" valign="top">DB_ENV-&gt;set_msgcall()��</td>
137          <td width="20%" align="center">
138            <a accesskey="h" href="index.html">Home</a>
139          </td>
140          <td width="40%" align="right" valign="top">��DB_ENV-&gt;set_shm_key()</td>
141        </tr>
142      </table>
143    </div>
144  </body>
145</html>
146