1
<!--$Id: memp_fclose.so,v 10.24 2001/04/18 13:44:48 bostic Exp $-->
2
<!--Copyright 1997-2001 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
6
<title>Berkeley DB: memp_fclose</title>
7
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
11
<a name="2"><!--meow--></a>
12
<table width="100%"><tr valign=top>
17
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
25
memp_fclose(DB_MPOOLFILE *mpf);
28
<p>The memp_fclose function closes the source file indicated by the
29
DB_MPOOLFILE structure. Calling memp_fclose does not imply a call
30
to <a href="../api_c/memp_fsync.html">memp_fsync</a>; that is, no pages are written to the source file
31
as as a result of calling memp_fclose.
32
<p>In addition, if the DB_MPOOLFILE was temporary, any underlying
33
files created for this DB_MPOOLFILE will be removed.
34
<p>After memp_fclose has been called, regardless of its return, the
35
DB_MPOOLFILE handle may not be accessed again.
36
<p>The memp_fclose function returns a non-zero error value on failure and 0 on success.
38
<p>The memp_fclose function may fail and return a non-zero error for errors specified for other Berkeley DB and C library or system functions.
39
If a catastrophic error has occurred, the memp_fclose function may fail and return
40
<a href="../ref/program/errorret.html#DB_RUNRECOVERY">DB_RUNRECOVERY</a>, in which case all subsequent Berkeley DB calls will fail
43
<a href="../api_c/env_set_cachesize.html">DB_ENV->set_cachesize</a>,
44
<a href="../api_c/env_set_mp_mmapsize.html">DB_ENV->set_mp_mmapsize</a>,
45
<a href="../api_c/memp_fclose.html">memp_fclose</a>,
46
<a href="../api_c/memp_fget.html">memp_fget</a>,
47
<a href="../api_c/memp_fopen.html">memp_fopen</a>,
48
<a href="../api_c/memp_fput.html">memp_fput</a>,
49
<a href="../api_c/memp_fset.html">memp_fset</a>,
50
<a href="../api_c/memp_fsync.html">memp_fsync</a>,
51
<a href="../api_c/memp_register.html">memp_register</a>,
52
<a href="../api_c/memp_stat.html">memp_stat</a>,
53
<a href="../api_c/memp_sync.html">memp_sync</a>,
55
<a href="../api_c/memp_trickle.html">memp_trickle</a>.
57
<table width="100%"><tr><td><br></td><td align=right>
58
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
60
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>