D7net Mini Sh3LL v1
Current File : //libx32/../share/fwupd/../doc/intltool-debian/../libaprutil1-dev/html/apr__sdbm_8h_source.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Apache Portable Runtime Utility Library: apr_sdbm.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Apache Portable Runtime Utility Library
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">apr_sdbm.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="apr__sdbm_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* Licensed to the Apache Software Foundation (ASF) under one or more</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * this work for additional information regarding copyright ownership.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * (the "License"); you may not use this file except in compliance with</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * the License. You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * limitations under the License.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * sdbm - ndbm work-alike hashed database library</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * based on Per-Ake Larson's Dynamic Hashing algorithms. BIT 18 (1978).</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * author: oz@nexus.yorku.ca</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * status: ex-public domain</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifndef APR_SDBM_H</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#define APR_SDBM_H</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "apu.h"</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "apr_errno.h"</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "apr_file_io.h"</span> <span class="comment">/* for apr_fileperms_t */</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6"> 44</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6">apr_sdbm_t</a> <a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6">apr_sdbm_t</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structapr__sdbm__datum__t.html"> 49</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structapr__sdbm__datum__t.html#a927c668d3912a4cc8466b0f551d00169"> 51</a></span>  <span class="keywordtype">char</span> *<a class="code" href="structapr__sdbm__datum__t.html#a927c668d3912a4cc8466b0f551d00169">dptr</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="comment">/* apr_ssize_t for release 2.0??? */</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structapr__sdbm__datum__t.html#aedbd0295ba540695d5b407f1dec90eb5"> 54</a></span>  <span class="keywordtype">int</span> <a class="code" href="structapr__sdbm__datum__t.html#aedbd0295ba540695d5b407f1dec90eb5">dsize</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> } <a class="code" href="structapr__sdbm__datum__t.html">apr_sdbm_datum_t</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment">/* The extensions used for the database files */</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gafabaf97932efa0eebfb1cc6b692a111f"> 59</a></span> <span class="preprocessor">#define APR_SDBM_DIRFEXT ".dir"</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaa03fa1d1183240ca0845c54cc07df557"> 61</a></span> <span class="preprocessor">#define APR_SDBM_PAGFEXT ".pag"</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment">/* flags to sdbm_store */</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gad42d896bab08b5e210f489fa59656807"> 64</a></span> <span class="preprocessor">#define APR_SDBM_INSERT 0 </span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="group___a_p_r___util___d_b_m___s_d_b_m.html#ga84e2252c9ddf5e6c64ed1be43d2d0e53"> 65</a></span> <span class="preprocessor">#define APR_SDBM_REPLACE 1 </span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="group___a_p_r___util___d_b_m___s_d_b_m.html#ga64cd385609059cf151e54c7046d92ec3"> 66</a></span> <span class="preprocessor">#define APR_SDBM_INSERTDUP 2 </span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="preprocessor">APU_DECLARE(apr_status_t) apr_sdbm_open(apr_sdbm_t **db, const char *name, </span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  apr_int32_t mode, </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  apr_fileperms_t perms, apr_pool_t *p);</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> APU_DECLARE(apr_status_t) <a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf684c3a70d2c9ebe02bb1e2fffe23e1e">apr_sdbm_close</a>(<a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6">apr_sdbm_t</a> *db);</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> APU_DECLARE(apr_status_t) <a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#ga2c2edd6a123d8ca2a6334fa8874b724d">apr_sdbm_lock</a>(<a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6">apr_sdbm_t</a> *db, <span class="keywordtype">int</span> type);</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> APU_DECLARE(apr_status_t) <a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gab96a7e08ddac3cb6bff97a822b68de14">apr_sdbm_unlock</a>(<a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6">apr_sdbm_t</a> *db);</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> APU_DECLARE(apr_status_t) <a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#ga7d9eae450e9f9a2f1bcf626a3f8ca43f">apr_sdbm_fetch</a>(<a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6">apr_sdbm_t</a> *db, </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="structapr__sdbm__datum__t.html">apr_sdbm_datum_t</a> *value, </div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="structapr__sdbm__datum__t.html">apr_sdbm_datum_t</a> key);</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> APU_DECLARE(apr_status_t) <a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gac12993b882c50afa0777945ea4a88572">apr_sdbm_store</a>(<a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6">apr_sdbm_t</a> *db, <a class="code" href="structapr__sdbm__datum__t.html">apr_sdbm_datum_t</a> key,</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="structapr__sdbm__datum__t.html">apr_sdbm_datum_t</a> value, <span class="keywordtype">int</span> opt);</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  </div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> APU_DECLARE(apr_status_t) <a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#ga5744462c07c40d26c275beaeb902ff9c">apr_sdbm_delete</a>(<a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6">apr_sdbm_t</a> *db, </div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">const</span> <a class="code" href="structapr__sdbm__datum__t.html">apr_sdbm_datum_t</a> key);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  </div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> APU_DECLARE(apr_status_t) <a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gae5410d9dc681393e597f492f30c6447f">apr_sdbm_firstkey</a>(<a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6">apr_sdbm_t</a> *db, <a class="code" href="structapr__sdbm__datum__t.html">apr_sdbm_datum_t</a> *key);</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  </div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> APU_DECLARE(apr_status_t) <a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#ga77d7f848ccb68e9f465a988d0af80911">apr_sdbm_nextkey</a>(<a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6">apr_sdbm_t</a> *db, <a class="code" href="structapr__sdbm__datum__t.html">apr_sdbm_datum_t</a> *key);</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  </div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> APU_DECLARE(<span class="keywordtype">int</span>) <a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gabad67008f83fd219173acc5abdd0b42d">apr_sdbm_rdonly</a>(<a class="code" href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6">apr_sdbm_t</a> *db);</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="preprocessor">#endif </span><span class="comment">/* APR_SDBM_H */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="agroup___a_p_r___util___d_b_m___s_d_b_m_html_gac12993b882c50afa0777945ea4a88572"><div class="ttname"><a href="group___a_p_r___util___d_b_m___s_d_b_m.html#gac12993b882c50afa0777945ea4a88572">apr_sdbm_store</a></div><div class="ttdeci">apr_status_t apr_sdbm_store(apr_sdbm_t *db, apr_sdbm_datum_t key, apr_sdbm_datum_t value, int opt)</div></div>
<div class="ttc" id="agroup___a_p_r___util___d_b_m___s_d_b_m_html_gaf24cdea6e4884036a40484259efa68c6"><div class="ttname"><a href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf24cdea6e4884036a40484259efa68c6">apr_sdbm_t</a></div><div class="ttdeci">struct apr_sdbm_t apr_sdbm_t</div><div class="ttdef"><b>Definition:</b> apr_sdbm.h:44</div></div>
<div class="ttc" id="agroup___a_p_r___util___d_b_m___s_d_b_m_html_ga2c2edd6a123d8ca2a6334fa8874b724d"><div class="ttname"><a href="group___a_p_r___util___d_b_m___s_d_b_m.html#ga2c2edd6a123d8ca2a6334fa8874b724d">apr_sdbm_lock</a></div><div class="ttdeci">apr_status_t apr_sdbm_lock(apr_sdbm_t *db, int type)</div></div>
<div class="ttc" id="agroup___a_p_r___util___d_b_m___s_d_b_m_html_ga7d9eae450e9f9a2f1bcf626a3f8ca43f"><div class="ttname"><a href="group___a_p_r___util___d_b_m___s_d_b_m.html#ga7d9eae450e9f9a2f1bcf626a3f8ca43f">apr_sdbm_fetch</a></div><div class="ttdeci">apr_status_t apr_sdbm_fetch(apr_sdbm_t *db, apr_sdbm_datum_t *value, apr_sdbm_datum_t key)</div></div>
<div class="ttc" id="agroup___a_p_r___util___d_b_m___s_d_b_m_html_gab96a7e08ddac3cb6bff97a822b68de14"><div class="ttname"><a href="group___a_p_r___util___d_b_m___s_d_b_m.html#gab96a7e08ddac3cb6bff97a822b68de14">apr_sdbm_unlock</a></div><div class="ttdeci">apr_status_t apr_sdbm_unlock(apr_sdbm_t *db)</div></div>
<div class="ttc" id="agroup___a_p_r___util___d_b_m___s_d_b_m_html_ga77d7f848ccb68e9f465a988d0af80911"><div class="ttname"><a href="group___a_p_r___util___d_b_m___s_d_b_m.html#ga77d7f848ccb68e9f465a988d0af80911">apr_sdbm_nextkey</a></div><div class="ttdeci">apr_status_t apr_sdbm_nextkey(apr_sdbm_t *db, apr_sdbm_datum_t *key)</div></div>
<div class="ttc" id="agroup___a_p_r___util___d_b_m___s_d_b_m_html_ga5744462c07c40d26c275beaeb902ff9c"><div class="ttname"><a href="group___a_p_r___util___d_b_m___s_d_b_m.html#ga5744462c07c40d26c275beaeb902ff9c">apr_sdbm_delete</a></div><div class="ttdeci">apr_status_t apr_sdbm_delete(apr_sdbm_t *db, const apr_sdbm_datum_t key)</div></div>
<div class="ttc" id="astructapr__sdbm__datum__t_html"><div class="ttname"><a href="structapr__sdbm__datum__t.html">apr_sdbm_datum_t</a></div><div class="ttdef"><b>Definition:</b> apr_sdbm.h:49</div></div>
<div class="ttc" id="agroup___a_p_r___util___d_b_m___s_d_b_m_html_gaf684c3a70d2c9ebe02bb1e2fffe23e1e"><div class="ttname"><a href="group___a_p_r___util___d_b_m___s_d_b_m.html#gaf684c3a70d2c9ebe02bb1e2fffe23e1e">apr_sdbm_close</a></div><div class="ttdeci">apr_status_t apr_sdbm_close(apr_sdbm_t *db)</div></div>
<div class="ttc" id="agroup___a_p_r___util___d_b_m___s_d_b_m_html_gae5410d9dc681393e597f492f30c6447f"><div class="ttname"><a href="group___a_p_r___util___d_b_m___s_d_b_m.html#gae5410d9dc681393e597f492f30c6447f">apr_sdbm_firstkey</a></div><div class="ttdeci">apr_status_t apr_sdbm_firstkey(apr_sdbm_t *db, apr_sdbm_datum_t *key)</div></div>
<div class="ttc" id="astructapr__sdbm__datum__t_html_a927c668d3912a4cc8466b0f551d00169"><div class="ttname"><a href="structapr__sdbm__datum__t.html#a927c668d3912a4cc8466b0f551d00169">apr_sdbm_datum_t::dptr</a></div><div class="ttdeci">char * dptr</div><div class="ttdef"><b>Definition:</b> apr_sdbm.h:51</div></div>
<div class="ttc" id="astructapr__sdbm__datum__t_html_aedbd0295ba540695d5b407f1dec90eb5"><div class="ttname"><a href="structapr__sdbm__datum__t.html#aedbd0295ba540695d5b407f1dec90eb5">apr_sdbm_datum_t::dsize</a></div><div class="ttdeci">int dsize</div><div class="ttdef"><b>Definition:</b> apr_sdbm.h:54</div></div>
<div class="ttc" id="agroup___a_p_r___util___d_b_m___s_d_b_m_html_gabad67008f83fd219173acc5abdd0b42d"><div class="ttname"><a href="group___a_p_r___util___d_b_m___s_d_b_m.html#gabad67008f83fd219173acc5abdd0b42d">apr_sdbm_rdonly</a></div><div class="ttdeci">int apr_sdbm_rdonly(apr_sdbm_t *db)</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
AnonSec - 2021 | Recode By D7net