<!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.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rpm: rpmutil.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 id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">rpm
 <span id="projectnumber">4.14.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<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('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_14c931ba4d22b4eaaf008543ee4d9331.html">rpmio</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">rpmutil.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="rpmutil_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="preprocessor">#ifndef _RPMUTIL_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define _RPMUTIL_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <unistd.h></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">/* Here we provide RPM_GNUC_EXTENSION as an alias for __extension__,</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * where this is valid. This allows for warningless compilation of</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * "long long" types even in the presence of '-ansi -pedantic'. </span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> */</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8)</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor"># define RPM_GNUC_EXTENSION __extension__</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#a07aa53bcf769899ef105bc5a0a7c0be8"> 23</a></span> <span class="preprocessor"># define RPM_GNUC_EXTENSION</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">/* Provide macros to feature the GCC function attribute.</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> */</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#define RPM_GNUC_PURE \</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor"> __attribute__((__pure__))</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#define RPM_GNUC_MALLOC \</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor"> __attribute__((__malloc__))</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#aa915ed180c0020d54d080555e1f55d8b"> 34</a></span> <span class="preprocessor">#define RPM_GNUC_PURE</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#adb6f71847a73bcd361185016db5252b7"> 35</a></span> <span class="preprocessor">#define RPM_GNUC_MALLOC</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#define RPM_GNUC_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#define RPM_GNUC_ALLOC_SIZE2(x,y) __attribute__((__alloc_size__(x,y)))</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#a07c9130ddbb77619190406ce10558bd3"> 42</a></span> <span class="preprocessor">#define RPM_GNUC_ALLOC_SIZE(x)</span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#a03642164e65747d2a825d4f1fe5d284a"> 43</a></span> <span class="preprocessor">#define RPM_GNUC_ALLOC_SIZE2(x,y)</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#if __GNUC__ >= 4</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor">#define RPM_GNUC_NULL_TERMINATED __attribute__((__sentinel__))</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#ab20b5f4a77194dc7171b2311853db5cd"> 49</a></span> <span class="preprocessor">#define RPM_GNUC_NULL_TERMINATED</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor">#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor">#define RPM_GNUC_PRINTF( format_idx, arg_idx ) \</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor"> __attribute__((__format__ (__printf__, format_idx, arg_idx)))</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor">#define RPM_GNUC_SCANF( format_idx, arg_idx ) \</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor"> __attribute__((__format__ (__scanf__, format_idx, arg_idx)))</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor">#define RPM_GNUC_FORMAT( arg_idx ) \</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="preprocessor"> __attribute__((__format_arg__ (arg_idx)))</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor">#define RPM_GNUC_NORETURN \</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="preprocessor"> __attribute__((__noreturn__))</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="preprocessor">#define RPM_GNUC_CONST \</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="preprocessor"> __attribute__((__const__))</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor">#define RPM_GNUC_UNUSED \</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor"> __attribute__((__unused__))</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="preprocessor">#define RPM_GNUC_NO_INSTRUMENT \</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor"> __attribute__((__no_instrument_function__))</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor">#else </span><span class="comment">/* !__GNUC__ */</span><span class="preprocessor"></span></div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#afa56337204e88d492c1d951424b0bea5"> 68</a></span> <span class="preprocessor">#define RPM_GNUC_PRINTF( format_idx, arg_idx )</span></div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#ad858d3c034a82293bdd2c7fb9be94c60"> 69</a></span> <span class="preprocessor">#define RPM_GNUC_SCANF( format_idx, arg_idx )</span></div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#aa66c630b0e7b04bf5671a5d539cde2ac"> 70</a></span> <span class="preprocessor">#define RPM_GNUC_FORMAT( arg_idx )</span></div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#a45e92d6a9518b26a4bb0a706a81911a4"> 71</a></span> <span class="preprocessor">#define RPM_GNUC_NORETURN</span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#a42bc7874ff5074aa0aa528838e0bfd91"> 72</a></span> <span class="preprocessor">#define RPM_GNUC_CONST</span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#ad51f48227166347fd1038abdf63c8eff"> 73</a></span> <span class="preprocessor">#define RPM_GNUC_UNUSED</span></div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#a08f909bb14b1b9e3919f7a5c1714f733"> 74</a></span> <span class="preprocessor">#define RPM_GNUC_NO_INSTRUMENT</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor">#endif </span><span class="comment">/* !__GNUC__ */</span><span class="preprocessor"></span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor">#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="preprocessor">#define RPM_GNUC_DEPRECATED \</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="preprocessor"> __attribute__((__deprecated__))</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#a02e3e8be9304aeb89300ea2fcc877961"> 81</a></span> <span class="preprocessor">#define RPM_GNUC_DEPRECATED</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="preprocessor">#endif </span><span class="comment">/* __GNUC__ */</span><span class="preprocessor"></span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="preprocessor">#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="preprocessor">#define RPM_GNUC_MAY_ALIAS __attribute__((may_alias))</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="preprocessor">#define RPM_GNUC_NONNULL( ... ) \</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="preprocessor"> __attribute__((__nonnull__ (__VA_ARGS__)))</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#afa7da08a752fb9fb8550e693fcc7571f"> 89</a></span> <span class="preprocessor">#define RPM_GNUC_MAY_ALIAS</span></div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#ab87256569550e0339a10a10464fc23f5"> 90</a></span> <span class="preprocessor">#define RPM_GNUC_NONNULL( ... )</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="preprocessor">#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="preprocessor">#define RPM_GNUC_WARN_UNUSED_RESULT \</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="preprocessor"> __attribute__((warn_unused_result))</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#a1b1a536df1af873435bd158524e78f6a"> 97</a></span> <span class="preprocessor">#define RPM_GNUC_WARN_UNUSED_RESULT</span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="preprocessor">#endif </span><span class="comment">/* __GNUC__ */</span><span class="preprocessor"></span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="preprocessor">#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)</span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="preprocessor"># define RPM_GNUC_INTERNAL __attribute__((visibility("hidden")))</span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#a6008af2bbe3eef19cb5bc2085675bbbd"> 103</a></span> <span class="preprocessor"># define RPM_GNUC_INTERNAL</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment">/* Guard C code in headers, while including them from C++ */</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="preprocessor"># define RPM_BEGIN_DECLS extern "C" {</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="preprocessor"># define RPM_END_DECLS }</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#af28635107bfa2c0eaf81bc7d1b90bc11"> 112</a></span> <span class="preprocessor"># define RPM_BEGIN_DECLS</span></div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#a7bd5e0c60f4f1694947103d017c5482c"> 113</a></span> <span class="preprocessor"># define RPM_END_DECLS</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment">/* Rpm specific allocators which never return NULL but terminate on failure */</span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <a class="code" href="rpmutil_8h.html#adb6f71847a73bcd361185016db5252b7">RPM_GNUC_MALLOC</a> <a class="code" href="rpmutil_8h.html#a07c9130ddbb77619190406ce10558bd3">RPM_GNUC_ALLOC_SIZE</a>(1)</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="keywordtype">void</span> * <a class="code" href="rpmutil_8h.html#a1b0688c0ed75072e93d0f310163d8f97">rmalloc</a>(<span class="keywordtype">size_t</span> size);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <a class="code" href="rpmutil_8h.html#adb6f71847a73bcd361185016db5252b7">RPM_GNUC_MALLOC</a> <a class="code" href="rpmutil_8h.html#a03642164e65747d2a825d4f1fe5d284a">RPM_GNUC_ALLOC_SIZE2</a>(1,2)</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="keywordtype">void</span> * <a class="code" href="rpmutil_8h.html#a2eb7aafce03d53a53d84f211f3cd7c99">rcalloc</a>(<span class="keywordtype">size_t</span> nmemb, <span class="keywordtype">size_t</span> size);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <a class="code" href="rpmutil_8h.html#a07c9130ddbb77619190406ce10558bd3">RPM_GNUC_ALLOC_SIZE</a>(2)</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="keywordtype">void</span> * <a class="code" href="rpmutil_8h.html#aab6e32435f1fab2f9692ba8519f5a919">rrealloc</a>(<span class="keywordtype">void</span> *ptr, <span class="keywordtype">size_t</span> size);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="keywordtype">char</span> * <a class="code" href="rpmutil_8h.html#a43a3c19835785085ce663874d0a02876">rstrdup</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *str);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="comment">/* Rpm specific free() which returns NULL */</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="keywordtype">void</span> * <a class="code" href="rpmutil_8h.html#ac51294ce884e697564a6a0ee46e477b4">rfree</a>(<span class="keywordtype">void</span> *ptr);</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="rpmutil_8h.html#a3539c64ebb7535bc8abaac81e9e678fb"> 146</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span> * (*rpmMemFailFunc) (<span class="keywordtype">size_t</span> size, <span class="keywordtype">void</span> *data);</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <a class="code" href="rpmutil_8h.html#a3539c64ebb7535bc8abaac81e9e678fb">rpmMemFailFunc</a> <a class="code" href="rpmutil_8h.html#a61ac03ecbf3897cec18d8deec5bda741">rpmSetMemFail</a>(<a class="code" href="rpmutil_8h.html#a3539c64ebb7535bc8abaac81e9e678fb">rpmMemFailFunc</a> func, <span class="keywordtype">void</span> *data);</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> }</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="preprocessor">#endif </span><span class="comment">/* _RPMUTIL_H */</span><span class="preprocessor"></span></div><div class="ttc" id="rpmutil_8h_html_a1b0688c0ed75072e93d0f310163d8f97"><div class="ttname"><a href="rpmutil_8h.html#a1b0688c0ed75072e93d0f310163d8f97">rmalloc</a></div><div class="ttdeci">void * rmalloc(size_t size)</div></div>
<div class="ttc" id="rpmutil_8h_html_a3539c64ebb7535bc8abaac81e9e678fb"><div class="ttname"><a href="rpmutil_8h.html#a3539c64ebb7535bc8abaac81e9e678fb">rpmMemFailFunc</a></div><div class="ttdeci">void *(* rpmMemFailFunc)(size_t size, void *data)</div><div class="ttdoc">Memory allocation failure callback prototype. </div><div class="ttdef"><b>Definition:</b> <a href="rpmutil_8h_source.html#l00146">rpmutil.h:146</a></div></div>
<div class="ttc" id="rpmutil_8h_html_a07c9130ddbb77619190406ce10558bd3"><div class="ttname"><a href="rpmutil_8h.html#a07c9130ddbb77619190406ce10558bd3">RPM_GNUC_ALLOC_SIZE</a></div><div class="ttdeci">#define RPM_GNUC_ALLOC_SIZE(x)</div><div class="ttdef"><b>Definition:</b> <a href="rpmutil_8h_source.html#l00042">rpmutil.h:42</a></div></div>
<div class="ttc" id="rpmutil_8h_html_a03642164e65747d2a825d4f1fe5d284a"><div class="ttname"><a href="rpmutil_8h.html#a03642164e65747d2a825d4f1fe5d284a">RPM_GNUC_ALLOC_SIZE2</a></div><div class="ttdeci">#define RPM_GNUC_ALLOC_SIZE2(x, y)</div><div class="ttdef"><b>Definition:</b> <a href="rpmutil_8h_source.html#l00043">rpmutil.h:43</a></div></div>
<div class="ttc" id="rpmutil_8h_html_aab6e32435f1fab2f9692ba8519f5a919"><div class="ttname"><a href="rpmutil_8h.html#aab6e32435f1fab2f9692ba8519f5a919">rrealloc</a></div><div class="ttdeci">void * rrealloc(void *ptr, size_t size)</div></div>
<div class="ttc" id="rpmutil_8h_html_ac51294ce884e697564a6a0ee46e477b4"><div class="ttname"><a href="rpmutil_8h.html#ac51294ce884e697564a6a0ee46e477b4">rfree</a></div><div class="ttdeci">void * rfree(void *ptr)</div></div>
<div class="ttc" id="rpmutil_8h_html_a43a3c19835785085ce663874d0a02876"><div class="ttname"><a href="rpmutil_8h.html#a43a3c19835785085ce663874d0a02876">rstrdup</a></div><div class="ttdeci">char * rstrdup(const char *str)</div></div>
<div class="ttc" id="rpmutil_8h_html_a61ac03ecbf3897cec18d8deec5bda741"><div class="ttname"><a href="rpmutil_8h.html#a61ac03ecbf3897cec18d8deec5bda741">rpmSetMemFail</a></div><div class="ttdeci">rpmMemFailFunc rpmSetMemFail(rpmMemFailFunc func, void *data)</div><div class="ttdoc">Set memory allocation failure callback. </div></div>
<div class="ttc" id="rpmutil_8h_html_adb6f71847a73bcd361185016db5252b7"><div class="ttname"><a href="rpmutil_8h.html#adb6f71847a73bcd361185016db5252b7">RPM_GNUC_MALLOC</a></div><div class="ttdeci">#define RPM_GNUC_MALLOC</div><div class="ttdef"><b>Definition:</b> <a href="rpmutil_8h_source.html#l00035">rpmutil.h:35</a></div></div>
<div class="ttc" id="rpmutil_8h_html_a2eb7aafce03d53a53d84f211f3cd7c99"><div class="ttname"><a href="rpmutil_8h.html#a2eb7aafce03d53a53d84f211f3cd7c99">rcalloc</a></div><div class="ttdeci">void * rcalloc(size_t nmemb, size_t size)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- 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.14
</small></address>
</body>
</html>