<!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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rpm: rpm2cpio.c 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.8.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">rpm2cpio.c</div> </div>
</div><!--header-->
<div class="contents">
<a href="rpm2cpio_8c.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">/* rpmarchive: spit out the main archive portion of a package */</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> </div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include "<a class="code" href="system_8h.html">system.h</a>"</span></div><div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="system_8h.html#ae44e96c1808be0a56730c26b8b3d2c2a"> 4</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="system_8h.html#a41c2f9db0a7e23392fbbebb1d1c185ec">__progname</a>;</div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <rpm/rpmlib.h></span> <span class="comment">/* rpmReadPackageFile .. */</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <rpm/rpmtag.h></span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <rpm/rpmio.h></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <rpm/rpmpgp.h></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <rpm/rpmts.h></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="debug_8h.html">debug.h</a>"</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="rpm2cpio_8c.html#a0ddf1224851353fc92bfbff6f499fa97"> 15</a></span> <span class="keywordtype">int</span> <a class="code" href="rpm2cpio_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</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>  <a class="code" href="rpmtypes_8h.html#a078f4187c683508f3147e94397bab8d5">FD_t</a> fdi, fdo;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <a class="code" href="rpmtypes_8h.html#acb1ffe4e2d96b8277f9f46ecc0c7b8a6">Header</a> h;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="keywordtype">char</span> * rpmio_flags = NULL;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <a class="code" href="rpmtypes_8h.html#a06da857c39457bfb6ea9049643fdb706">rpmRC</a> rc;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <a class="code" href="rpmtypes_8h.html#a078f4187c683508f3147e94397bab8d5">FD_t</a> gzdi;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <a class="code" href="system_8h.html#a08b0a5a39651f29857ebec61a69217a2">setprogname</a>(argv[0]); <span class="comment">/* Retrofit glibc __progname */</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <a class="code" href="rpmlib_8h.html#aac91e0fc109eedd29b5aebed135b8580">rpmReadConfigFiles</a>(NULL, NULL);</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keywordflow">if</span> (argc == 1)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  fdi = <a class="code" href="rpmio_8h.html#a7fdbfe3ae72584240fb4c41364667ed6">fdDup</a>(STDIN_FILENO);</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordflow">if</span> (<a class="code" href="rpmstring_8h.html#a1e5f8ebc49cc189053eb455e500d7e00">rstreq</a>(argv[1], <span class="stringliteral">"-h"</span>) || <a class="code" href="rpmstring_8h.html#a1e5f8ebc49cc189053eb455e500d7e00">rstreq</a>(argv[1], <span class="stringliteral">"--help"</span>)) {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  fprintf(stderr, <span class="stringliteral">"Usage: rpm2cpio file.rpm\n"</span>);</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  exit(<a class="code" href="system_8h.html#a73efe787c131b385070f25d18b7c9aa4">EXIT_FAILURE</a>);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  }</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  fdi = <a class="code" href="rpmio_8h.html#a2eb611bd97d6d937d2296bcecd83ee31">Fopen</a>(argv[1], <span class="stringliteral">"r.ufdio"</span>);</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  }</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">if</span> (<a class="code" href="rpmio_8h.html#a0f608c106ddef6245f5e9773a8e56b73">Ferror</a>(fdi)) {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  fprintf(stderr, <span class="stringliteral">"%s: %s: %s\n"</span>, argv[0],</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  (argc == 1 ? <span class="stringliteral">"<stdin>"</span> : argv[1]), <a class="code" href="rpmio_8h.html#a0ef7b73c1eec295cb5f873879b143423">Fstrerror</a>(fdi));</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  exit(<a class="code" href="system_8h.html#a73efe787c131b385070f25d18b7c9aa4">EXIT_FAILURE</a>);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  }</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  fdo = <a class="code" href="rpmio_8h.html#a7fdbfe3ae72584240fb4c41364667ed6">fdDup</a>(STDOUT_FILENO);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  { <a class="code" href="rpmtypes_8h.html#a1a512138316a227059ca128597dbd464">rpmts</a> ts = <a class="code" href="rpmts_8h.html#ace47f4eaebd8be4f0abbcfb7942b3566">rpmtsCreate</a>();</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="rpmts_8h.html#aa9db567bc7c49d7d84ac7fc178543348">rpmVSFlags</a> vsflags = 0;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="comment">/* XXX retain the ageless behavior of rpm2cpio */</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  vsflags |= <a class="code" href="rpmts_8h.html#aeece22238af582ac0a41afdafa77df77">_RPMVSF_NODIGESTS</a>;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  vsflags |= <a class="code" href="rpmts_8h.html#a7515813532c9d4ead6bfd4b51860078f">_RPMVSF_NOSIGNATURES</a>;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  vsflags |= <a class="code" href="rpmts_8h.html#a081c96e55d490b5e99505eda7e93602daaa6d0b979fd5881394e98f2912cff11f">RPMVSF_NOHDRCHK</a>;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  (void) <a class="code" href="rpmts_8h.html#a586c60d8364e263aa5e22736cbac1e69">rpmtsSetVSFlags</a>(ts, vsflags);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  rc = <a class="code" href="rpmlib_8h.html#ae10b6de3f6b14ba9bf473e782c6ed65c">rpmReadPackageFile</a>(ts, fdi, <span class="stringliteral">"rpm2cpio"</span>, &h);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  ts = <a class="code" href="rpmts_8h.html#a5315165a6e80a0c71dbe5eb07dd18f58">rpmtsFree</a>(ts);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  }</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">switch</span> (rc) {</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">case</span> <a class="code" href="rpmtypes_8h.html#aa30b10f32f3a5e820ec05d099993e801ab6a502fb02cfd2c16380fa6ac52902d4">RPMRC_OK</a>:</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">case</span> <a class="code" href="rpmtypes_8h.html#aa30b10f32f3a5e820ec05d099993e801abb7bafd0fb0f5b69af85b79008fcd5da">RPMRC_NOKEY</a>:</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">case</span> <a class="code" href="rpmtypes_8h.html#aa30b10f32f3a5e820ec05d099993e801a57ae69ad74eaa789264ec507d0f9e2c6">RPMRC_NOTTRUSTED</a>:</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">case</span> <a class="code" href="rpmtypes_8h.html#aa30b10f32f3a5e820ec05d099993e801a63a651497a21974d2993a25d9b60208d">RPMRC_NOTFOUND</a>:</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  fprintf(stderr, <a class="code" href="system_8h.html#a8a97de23397d8af6821824c0234d8c3c">_</a>(<span class="stringliteral">"argument is not an RPM package\n"</span>));</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  exit(<a class="code" href="system_8h.html#a73efe787c131b385070f25d18b7c9aa4">EXIT_FAILURE</a>);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">case</span> <a class="code" href="rpmtypes_8h.html#aa30b10f32f3a5e820ec05d099993e801a2e6125219f145fbb73353bc6ccac5cfc">RPMRC_FAIL</a>:</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  fprintf(stderr, <a class="code" href="system_8h.html#a8a97de23397d8af6821824c0234d8c3c">_</a>(<span class="stringliteral">"error reading header from package\n"</span>));</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  exit(<a class="code" href="system_8h.html#a73efe787c131b385070f25d18b7c9aa4">EXIT_FAILURE</a>);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  }</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="comment">/* Retrieve type of payload compression. */</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  { <span class="keyword">const</span> <span class="keywordtype">char</span> *compr = <a class="code" href="header_8h.html#aa463e9ebbaf81004c62b864b42f97dab">headerGetString</a>(h, <a class="code" href="rpmtag_8h.html#a342756dddb61d125ae851a8b1ab0507ba2fb185e4da76f4495f79bae39a6fd90d">RPMTAG_PAYLOADCOMPRESSOR</a>);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  rpmio_flags = <a class="code" href="rpmstring_8h.html#ae110db3befa40c8fcd2a15f61786b88b">rstrscat</a>(NULL, <span class="stringliteral">"r."</span>, compr ? compr : <span class="stringliteral">"gzip"</span>, NULL);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</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>  gzdi = <a class="code" href="rpmio_8h.html#a179731508680532a4303c1220e7bdb2d">Fdopen</a>(fdi, rpmio_flags); <span class="comment">/* XXX gzdi == fdi */</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  free(rpmio_flags);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordflow">if</span> (gzdi == NULL) {</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  fprintf(stderr, <a class="code" href="system_8h.html#a8a97de23397d8af6821824c0234d8c3c">_</a>(<span class="stringliteral">"cannot re-open payload: %s\n"</span>), <a class="code" href="rpmio_8h.html#a0ef7b73c1eec295cb5f873879b143423">Fstrerror</a>(gzdi));</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  exit(<a class="code" href="system_8h.html#a73efe787c131b385070f25d18b7c9aa4">EXIT_FAILURE</a>);</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> </div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  rc = <a class="code" href="rpmio_8h.html#ad5909f66b74d70009db3c817999de5a3">ufdCopy</a>(gzdi, fdo);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  rc = (rc <= 0) ? <a class="code" href="system_8h.html#a73efe787c131b385070f25d18b7c9aa4">EXIT_FAILURE</a> : EXIT_SUCCESS;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="rpmio_8h.html#a7e40bd43f40fcfce2773851b922c7774">Fclose</a>(fdo);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="rpmio_8h.html#a7e40bd43f40fcfce2773851b922c7774">Fclose</a>(gzdi); <span class="comment">/* XXX gzdi == fdi */</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> rc;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> }</div><div class="ttc" id="system_8h_html_a08b0a5a39651f29857ebec61a69217a2"><div class="ttname"><a href="system_8h.html#a08b0a5a39651f29857ebec61a69217a2">setprogname</a></div><div class="ttdeci">#define setprogname(pn)</div><div class="ttdef"><b>Definition:</b> <a href="system_8h_source.html#l00259">system.h:259</a></div></div>
<div class="ttc" id="system_8h_html_a73efe787c131b385070f25d18b7c9aa4"><div class="ttname"><a href="system_8h.html#a73efe787c131b385070f25d18b7c9aa4">EXIT_FAILURE</a></div><div class="ttdeci">#define EXIT_FAILURE</div><div class="ttdef"><b>Definition:</b> <a href="system_8h_source.html#l00115">system.h:115</a></div></div>
<div class="ttc" id="rpmtypes_8h_html_a078f4187c683508f3147e94397bab8d5"><div class="ttname"><a href="rpmtypes_8h.html#a078f4187c683508f3147e94397bab8d5">FD_t</a></div><div class="ttdeci">struct _FD_s * FD_t</div><div class="ttdoc">RPM IO file descriptor type. </div><div class="ttdef"><b>Definition:</b> <a href="rpmtypes_8h_source.html#l00082">rpmtypes.h:82</a></div></div>
<div class="ttc" id="rpmio_8h_html_ad5909f66b74d70009db3c817999de5a3"><div class="ttname"><a href="rpmio_8h.html#ad5909f66b74d70009db3c817999de5a3">ufdCopy</a></div><div class="ttdeci">int ufdCopy(FD_t sfd, FD_t tfd)</div></div>
<div class="ttc" id="debug_8h_html"><div class="ttname"><a href="debug_8h.html">debug.h</a></div></div>
<div class="ttc" id="rpmstring_8h_html_ae110db3befa40c8fcd2a15f61786b88b"><div class="ttname"><a href="rpmstring_8h.html#ae110db3befa40c8fcd2a15f61786b88b">rstrscat</a></div><div class="ttdeci">char * rstrscat(char **dest, const char *arg,...) RPM_GNUC_NULL_TERMINATED</div><div class="ttdoc">Concatenate multiple strings with dynamically (re)allocated memory. </div></div>
<div class="ttc" id="rpmio_8h_html_a0ef7b73c1eec295cb5f873879b143423"><div class="ttname"><a href="rpmio_8h.html#a0ef7b73c1eec295cb5f873879b143423">Fstrerror</a></div><div class="ttdeci">const char * Fstrerror(FD_t fd)</div><div class="ttdoc">strerror(3) clone. </div></div>
<div class="ttc" id="rpmlib_8h_html_ae10b6de3f6b14ba9bf473e782c6ed65c"><div class="ttname"><a href="rpmlib_8h.html#ae10b6de3f6b14ba9bf473e782c6ed65c">rpmReadPackageFile</a></div><div class="ttdeci">rpmRC rpmReadPackageFile(rpmts ts, FD_t fd, const char *fn, Header *hdrp)</div><div class="ttdoc">Return package header from file handle, verifying digests/signatures. </div></div>
<div class="ttc" id="header_8h_html_aa463e9ebbaf81004c62b864b42f97dab"><div class="ttname"><a href="header_8h.html#aa463e9ebbaf81004c62b864b42f97dab">headerGetString</a></div><div class="ttdeci">const char * headerGetString(Header h, rpmTag tag)</div><div class="ttdoc">Return a simple string tag from header. </div></div>
<div class="ttc" id="rpmtypes_8h_html_aa30b10f32f3a5e820ec05d099993e801abb7bafd0fb0f5b69af85b79008fcd5da"><div class="ttname"><a href="rpmtypes_8h.html#aa30b10f32f3a5e820ec05d099993e801abb7bafd0fb0f5b69af85b79008fcd5da">RPMRC_NOKEY</a></div><div class="ttdef"><b>Definition:</b> <a href="rpmtypes_8h_source.html#l00092">rpmtypes.h:92</a></div></div>
<div class="ttc" id="system_8h_html_a8a97de23397d8af6821824c0234d8c3c"><div class="ttname"><a href="system_8h.html#a8a97de23397d8af6821824c0234d8c3c">_</a></div><div class="ttdeci">#define _(Text)</div><div class="ttdef"><b>Definition:</b> <a href="system_8h_source.html#l00291">system.h:291</a></div></div>
<div class="ttc" id="rpmio_8h_html_a179731508680532a4303c1220e7bdb2d"><div class="ttname"><a href="rpmio_8h.html#a179731508680532a4303c1220e7bdb2d">Fdopen</a></div><div class="ttdeci">FD_t Fdopen(FD_t ofd, const char *fmode)</div></div>
<div class="ttc" id="rpmtypes_8h_html_aa30b10f32f3a5e820ec05d099993e801a2e6125219f145fbb73353bc6ccac5cfc"><div class="ttname"><a href="rpmtypes_8h.html#aa30b10f32f3a5e820ec05d099993e801a2e6125219f145fbb73353bc6ccac5cfc">RPMRC_FAIL</a></div><div class="ttdef"><b>Definition:</b> <a href="rpmtypes_8h_source.html#l00090">rpmtypes.h:90</a></div></div>
<div class="ttc" id="rpmlib_8h_html_aac91e0fc109eedd29b5aebed135b8580"><div class="ttname"><a href="rpmlib_8h.html#aac91e0fc109eedd29b5aebed135b8580">rpmReadConfigFiles</a></div><div class="ttdeci">int rpmReadConfigFiles(const char *file, const char *target)</div><div class="ttdoc">Read macro configuration file(s) for a target. </div></div>
<div class="ttc" id="rpmio_8h_html_a7fdbfe3ae72584240fb4c41364667ed6"><div class="ttname"><a href="rpmio_8h.html#a7fdbfe3ae72584240fb4c41364667ed6">fdDup</a></div><div class="ttdeci">FD_t fdDup(int fdno)</div></div>
<div class="ttc" id="rpmio_8h_html_a0f608c106ddef6245f5e9773a8e56b73"><div class="ttname"><a href="rpmio_8h.html#a0f608c106ddef6245f5e9773a8e56b73">Ferror</a></div><div class="ttdeci">int Ferror(FD_t fd)</div><div class="ttdoc">ferror(3) clone. </div></div>
<div class="ttc" id="rpmts_8h_html_aa9db567bc7c49d7d84ac7fc178543348"><div class="ttname"><a href="rpmts_8h.html#aa9db567bc7c49d7d84ac7fc178543348">rpmVSFlags</a></div><div class="ttdeci">enum rpmVSFlags_e rpmVSFlags</div><div class="ttdoc">Bit(s) to control digest and signature verification. </div></div>
<div class="ttc" id="rpm2cpio_8c_html_a0ddf1224851353fc92bfbff6f499fa97"><div class="ttname"><a href="rpm2cpio_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main</a></div><div class="ttdeci">int main(int argc, char *argv[])</div><div class="ttdef"><b>Definition:</b> <a href="rpm2cpio_8c_source.html#l00015">rpm2cpio.c:15</a></div></div>
<div class="ttc" id="rpmstring_8h_html_a1e5f8ebc49cc189053eb455e500d7e00"><div class="ttname"><a href="rpmstring_8h.html#a1e5f8ebc49cc189053eb455e500d7e00">rstreq</a></div><div class="ttdeci">static int rstreq(const char *s1, const char *s2)</div><div class="ttdoc">Test for string equality. </div><div class="ttdef"><b>Definition:</b> <a href="rpmstring_8h_source.html#l00113">rpmstring.h:113</a></div></div>
<div class="ttc" id="rpmio_8h_html_a7e40bd43f40fcfce2773851b922c7774"><div class="ttname"><a href="rpmio_8h.html#a7e40bd43f40fcfce2773851b922c7774">Fclose</a></div><div class="ttdeci">int Fclose(FD_t fd)</div><div class="ttdoc">fclose(3) clone. </div></div>
<div class="ttc" id="rpmio_8h_html_a2eb611bd97d6d937d2296bcecd83ee31"><div class="ttname"><a href="rpmio_8h.html#a2eb611bd97d6d937d2296bcecd83ee31">Fopen</a></div><div class="ttdeci">FD_t Fopen(const char *path, const char *fmode)</div><div class="ttdoc">fopen(3) clone. </div></div>
<div class="ttc" id="rpmtypes_8h_html_aa30b10f32f3a5e820ec05d099993e801a57ae69ad74eaa789264ec507d0f9e2c6"><div class="ttname"><a href="rpmtypes_8h.html#aa30b10f32f3a5e820ec05d099993e801a57ae69ad74eaa789264ec507d0f9e2c6">RPMRC_NOTTRUSTED</a></div><div class="ttdef"><b>Definition:</b> <a href="rpmtypes_8h_source.html#l00091">rpmtypes.h:91</a></div></div>
<div class="ttc" id="rpmts_8h_html_a7515813532c9d4ead6bfd4b51860078f"><div class="ttname"><a href="rpmts_8h.html#a7515813532c9d4ead6bfd4b51860078f">_RPMVSF_NOSIGNATURES</a></div><div class="ttdeci">#define _RPMVSF_NOSIGNATURES</div><div class="ttdef"><b>Definition:</b> <a href="rpmts_8h_source.html#l00107">rpmts.h:107</a></div></div>
<div class="ttc" id="rpmts_8h_html_a5315165a6e80a0c71dbe5eb07dd18f58"><div class="ttname"><a href="rpmts_8h.html#a5315165a6e80a0c71dbe5eb07dd18f58">rpmtsFree</a></div><div class="ttdeci">rpmts rpmtsFree(rpmts ts)</div><div class="ttdoc">Destroy transaction set, closing the database as well. </div></div>
<div class="ttc" id="rpmts_8h_html_a586c60d8364e263aa5e22736cbac1e69"><div class="ttname"><a href="rpmts_8h.html#a586c60d8364e263aa5e22736cbac1e69">rpmtsSetVSFlags</a></div><div class="ttdeci">rpmVSFlags rpmtsSetVSFlags(rpmts ts, rpmVSFlags vsflags)</div><div class="ttdoc">Set verify signatures flag(s). </div></div>
<div class="ttc" id="rpmtypes_8h_html_a1a512138316a227059ca128597dbd464"><div class="ttname"><a href="rpmtypes_8h.html#a1a512138316a227059ca128597dbd464">rpmts</a></div><div class="ttdeci">struct rpmts_s * rpmts</div><div class="ttdoc">The main types involved in transaction manipulation. </div><div class="ttdef"><b>Definition:</b> <a href="rpmtypes_8h_source.html#l00059">rpmtypes.h:59</a></div></div>
<div class="ttc" id="system_8h_html"><div class="ttname"><a href="system_8h.html">system.h</a></div></div>
<div class="ttc" id="rpmtypes_8h_html_aa30b10f32f3a5e820ec05d099993e801a63a651497a21974d2993a25d9b60208d"><div class="ttname"><a href="rpmtypes_8h.html#aa30b10f32f3a5e820ec05d099993e801a63a651497a21974d2993a25d9b60208d">RPMRC_NOTFOUND</a></div><div class="ttdef"><b>Definition:</b> <a href="rpmtypes_8h_source.html#l00089">rpmtypes.h:89</a></div></div>
<div class="ttc" id="rpmts_8h_html_a081c96e55d490b5e99505eda7e93602daaa6d0b979fd5881394e98f2912cff11f"><div class="ttname"><a href="rpmts_8h.html#a081c96e55d490b5e99505eda7e93602daaa6d0b979fd5881394e98f2912cff11f">RPMVSF_NOHDRCHK</a></div><div class="ttdef"><b>Definition:</b> <a href="rpmts_8h_source.html#l00086">rpmts.h:86</a></div></div>
<div class="ttc" id="system_8h_html_a41c2f9db0a7e23392fbbebb1d1c185ec"><div class="ttname"><a href="system_8h.html#a41c2f9db0a7e23392fbbebb1d1c185ec">__progname</a></div><div class="ttdeci">#define __progname</div><div class="ttdef"><b>Definition:</b> <a href="system_8h_source.html#l00258">system.h:258</a></div></div>
<div class="ttc" id="rpmts_8h_html_aeece22238af582ac0a41afdafa77df77"><div class="ttname"><a href="rpmts_8h.html#aeece22238af582ac0a41afdafa77df77">_RPMVSF_NODIGESTS</a></div><div class="ttdeci">#define _RPMVSF_NODIGESTS</div><div class="ttdef"><b>Definition:</b> <a href="rpmts_8h_source.html#l00101">rpmts.h:101</a></div></div>
<div class="ttc" id="rpmtypes_8h_html_aa30b10f32f3a5e820ec05d099993e801ab6a502fb02cfd2c16380fa6ac52902d4"><div class="ttname"><a href="rpmtypes_8h.html#aa30b10f32f3a5e820ec05d099993e801ab6a502fb02cfd2c16380fa6ac52902d4">RPMRC_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="rpmtypes_8h_source.html#l00088">rpmtypes.h:88</a></div></div>
<div class="ttc" id="rpmtypes_8h_html_a06da857c39457bfb6ea9049643fdb706"><div class="ttname"><a href="rpmtypes_8h.html#a06da857c39457bfb6ea9049643fdb706">rpmRC</a></div><div class="ttdeci">enum rpmRC_e rpmRC</div><div class="ttdoc">Package read return codes. </div></div>
<div class="ttc" id="rpmts_8h_html_ace47f4eaebd8be4f0abbcfb7942b3566"><div class="ttname"><a href="rpmts_8h.html#ace47f4eaebd8be4f0abbcfb7942b3566">rpmtsCreate</a></div><div class="ttdeci">rpmts rpmtsCreate(void)</div><div class="ttdoc">Create an empty transaction set. </div></div>
<div class="ttc" id="rpmtag_8h_html_a342756dddb61d125ae851a8b1ab0507ba2fb185e4da76f4495f79bae39a6fd90d"><div class="ttname"><a href="rpmtag_8h.html#a342756dddb61d125ae851a8b1ab0507ba2fb185e4da76f4495f79bae39a6fd90d">RPMTAG_PAYLOADCOMPRESSOR</a></div><div class="ttdef"><b>Definition:</b> <a href="rpmtag_8h_source.html#l00200">rpmtag.h:200</a></div></div>
<div class="ttc" id="rpmtypes_8h_html_acb1ffe4e2d96b8277f9f46ecc0c7b8a6"><div class="ttname"><a href="rpmtypes_8h.html#acb1ffe4e2d96b8277f9f46ecc0c7b8a6">Header</a></div><div class="ttdeci">struct headerToken_s * Header</div><div class="ttdoc">RPM header and data retrieval types. </div><div class="ttdef"><b>Definition:</b> <a href="rpmtypes_8h_source.html#l00024">rpmtypes.h:24</a></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.13
</small></address>
</body>
</html>