Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 9e72f3e7ecf68cce016a7c5c59e863d3 > files > 599

lib64polarssl-devel-1.3.8-1.mga4.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.5"/>
<title>PolarSSL v1.3.8: memory_buffer_alloc.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="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 style="padding-left: 0.5em;">
   <div id="projectname">PolarSSL v1.3.8
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6a9bbd12bf4e19a18c45e270f8fae3fd.html">include</a></li><li class="navelem"><a class="el" href="dir_04272d44da4745cf8b8bfc767d6c6523.html">polarssl</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">memory_buffer_alloc.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="memory__buffer__alloc_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>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#ifndef POLARSSL_MEMORY_BUFFER_ALLOC_H</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_MEMORY_BUFFER_ALLOC_H</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#if !defined(POLARSSL_CONFIG_FILE)</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="config_8h.html">config.h</a>&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include POLARSSL_CONFIG_FILE</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#if !defined(POLARSSL_MEMORY_ALIGN_MULTIPLE)</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="memory__buffer__alloc_8h.html#a3207cb8b170cc1fe695783d1809c32a4">   47</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_MEMORY_ALIGN_MULTIPLE       4 </span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">/* \} name SECTION: Module settings */</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="memory__buffer__alloc_8h.html#ae9b20acb59b74c83292f835ee94b2b42">   52</a></span>&#160;<span class="preprocessor">#define MEMORY_VERIFY_NONE         0</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="memory__buffer__alloc_8h.html#a129f05dbba09d85d2b880faeca2a6eff">   53</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define MEMORY_VERIFY_ALLOC        (1 &lt;&lt; 0)</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="memory__buffer__alloc_8h.html#adc781138868927caa03bfe4b58c4e80d">   54</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define MEMORY_VERIFY_FREE         (1 &lt;&lt; 1)</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="memory__buffer__alloc_8h.html#a8e4c201d28d750e49911028b8062bb8f">   55</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define MEMORY_VERIFY_ALWAYS       (MEMORY_VERIFY_ALLOC | MEMORY_VERIFY_FREE)</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="keywordtype">int</span> <a class="code" href="memory__buffer__alloc_8h.html#af2745e4cbfe3339911913ed02dccce91">memory_buffer_alloc_init</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> len );</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="keywordtype">void</span> <a class="code" href="memory__buffer__alloc_8h.html#a422e29785ed0ae2e31ca9688a0f18267">memory_buffer_alloc_free</a>( <span class="keywordtype">void</span> );</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keywordtype">void</span> <a class="code" href="memory__buffer__alloc_8h.html#a0cfecc13142981464f1f746863542a86">memory_buffer_set_verify</a>( <span class="keywordtype">int</span> verify );</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#if defined(POLARSSL_MEMORY_DEBUG)</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keywordtype">void</span> memory_buffer_alloc_status( <span class="keywordtype">void</span> );</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_MEMORY_DEBUG */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keywordtype">int</span> <a class="code" href="memory__buffer__alloc_8h.html#a9bf18c3768a4c35d6df53bc781b18d1a">memory_buffer_alloc_verify</a>( <span class="keywordtype">void</span> );</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor"></span>}</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* memory_buffer_alloc.h */</span><span class="preprocessor"></span></div>
<div class="ttc" id="memory__buffer__alloc_8h_html_a422e29785ed0ae2e31ca9688a0f18267"><div class="ttname"><a href="memory__buffer__alloc_8h.html#a422e29785ed0ae2e31ca9688a0f18267">memory_buffer_alloc_free</a></div><div class="ttdeci">void memory_buffer_alloc_free(void)</div><div class="ttdoc">Free the mutex for thread-safety and clear remaining memory. </div></div>
<div class="ttc" id="config_8h_html"><div class="ttname"><a href="config_8h.html">config.h</a></div><div class="ttdoc">Configuration options (set of defines) </div></div>
<div class="ttc" id="memory__buffer__alloc_8h_html_a0cfecc13142981464f1f746863542a86"><div class="ttname"><a href="memory__buffer__alloc_8h.html#a0cfecc13142981464f1f746863542a86">memory_buffer_set_verify</a></div><div class="ttdeci">void memory_buffer_set_verify(int verify)</div><div class="ttdoc">Determine when the allocator should automatically verify the state of the entire chain of headers / m...</div></div>
<div class="ttc" id="memory__buffer__alloc_8h_html_af2745e4cbfe3339911913ed02dccce91"><div class="ttname"><a href="memory__buffer__alloc_8h.html#af2745e4cbfe3339911913ed02dccce91">memory_buffer_alloc_init</a></div><div class="ttdeci">int memory_buffer_alloc_init(unsigned char *buf, size_t len)</div><div class="ttdoc">Initialize use of stack-based memory allocator. </div></div>
<div class="ttc" id="memory__buffer__alloc_8h_html_a9bf18c3768a4c35d6df53bc781b18d1a"><div class="ttname"><a href="memory__buffer__alloc_8h.html#a9bf18c3768a4c35d6df53bc781b18d1a">memory_buffer_alloc_verify</a></div><div class="ttdeci">int memory_buffer_alloc_verify(void)</div><div class="ttdoc">Verifies that all headers in the memory buffer are correct and contain sane values. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jul 31 2014 11:35:51 for PolarSSL v1.3.8 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>