Sophie

Sophie

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

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: platform.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">platform.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="platform_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_PLATFORM_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_PLATFORM_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;stdio.h&gt;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#if !defined(POLARSSL_PLATFORM_NO_STD_FUNCTIONS)</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#if !defined(POLARSSL_PLATFORM_STD_PRINTF)</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="platform_8h.html#a22aabe4cf4343a256484784413191bf7">   53</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_PLATFORM_STD_PRINTF   printf </span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#if !defined(POLARSSL_PLATFORM_STD_FPRINTF)</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="platform_8h.html#a0741ff0195cd01b7c948eac945121251">   56</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_PLATFORM_STD_FPRINTF fprintf </span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#if !defined(POLARSSL_PLATFORM_STD_MALLOC)</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="platform_8h.html#abfcce4e5e89766e7ccc0b578acdcf34d">   59</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_PLATFORM_STD_MALLOC   malloc </span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#if !defined(POLARSSL_PLATFORM_STD_FREE)</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="platform_8h.html#a7cefe57ae9328776e8061c74654b8480">   62</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_PLATFORM_STD_FREE       free </span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#else </span><span class="comment">/* POLARSSL_PLATFORM_NO_STD_FUNCTIONS */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#if defined(POLARSSL_PLATFORM_STD_MEM_HDR)</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include POLARSSL_PLATFORM_STD_MEM_HDR</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_PLATFORM_NO_STD_FUNCTIONS */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="comment">/* \} name SECTION: Module settings */</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="comment"> * The function pointers for malloc and free</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">#if defined(POLARSSL_PLATFORM_MEMORY)</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor"></span><span class="keyword">extern</span> <span class="keywordtype">void</span> * (*polarssl_malloc)( <span class="keywordtype">size_t</span> len );</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="keyword">extern</span> void (*<a class="code" href="platform_8h.html#a3c8219c194813f302bf78fe73566cb2d">polarssl_free</a>)( <span class="keywordtype">void</span> *ptr );</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="keywordtype">int</span> platform_set_malloc_free( <span class="keywordtype">void</span> * (*malloc_func)( <span class="keywordtype">size_t</span> ),</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                              <span class="keywordtype">void</span> (*free_func)( <span class="keywordtype">void</span> * ) );</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">#else </span><span class="comment">/* POLARSSL_PLATFORM_ENTROPY */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="platform_8h.html#a2a0cfb9e59f28e2a1a5fd1880fb20d4b">   90</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define polarssl_malloc     malloc</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="platform_8h.html#a3c8219c194813f302bf78fe73566cb2d">   91</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define polarssl_free       free</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_PLATFORM_ENTROPY */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment"> * The function pointers for printf</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">#if defined(POLARSSL_PLATFORM_PRINTF_ALT)</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor"></span><span class="keyword">extern</span> int (*<a class="code" href="platform_8h.html#afc6a7362c0f0c9cfa8fc76b3281e2b37">polarssl_printf</a>)( <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ... );</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="keywordtype">int</span> platform_set_printf( <span class="keywordtype">int</span> (*printf_func)( <span class="keyword">const</span> <span class="keywordtype">char</span> *, ... ) );</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">#else </span><span class="comment">/* POLARSSL_PLATFORM_PRINTF_ALT */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="platform_8h.html#afc6a7362c0f0c9cfa8fc76b3281e2b37">  109</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define polarssl_printf     printf</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_PLATFORM_PRINTF_ALT */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment"> * The function pointers for fprintf</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#if defined(POLARSSL_PLATFORM_FPRINTF_ALT)</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor"></span><span class="keyword">extern</span> int (*<a class="code" href="platform_8h.html#a1cf50644470132d69e084ce34f4182fe">polarssl_fprintf</a>)( FILE *stream, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ... );</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="keywordtype">int</span> platform_set_fprintf( <span class="keywordtype">int</span> (*fprintf_func)( FILE *stream, <span class="keyword">const</span> <span class="keywordtype">char</span> *,</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;                                               ... ) );</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="platform_8h.html#a1cf50644470132d69e084ce34f4182fe">  121</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define polarssl_fprintf    fprintf</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor"></span>}</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* platform.h */</span><span class="preprocessor"></span></div>
<div class="ttc" id="platform_8h_html_a3c8219c194813f302bf78fe73566cb2d"><div class="ttname"><a href="platform_8h.html#a3c8219c194813f302bf78fe73566cb2d">polarssl_free</a></div><div class="ttdeci">#define polarssl_free</div><div class="ttdef"><b>Definition:</b> <a href="platform_8h_source.html#l00091">platform.h:91</a></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="platform_8h_html_afc6a7362c0f0c9cfa8fc76b3281e2b37"><div class="ttname"><a href="platform_8h.html#afc6a7362c0f0c9cfa8fc76b3281e2b37">polarssl_printf</a></div><div class="ttdeci">#define polarssl_printf</div><div class="ttdef"><b>Definition:</b> <a href="platform_8h_source.html#l00109">platform.h:109</a></div></div>
<div class="ttc" id="platform_8h_html_a1cf50644470132d69e084ce34f4182fe"><div class="ttname"><a href="platform_8h.html#a1cf50644470132d69e084ce34f4182fe">polarssl_fprintf</a></div><div class="ttdeci">#define polarssl_fprintf</div><div class="ttdef"><b>Definition:</b> <a href="platform_8h_source.html#l00121">platform.h:121</a></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>