Debian Codegraph @

docs/api_reference/C/mempset_ftype.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_MPOOLFILE-&gt;set_ftype()</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="memp.html" title="Chapter 8.  The DB_MPOOLFILE Handle" />
11 <link rel="prev" href="mempset_flags.html" title="DB_MPOOLFILE-&gt;set_flags()" />
12 <link rel="next" href="mempset_lsn_offset.html" title="DB_MPOOLFILE-&gt;set_lsn_offset()" />
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_MPOOLFILE-&gt;set_ftype()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="mempset_flags.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 8. 
26 The DB_MPOOLFILE Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="mempset_lsn_offset.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="mempset_ftype"></a>DB_MPOOLFILE-&gt;set_ftype()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_MPOOLFILE-&gt;set_ftype(DB_MPOOLFILE *mpf, int ftype); </pre>
45 <p>
46 The <code class="methodname">DB_MPOOLFILE-&gt;set_ftype()</code> method specifies a file type for the
47 purposes of input or output processing of the file's pages as they are
48 read from or written to, the backing filesystem store.
49 </p>
50 <p>
51 The <code class="methodname">DB_MPOOLFILE-&gt;set_ftype()</code> method configures a file in the
52 cache, not only operations performed using the specified
53 <a class="link" href="memp.html" title="Chapter 8.  The DB_MPOOLFILE Handle">DB_MPOOLFILE</a> handle.
54 </p>
55 <p>
56 The <code class="methodname">DB_MPOOLFILE-&gt;set_ftype()</code> method may not be called after the
57 <a class="xref" href="mempfopen.html" title="DB_MPOOLFILE-&gt;open()">DB_MPOOLFILE-&gt;open()</a>
58 method is called. If the file is already open in the cache when
59 <a class="xref" href="mempfopen.html" title="DB_MPOOLFILE-&gt;open()">DB_MPOOLFILE-&gt;open()</a> is
60 called, the information specified to <code class="methodname">DB_MPOOLFILE-&gt;set_ftype()</code> will
61 replace the existing information.
62 </p>
63 <p>
64 The <code class="methodname">DB_MPOOLFILE-&gt;set_ftype()</code> <span>
65 <span>
66 method returns a non-zero error value on failure and 0 on success.
67 </span>
68
69 </span>
70 </p>
71 <div class="sect2" lang="en" xml:lang="en">
72 <div class="titlepage">
73 <div>
74 <div>
75 <h3 class="title"><a id="idp53612160"></a>Parameters</h3>
76 </div>
77 </div>
78 </div>
79 <div class="sect3" lang="en" xml:lang="en">
80 <div class="titlepage">
81 <div>
82 <div>
83 <h4 class="title"><a id="idp53611464"></a>ftype</h4>
84 </div>
85 </div>
86 </div>
87 <p>
88 The <span class="bold"><strong>ftype</strong></span> parameter sets the file's
89 type for the purposes of input and output processing. The <span class="bold"><strong>ftype</strong></span> must be the same as a <span class="bold"><strong>ftype</strong></span> parameter previously specified to the
90 <a class="xref" href="mempregister.html" title="DB_ENV-&gt;memp_register()">DB_ENV-&gt;memp_register()</a>
91 method.
92 </p>
93 </div>
94 </div>
95 <div class="sect2" lang="en" xml:lang="en">
96 <div class="titlepage">
97 <div>
98 <div>
99 <h3 class="title"><a id="idp53570856"></a>Class</h3>
100 </div>
101 </div>
102 </div>
103 <p>
104 <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a>, <a class="link" href="memp.html" title="Chapter 8.  The DB_MPOOLFILE Handle">DB_MPOOLFILE</a>
105 </p>
106 </div>
107 <div class="sect2" lang="en" xml:lang="en">
108 <div class="titlepage">
109 <div>
110 <div>
111 <h3 class="title"><a id="idp53582224"></a>See Also</h3>
112 </div>
113 </div>
114 </div>
115 <p>
116 <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a>
117 </p>
118 </div>
119 </div>
120 <div class="navfooter">
121 <hr />
122 <table width="100%" summary="Navigation footer">
123 <tr>
124 <td width="40%" align="left"><a accesskey="p" href="mempset_flags.html">Prev</a> </td>
125 <td width="20%" align="center">
126 <a accesskey="u" href="memp.html">Up</a>
127 </td>
128 <td width="40%" align="right"> <a accesskey="n" href="mempset_lsn_offset.html">Next</a></td>
129 </tr>
130 <tr>
131 <td width="40%" align="left" valign="top">DB_MPOOLFILE-&gt;set_flags() </td>
132 <td width="20%" align="center">
133 <a accesskey="h" href="index.html">Home</a>
134 </td>
135 <td width="40%" align="right" valign="top"> DB_MPOOLFILE-&gt;set_lsn_offset()</td>
136 </tr>
137 </table>
138 </div>
139 </body>
140 </html>