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_LOGC->close()</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="lsn.html" title="Chapter 7. The DB_LSN Handle" /> 11 <link rel="prev" href="logc.html" title="The DB_LOGC Handle" /> 12 <link rel="next" href="logcget.html" title="DB_LOGC->get()" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">DB_LOGC->close()</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="logc.html">Prev</a> </td> 22 <th width="60%" align="center">Chapter 7. 23 The DB_LSN Handle 24 </th> 25 <td width="20%" align="right"> <a accesskey="n" href="logcget.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="logcclose"></a>DB_LOGC->close()</h2> 35 </div> 36 </div> 37 </div> 38 <pre class="programlisting">#include <db.h> 39 40int 41DB_LOGC->close(DB_LOGC *cursor, u_int32_t flags); </pre> 42 <p> 43 The <code class="methodname">DB_LOGC->close()</code> method discards the log cursor. After 44 <code class="methodname">DB_LOGC->close()</code> has been called, regardless of its return, the 45 cursor handle may not be used again. 46 </p> 47 <p> 48 The <code class="methodname">DB_LOGC->close()</code> <span> 49 <span> 50 method returns a non-zero error value on failure and 0 on success. 51 </span> 52 53 </span> 54 </p> 55 <div class="sect2" lang="en" xml:lang="en"> 56 <div class="titlepage"> 57 <div> 58 <div> 59 <h3 class="title"><a id="id1684569"></a>Parameters</h3> 60 </div> 61 </div> 62 </div> 63 <div class="sect3" lang="en" xml:lang="en"> 64 <div class="titlepage"> 65 <div> 66 <div> 67 <h4 class="title"><a id="id1684575"></a>flags</h4> 68 </div> 69 </div> 70 </div> 71 <p> 72 The <span class="bold"><strong>flags</strong></span> parameter is currently 73 unused, and must be set to 0. 74 </p> 75 </div> 76 </div> 77 <div class="sect2" lang="en" xml:lang="en"> 78 <div class="titlepage"> 79 <div> 80 <div> 81 <h3 class="title"><a id="id1684721"></a>Errors</h3> 82 </div> 83 </div> 84 </div> 85 <p> 86 The <code class="methodname">DB_LOGC->close()</code> <span> 87 <span> 88 method may fail and return one of the following non-zero errors: 89 </span> 90 91 </span> 92 </p> 93 <div class="sect3" lang="en" xml:lang="en"> 94 <div class="titlepage"> 95 <div> 96 <div> 97 <h4 class="title"><a id="id1684645"></a>EINVAL</h4> 98 </div> 99 </div> 100 </div> 101 <p> 102 If the cursor is already closed; or if an invalid flag value or parameter was specified. 103 </p> 104 </div> 105 </div> 106 <div class="sect2" lang="en" xml:lang="en"> 107 <div class="titlepage"> 108 <div> 109 <div> 110 <h3 class="title"><a id="id1684402"></a>Class</h3> 111 </div> 112 </div> 113 </div> 114 <p> 115 <a class="link" href="env.html" title="Chapter 5. The DB_ENV Handle">DB_ENV</a>, 116 <a class="link" href="logc.html" title="The DB_LOGC Handle">DB_LOGC</a>, 117 <a class="link" href="lsn.html" title="Chapter 7. The DB_LSN Handle">DB_LSN</a> 118 </p> 119 </div> 120 <div class="sect2" lang="en" xml:lang="en"> 121 <div class="titlepage"> 122 <div> 123 <div> 124 <h3 class="title"><a id="id1684570"></a>See Also</h3> 125 </div> 126 </div> 127 </div> 128 <p> 129 <a class="xref" href="lsn.html#loglist" title="Logging Subsystem and Related Methods">Logging Subsystem and Related Methods</a> 130 </p> 131 </div> 132 </div> 133 <div class="navfooter"> 134 <hr /> 135 <table width="100%" summary="Navigation footer"> 136 <tr> 137 <td width="40%" align="left"><a accesskey="p" href="logc.html">Prev</a> </td> 138 <td width="20%" align="center"> 139 <a accesskey="u" href="lsn.html">Up</a> 140 </td> 141 <td width="40%" align="right"> <a accesskey="n" href="logcget.html">Next</a></td> 142 </tr> 143 <tr> 144 <td width="40%" align="left" valign="top"> 145 The DB_LOGC Handle 146 </td> 147 <td width="20%" align="center"> 148 <a accesskey="h" href="index.html">Home</a> 149 </td> 150 <td width="40%" align="right" valign="top"> DB_LOGC->get()</td> 151 </tr> 152 </table> 153 </div> 154 </body> 155</html> 156