Sophie

Sophie

distrib > CentOS > 5 > i386 > media > os > by-pkgid > 608068f228165b6e5a4f2c11fda54521 > files > 464

rpm-apidocs-4.4.2.3-34.el5.i386.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>rpm: lib/poptALL.c Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<h1>lib/poptALL.c</h1><a href="poptALL_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00006"></a>00006 <span class="preprocessor">#include "<a class="code" href="system_8h.html">system.h</a>"</span>
<a name="l00007"></a><a class="code" href="poptALL_8c.html#e44e96c1808be0a56730c26b8b3d2c2a">00007</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="system_8h.html#41c2f9db0a7e23392fbbebb1d1c185ec">__progname</a>;
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;<a class="code" href="rpmcli_8h.html">rpmcli.h</a>&gt;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;<a class="code" href="fts_8h.html">fts.h</a>&gt;</span>
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="preprocessor">#include "<a class="code" href="debug_8h.html">debug.h</a>"</span>
<a name="l00013"></a>00013 
<a name="l00014"></a><a class="code" href="poptALL_8c.html#07c456554be01929d49cda506aee8b76">00014</a> <span class="preprocessor">#define POPT_SHOWVERSION        -999</span>
<a name="l00015"></a><a class="code" href="poptALL_8c.html#6ec4d69a79fd6b65aa660b2aa95365b4">00015</a> <span class="preprocessor"></span><span class="preprocessor">#define POPT_SHOWRC             -998</span>
<a name="l00016"></a><a class="code" href="poptALL_8c.html#50a1e978977b7e0e2db9f605778838a5">00016</a> <span class="preprocessor"></span><span class="preprocessor">#define POPT_QUERYTAGS          -997</span>
<a name="l00017"></a><a class="code" href="poptALL_8c.html#34780f1cdeb1784994138ccab5fd2c23">00017</a> <span class="preprocessor"></span><span class="preprocessor">#define POPT_PREDEFINE          -996</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#ifdef  NOTYET</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define POPT_RCFILE             -995</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="comment">/*@unchecked@*/</span>
<a name="l00023"></a><a class="code" href="poptALL_8c.html#4859ebf3de3eada7338899d0f24d3c23">00023</a> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#4859ebf3de3eada7338899d0f24d3c23">_debug</a> = 0;
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="comment">/*@-exportheadervar@*/</span>
<a name="l00026"></a>00026 <span class="comment">/*@unchecked@*/</span>
<a name="l00027"></a>00027 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#d3b78c2f0ff0af8c3f5b1b49f6918deb">_rpmds_nopromote</a>;
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="comment">/*@unchecked@*/</span>
<a name="l00030"></a>00030 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#35245f6e78b3d20a5895cb3bbf76b4f0">_fps_debug</a>;
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="comment">/*@unchecked@*/</span>
<a name="l00033"></a>00033 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptBT_8c.html#a9d80721d6d496e7e799ad3926f7a44b">_fsm_debug</a>;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="comment">/*@unchecked@*/</span>
<a name="l00036"></a>00036 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="fsm_8c.html#8f971a68b642a3aafd8b8aa003b41801">_fsm_threads</a>;
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="comment">/*@unchecked@*/</span>
<a name="l00039"></a>00039 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#a911cde9b3cbd2e388faf0929e2787eb">_hdr_debug</a>;
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="comment">/*@unchecked@*/</span>
<a name="l00042"></a>00042 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="package_8c.html#ecd25710f1d2b5bb3fe8325b1396a34d">_print_pkts</a>;
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="comment">/*@unchecked@*/</span>
<a name="l00045"></a>00045 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#c1738d4bbd625c7bdd68a5721abce244">_psm_debug</a>;
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="comment">/*@unchecked@*/</span>
<a name="l00048"></a>00048 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#f1cd49d46dc236eb1faa6446bd86cf31">_psm_threads</a>;
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="comment">/*@unchecked@*/</span>
<a name="l00051"></a>00051 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#9d7993a8ce86dfadf66f3212101afcb7">_rpmal_debug</a>;
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="comment">/*@unchecked@*/</span>
<a name="l00054"></a>00054 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#2af73bfa54f40c03158ae5cb6ac09216">_rpmdb_debug</a>;
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 <span class="comment">/*@unchecked@*/</span>
<a name="l00057"></a>00057 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#3b561d007162dd24d57a47387a5a6c90">_rpmds_debug</a>;
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="comment">/* XXX avoid -lrpmbuild linkage. */</span>
<a name="l00060"></a>00060 <span class="comment">/*@unchecked@*/</span>
<a name="l00061"></a><a class="code" href="poptALL_8c.html#52886d44344391a5043c38ff37d9925d">00061</a>        <span class="keywordtype">int</span> <a class="code" href="rpmfc_8h.html#52886d44344391a5043c38ff37d9925d">_rpmfc_debug</a>;
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <span class="comment">/*@unchecked@*/</span>
<a name="l00064"></a>00064 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#5710da70dd59448d5fa8f64dc3cd28b9">_rpmfi_debug</a>;
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="comment">/*@unchecked@*/</span>
<a name="l00067"></a>00067 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#16617cc90c35af7c4af7f900ac6d6c16">_rpmgi_debug</a>;
<a name="l00068"></a>00068 
<a name="l00069"></a>00069 <span class="comment">/*@unchecked@*/</span>
<a name="l00070"></a>00070 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#886e382d65e81a1fd40c2f9710ed4846">_rpmps_debug</a>;
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 <span class="comment">/*@unchecked@*/</span>
<a name="l00073"></a>00073 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#9a254c1bbc1ff71759916077c8647d4b">_rpmsq_debug</a>;
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 <span class="comment">/*@unchecked@*/</span>
<a name="l00076"></a>00076 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#5163619b40a7de54cf579f4b98c0b9ca">_rpmsx_debug</a>;
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 <span class="comment">/*@unchecked@*/</span>
<a name="l00079"></a>00079 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#ba316314b142906ef83fa5f3361a4f39">_rpmte_debug</a>;
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 <span class="comment">/*@unchecked@*/</span>
<a name="l00082"></a>00082 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#d663cf81dfc3020fdee088b820bc2cf5">_rpmts_debug</a>;
<a name="l00083"></a>00083 
<a name="l00084"></a>00084 <span class="comment">/*@unchecked@*/</span>
<a name="l00085"></a>00085 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#76af99570cb516c74b5ef9e4e59bf2b4">_rpmts_stats</a>;
<a name="l00086"></a>00086 
<a name="l00087"></a>00087 <span class="comment">/*@unchecked@*/</span>
<a name="l00088"></a>00088 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#eb027ab2d238bec6864baf42902c95a5">noLibio</a>;
<a name="l00089"></a>00089 <span class="comment">/*@=exportheadervar@*/</span>
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 <span class="comment">/*@unchecked@*/</span>
<a name="l00092"></a><a class="code" href="rpmcli_8h.html#2f2a17a4befac63f642cca0446d6c302">00092</a> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="poptALL_8c.html#2f2a17a4befac63f642cca0446d6c302">rpmcliPipeOutput</a> = NULL;
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 <span class="comment">/*@unchecked@*/</span>
<a name="l00095"></a><a class="code" href="rpmcli_8h.html#3029d149e73de935c2f2a0b5fa8c3508">00095</a> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="poptALL_8c.html#3029d149e73de935c2f2a0b5fa8c3508">rpmcliRcfile</a> = NULL;
<a name="l00096"></a>00096 
<a name="l00097"></a>00097 <span class="comment">/*@unchecked@*/</span>
<a name="l00098"></a><a class="code" href="rpmcli_8h.html#4a1b016e2d7aaea6937155c21c87a215">00098</a> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="poptALL_8c.html#4a1b016e2d7aaea6937155c21c87a215">rpmcliRootDir</a> = <span class="stringliteral">"/"</span>;
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 <span class="comment">/*@unchecked@*/</span>
<a name="l00101"></a><a class="code" href="group__rpmcli.html#gaf36449ccc525faa711b15faafdf7a84">00101</a> <a class="code" href="group__rpmcli.html#g10f78f4f752f92579f0b6d4e294f2fa8">rpmQueryFlags</a> <a class="code" href="group__rpmcli.html#gaf36449ccc525faa711b15faafdf7a84">rpmcliQueryFlags</a>;
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 <span class="comment">/*@-exportheadervar@*/</span>
<a name="l00104"></a>00104 <span class="comment">/*@unchecked@*/</span>
<a name="l00105"></a>00105 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#ab87395ef3a9640980f39a65cd124516">_ftp_debug</a>;
<a name="l00106"></a>00106 <span class="comment">/*@unchecked@*/</span>
<a name="l00107"></a>00107 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#eafa60fff5391a85608f3753c90a963e">_av_debug</a>;
<a name="l00108"></a>00108 <span class="comment">/*@unchecked@*/</span>
<a name="l00109"></a>00109 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#08b2b12b5b4b4433702c63ba0442354e">_dav_debug</a>;
<a name="l00110"></a>00110 
<a name="l00111"></a>00111 <span class="comment">/*@unchecked@*/</span>
<a name="l00112"></a>00112 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#eb027ab2d238bec6864baf42902c95a5">noLibio</a>;
<a name="l00113"></a>00113 
<a name="l00114"></a>00114 <span class="comment">/*@unchecked@*/</span>
<a name="l00115"></a>00115 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#e65e452cc653e9826fa01652d9a26102">_rpmio_debug</a>;
<a name="l00116"></a>00116 <span class="comment">/*@=exportheadervar@*/</span>
<a name="l00117"></a>00117 
<a name="l00118"></a>00118 <span class="comment">/*@unchecked@*/</span>
<a name="l00119"></a><a class="code" href="poptALL_8c.html#33c0e64cdfc938644808fe2fd1a554dd">00119</a> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#33c0e64cdfc938644808fe2fd1a554dd">rpmcliInitialized</a> = -1;
<a name="l00120"></a>00120 
<a name="l00124"></a><a class="code" href="poptALL_8c.html#8ed9d1e1fd5e07cfb6569c185bddb81b">00124</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="rpmqv_8c.html#8ed9d1e1fd5e07cfb6569c185bddb81b">printVersion</a>(FILE * fp)
<a name="l00125"></a>00125         <span class="comment">/*@globals rpmEVR, fileSystem @*/</span>
<a name="l00126"></a>00126         <span class="comment">/*@modifies *fp, fileSystem @*/</span>
<a name="l00127"></a>00127 {
<a name="l00128"></a>00128     fprintf(fp, <a class="code" href="system_8h.html#8a97de23397d8af6821824c0234d8c3c">_</a>(<span class="stringliteral">"RPM version %s\n"</span>), <a class="code" href="depends_8c.html#e103981016031ce0b1e8fd243cacccd9">rpmEVR</a>);
<a name="l00129"></a>00129 }
<a name="l00130"></a>00130 
<a name="l00135"></a>00135 <span class="comment">/*@mayexit@*/</span>
<a name="l00136"></a><a class="code" href="rpmcli_8h.html#348b8881a605cd00bafb6141fe45fb49">00136</a> <span class="keywordtype">void</span> <a class="code" href="poptALL_8c.html#348b8881a605cd00bafb6141fe45fb49">rpmcliConfigured</a>(<span class="keywordtype">void</span>)
<a name="l00137"></a>00137         <span class="comment">/*@globals rpmcliInitialized, rpmCLIMacroContext, rpmGlobalMacroContext,</span>
<a name="l00138"></a>00138 <span class="comment">                h_errno, fileSystem, internalState @*/</span>
<a name="l00139"></a>00139         <span class="comment">/*@modifies rpmcliInitialized, rpmCLIMacroContext, rpmGlobalMacroContext,</span>
<a name="l00140"></a>00140 <span class="comment">                fileSystem, internalState @*/</span>
<a name="l00141"></a>00141 {
<a name="l00142"></a>00142 
<a name="l00143"></a>00143     <span class="keywordflow">if</span> (<a class="code" href="poptALL_8c.html#33c0e64cdfc938644808fe2fd1a554dd">rpmcliInitialized</a> &lt; 0)
<a name="l00144"></a>00144         <a class="code" href="poptALL_8c.html#33c0e64cdfc938644808fe2fd1a554dd">rpmcliInitialized</a> = <a class="code" href="group__rpmrc.html#gac91e0fc109eedd29b5aebed135b8580">rpmReadConfigFiles</a>(<a class="code" href="poptALL_8c.html#3029d149e73de935c2f2a0b5fa8c3508">rpmcliRcfile</a>, NULL);
<a name="l00145"></a>00145     <span class="keywordflow">if</span> (<a class="code" href="poptALL_8c.html#33c0e64cdfc938644808fe2fd1a554dd">rpmcliInitialized</a>)
<a name="l00146"></a>00146         exit(<a class="code" href="system_8h.html#73efe787c131b385070f25d18b7c9aa4">EXIT_FAILURE</a>);
<a name="l00147"></a>00147 }
<a name="l00148"></a>00148 
<a name="l00151"></a>00151 <span class="comment">/*@-bounds@*/</span>
<a name="l00152"></a><a class="code" href="poptALL_8c.html#ffa1ac67a2998ad15266014f6606f607">00152</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="poptALL_8c.html#ffa1ac67a2998ad15266014f6606f607">rpmcliAllArgCallback</a>( <span class="comment">/*@unused@*/</span> <a class="code" href="structpoptContext__s.html">poptContext</a> con,
<a name="l00153"></a>00153                 <span class="comment">/*@unused@*/</span> <span class="keyword">enum</span> <a class="code" href="popt_8h.html#fe00605489c2aa204cdb5a14e26b3a70">poptCallbackReason</a> reason,
<a name="l00154"></a>00154                 <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structpoptOption.html">poptOption</a> * opt, <span class="keyword">const</span> <span class="keywordtype">char</span> * arg,
<a name="l00155"></a>00155                 <span class="comment">/*@unused@*/</span> <span class="keyword">const</span> <span class="keywordtype">void</span> * data)
<a name="l00156"></a>00156         <span class="comment">/*@globals rpmcliQueryFlags, rpmCLIMacroContext, rpmGlobalMacroContext,</span>
<a name="l00157"></a>00157 <span class="comment">                h_errno, fileSystem, internalState @*/</span>
<a name="l00158"></a>00158         <span class="comment">/*@modifies rpmcliQueryFlags, rpmCLIMacroContext, rpmGlobalMacroContext,</span>
<a name="l00159"></a>00159 <span class="comment">                fileSystem, internalState @*/</span>
<a name="l00160"></a>00160 {
<a name="l00161"></a>00161 
<a name="l00162"></a>00162     <span class="comment">/* XXX avoid accidental collisions with POPT_BIT_SET for flags */</span>
<a name="l00163"></a>00163     <span class="comment">/*@-branchstate@*/</span>
<a name="l00164"></a>00164     <span class="keywordflow">if</span> (opt-&gt;<a class="code" href="structpoptOption.html#6915698448ea2e263ad0cf0756d8df65">arg</a> == NULL)
<a name="l00165"></a>00165     <span class="keywordflow">switch</span> (opt-&gt;<a class="code" href="structpoptOption.html#a6a9c91f5c1869870c3b872395e2b625">val</a>) {
<a name="l00166"></a>00166     <span class="keywordflow">case</span> <span class="charliteral">'q'</span>:
<a name="l00167"></a>00167         <a class="code" href="rpmmessages_8h.html#8aba89fad1a508955abd6f203ad0a4fc">rpmSetVerbosity</a>(<a class="code" href="rpmmessages_8h.html#54527296ed320e751cee8d30a93985a3">RPMMESS_QUIET</a>);
<a name="l00168"></a>00168         <span class="keywordflow">break</span>;
<a name="l00169"></a>00169     <span class="keywordflow">case</span> <span class="charliteral">'v'</span>:
<a name="l00170"></a>00170         <a class="code" href="rpmmessages_8h.html#ee41d1862b6f9e64bceb7060095d934b">rpmIncreaseVerbosity</a>();
<a name="l00171"></a>00171         <span class="keywordflow">break</span>;
<a name="l00172"></a>00172     <span class="keywordflow">case</span> <a class="code" href="poptALL_8c.html#34780f1cdeb1784994138ccab5fd2c23">POPT_PREDEFINE</a>:
<a name="l00173"></a>00173         (void) <a class="code" href="macro_8c.html#9efaba7c44be35c0f2626b6114b154b7">rpmDefineMacro</a>(NULL, arg, <a class="code" href="rpmmacro_8h.html#88dd84061eeafe42c0d914d91003fdcc">RMIL_CMDLINE</a>);
<a name="l00174"></a>00174         <span class="keywordflow">break</span>;
<a name="l00175"></a>00175     <span class="keywordflow">case</span> <span class="charliteral">'D'</span>:
<a name="l00176"></a>00176     {   <span class="keywordtype">char</span> *s, *t;
<a name="l00177"></a>00177         <span class="comment">/* XXX Convert '-' in macro name to underscore, skip leading %. */</span>
<a name="l00178"></a>00178         s = t = <a class="code" href="system_8h.html#d6142d091f00b2d4543ce7a43e5d0eba">xstrdup</a>(arg);
<a name="l00179"></a>00179         <span class="keywordflow">while</span> (*t &amp;&amp; !<a class="code" href="stringbuf_8c.html#a481190ded02056b6b5710dad2d913a4">xisspace</a>(*t)) {
<a name="l00180"></a>00180             <span class="keywordflow">if</span> (*t == <span class="charliteral">'-'</span>) *t = <span class="charliteral">'_'</span>;
<a name="l00181"></a>00181             t++;
<a name="l00182"></a>00182         }
<a name="l00183"></a>00183         t = s;
<a name="l00184"></a>00184         <span class="keywordflow">if</span> (*t == <span class="charliteral">'%'</span>) t++;
<a name="l00185"></a>00185         <span class="comment">/* XXX Predefine macro if not initialized yet. */</span>
<a name="l00186"></a>00186         <span class="keywordflow">if</span> (<a class="code" href="poptALL_8c.html#33c0e64cdfc938644808fe2fd1a554dd">rpmcliInitialized</a> &lt; 0)
<a name="l00187"></a>00187             (void) <a class="code" href="macro_8c.html#9efaba7c44be35c0f2626b6114b154b7">rpmDefineMacro</a>(NULL, t, <a class="code" href="rpmmacro_8h.html#88dd84061eeafe42c0d914d91003fdcc">RMIL_CMDLINE</a>);
<a name="l00188"></a>00188         <a class="code" href="poptALL_8c.html#348b8881a605cd00bafb6141fe45fb49">rpmcliConfigured</a>();
<a name="l00189"></a>00189         (void) <a class="code" href="macro_8c.html#9efaba7c44be35c0f2626b6114b154b7">rpmDefineMacro</a>(NULL, t, <a class="code" href="rpmmacro_8h.html#88dd84061eeafe42c0d914d91003fdcc">RMIL_CMDLINE</a>);
<a name="l00190"></a>00190         (void) <a class="code" href="macro_8c.html#9efaba7c44be35c0f2626b6114b154b7">rpmDefineMacro</a>(<a class="code" href="rpmlib_8h.html#2c0f46ea6155b96f124b6df15076fa2e">rpmCLIMacroContext</a>, t, <a class="code" href="rpmmacro_8h.html#88dd84061eeafe42c0d914d91003fdcc">RMIL_CMDLINE</a>);
<a name="l00191"></a>00191         s = <a class="code" href="rpmlib_8h.html#2574a8c557fe9a6754ff3b3656943f23">_free</a>(s);
<a name="l00192"></a>00192         <span class="keywordflow">break</span>;
<a name="l00193"></a>00193     }
<a name="l00194"></a>00194     <span class="keywordflow">case</span> <span class="charliteral">'E'</span>:
<a name="l00195"></a>00195         <a class="code" href="poptALL_8c.html#348b8881a605cd00bafb6141fe45fb49">rpmcliConfigured</a>();
<a name="l00196"></a>00196         {   <span class="keyword">const</span> <span class="keywordtype">char</span> *val = <a class="code" href="macro_8c.html#5d9a83318fc250d1fad8096c811754d4">rpmExpand</a>(arg, NULL);
<a name="l00197"></a>00197             fprintf(stdout, <span class="stringliteral">"%s\n"</span>, val);
<a name="l00198"></a>00198             val = <a class="code" href="rpmlib_8h.html#2574a8c557fe9a6754ff3b3656943f23">_free</a>(val);
<a name="l00199"></a>00199         }
<a name="l00200"></a>00200         <span class="keywordflow">break</span>;
<a name="l00201"></a>00201     <span class="keywordflow">case</span> <a class="code" href="poptALL_8c.html#07c456554be01929d49cda506aee8b76">POPT_SHOWVERSION</a>:
<a name="l00202"></a>00202         <a class="code" href="rpmqv_8c.html#8ed9d1e1fd5e07cfb6569c185bddb81b">printVersion</a>(stdout);
<a name="l00203"></a>00203         exit(EXIT_SUCCESS);
<a name="l00204"></a>00204         <span class="comment">/*@notreached@*/</span> <span class="keywordflow">break</span>;
<a name="l00205"></a>00205     <span class="keywordflow">case</span> <a class="code" href="poptALL_8c.html#6ec4d69a79fd6b65aa660b2aa95365b4">POPT_SHOWRC</a>:
<a name="l00206"></a>00206         <a class="code" href="poptALL_8c.html#348b8881a605cd00bafb6141fe45fb49">rpmcliConfigured</a>();
<a name="l00207"></a>00207         (void) <a class="code" href="group__rpmrc.html#g24a3bbf6d9f2d391a8d4dc4a1820cb5d">rpmShowRC</a>(stdout);
<a name="l00208"></a>00208         exit(EXIT_SUCCESS);
<a name="l00209"></a>00209         <span class="comment">/*@notreached@*/</span> <span class="keywordflow">break</span>;
<a name="l00210"></a>00210     <span class="keywordflow">case</span> <a class="code" href="poptALL_8c.html#50a1e978977b7e0e2db9f605778838a5">POPT_QUERYTAGS</a>:
<a name="l00211"></a>00211         <a class="code" href="group__rpmcli.html#g8eef4f7a007c911686707c486869a177">rpmDisplayQueryTags</a>(stdout);
<a name="l00212"></a>00212         exit(EXIT_SUCCESS);
<a name="l00213"></a>00213         <span class="comment">/*@notreached@*/</span> <span class="keywordflow">break</span>;
<a name="l00214"></a>00214 <span class="preprocessor">#if defined(POPT_RCFILE)</span>
<a name="l00215"></a>00215 <span class="preprocessor"></span>    <span class="keywordflow">case</span> POPT_RCFILE:           <span class="comment">/* XXX FIXME: noop for now */</span>
<a name="l00216"></a>00216         <span class="keywordflow">break</span>;
<a name="l00217"></a>00217 <span class="preprocessor">#endif</span>
<a name="l00218"></a>00218 <span class="preprocessor"></span>    <span class="keywordflow">case</span> <a class="code" href="rpmcli_8h.html#fb48778a1a20f41910a3826a5b236f97">RPMCLI_POPT_NODIGEST</a>:
<a name="l00219"></a>00219         <a class="code" href="group__rpmcli.html#gaf36449ccc525faa711b15faafdf7a84">rpmcliQueryFlags</a> |= <a class="code" href="group__rpmcli.html#gg88edb36096996aa24e1fc3385cb2140a8ebdf945fb2e42959951139d82cb3735">VERIFY_DIGEST</a>;
<a name="l00220"></a>00220         <span class="keywordflow">break</span>;
<a name="l00221"></a>00221 
<a name="l00222"></a>00222     <span class="keywordflow">case</span> <a class="code" href="rpmcli_8h.html#91324584d1ab1a34ecd14c9bf6974883">RPMCLI_POPT_NOSIGNATURE</a>:
<a name="l00223"></a>00223         <a class="code" href="group__rpmcli.html#gaf36449ccc525faa711b15faafdf7a84">rpmcliQueryFlags</a> |= <a class="code" href="group__rpmcli.html#gg88edb36096996aa24e1fc3385cb2140abe476139b5651dcbb51706ba8608a51b">VERIFY_SIGNATURE</a>;
<a name="l00224"></a>00224         <span class="keywordflow">break</span>;
<a name="l00225"></a>00225 
<a name="l00226"></a>00226     <span class="keywordflow">case</span> <a class="code" href="rpmcli_8h.html#a66638d6ad14c42d74b9d403d1333e38">RPMCLI_POPT_NOHDRCHK</a>:
<a name="l00227"></a>00227         <a class="code" href="group__rpmcli.html#gaf36449ccc525faa711b15faafdf7a84">rpmcliQueryFlags</a> |= <a class="code" href="group__rpmcli.html#gg88edb36096996aa24e1fc3385cb2140a8456599dc01840d5c9a758ebd6bd756c">VERIFY_HDRCHK</a>;
<a name="l00228"></a>00228         <span class="keywordflow">break</span>;
<a name="l00229"></a>00229     }
<a name="l00230"></a>00230     <span class="comment">/*@=branchstate@*/</span>
<a name="l00231"></a>00231 }
<a name="l00232"></a>00232 
<a name="l00233"></a>00233 <span class="comment">/*@unchecked@*/</span>
<a name="l00234"></a><a class="code" href="rpmcli_8h.html#c61e4b233ea63d390fb8e8de45cf91fd">00234</a> <span class="keywordtype">int</span> <a class="code" href="poptALL_8c.html#c61e4b233ea63d390fb8e8de45cf91fd">ftsOpts</a> = 0;
<a name="l00235"></a>00235 
<a name="l00236"></a>00236 <span class="comment">/*@unchecked@*/</span>
<a name="l00237"></a><a class="code" href="rpmcli_8h.html#bedd65e5379e0c372e1384ca38bfa591">00237</a> <span class="keyword">struct </span><a class="code" href="structpoptOption.html">poptOption</a> <a class="code" href="poptALL_8c.html#bedd65e5379e0c372e1384ca38bfa591">rpmcliFtsPoptTable</a>[] = {
<a name="l00238"></a>00238  { <span class="stringliteral">"comfollow"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#ccf851d0a8b11325d34203616e96e2dd">POPT_BIT_SET</a>,     &amp;<a class="code" href="poptALL_8c.html#c61e4b233ea63d390fb8e8de45cf91fd">ftsOpts</a>, <a class="code" href="fts_8h.html#8c3acc9a5caaef04ae2ed7bf9f8aa557">FTS_COMFOLLOW</a>,
<a name="l00239"></a>00239         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"FTS_COMFOLLOW: follow command line symlinks"</span>), NULL },
<a name="l00240"></a>00240  { <span class="stringliteral">"logical"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#ccf851d0a8b11325d34203616e96e2dd">POPT_BIT_SET</a>,       &amp;<a class="code" href="poptALL_8c.html#c61e4b233ea63d390fb8e8de45cf91fd">ftsOpts</a>, <a class="code" href="fts_8h.html#5ab8a9dea198bcc07557ce96d2da1d7c">FTS_LOGICAL</a>,
<a name="l00241"></a>00241         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"FTS_LOGICAL: logical walk"</span>), NULL },
<a name="l00242"></a>00242  { <span class="stringliteral">"nochdir"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#ccf851d0a8b11325d34203616e96e2dd">POPT_BIT_SET</a>,       &amp;<a class="code" href="poptALL_8c.html#c61e4b233ea63d390fb8e8de45cf91fd">ftsOpts</a>, <a class="code" href="fts_8h.html#204642f4e0e309da7f21872b1210f6c5">FTS_NOCHDIR</a>,
<a name="l00243"></a>00243         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"FTS_NOCHDIR: don't change directories"</span>), NULL },
<a name="l00244"></a>00244  { <span class="stringliteral">"nostat"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#ccf851d0a8b11325d34203616e96e2dd">POPT_BIT_SET</a>,        &amp;<a class="code" href="poptALL_8c.html#c61e4b233ea63d390fb8e8de45cf91fd">ftsOpts</a>, <a class="code" href="fts_8h.html#aee71f132445411a1560cab770163db7">FTS_NOSTAT</a>,
<a name="l00245"></a>00245         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"FTS_NOSTAT: don't get stat info"</span>), NULL },
<a name="l00246"></a>00246  { <span class="stringliteral">"physical"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#ccf851d0a8b11325d34203616e96e2dd">POPT_BIT_SET</a>,      &amp;<a class="code" href="poptALL_8c.html#c61e4b233ea63d390fb8e8de45cf91fd">ftsOpts</a>, <a class="code" href="fts_8h.html#f5730bf8b4cf11de7aa81ba747b9fc61">FTS_PHYSICAL</a>,
<a name="l00247"></a>00247         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"FTS_PHYSICAL: physical walk"</span>), NULL },
<a name="l00248"></a>00248  { <span class="stringliteral">"seedot"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#ccf851d0a8b11325d34203616e96e2dd">POPT_BIT_SET</a>,        &amp;<a class="code" href="poptALL_8c.html#c61e4b233ea63d390fb8e8de45cf91fd">ftsOpts</a>, <a class="code" href="fts_8h.html#feaf3b5ac823e983ba33c18e587528ae">FTS_SEEDOT</a>,
<a name="l00249"></a>00249         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"FTS_SEEDOT: return dot and dot-dot"</span>), NULL },
<a name="l00250"></a>00250  { <span class="stringliteral">"xdev"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#ccf851d0a8b11325d34203616e96e2dd">POPT_BIT_SET</a>,          &amp;<a class="code" href="poptALL_8c.html#c61e4b233ea63d390fb8e8de45cf91fd">ftsOpts</a>, <a class="code" href="fts_8h.html#348fe922265df7b8ee3644ccece8d76f">FTS_XDEV</a>,
<a name="l00251"></a>00251         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"FTS_XDEV: don't cross devices"</span>), NULL },
<a name="l00252"></a>00252  { <span class="stringliteral">"whiteout"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#ccf851d0a8b11325d34203616e96e2dd">POPT_BIT_SET</a>,      &amp;<a class="code" href="poptALL_8c.html#c61e4b233ea63d390fb8e8de45cf91fd">ftsOpts</a>, <a class="code" href="fts_8h.html#90972c635e6ed45c6154460e12f0ec2b">FTS_WHITEOUT</a>,
<a name="l00253"></a>00253         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"FTS_WHITEOUT: return whiteout information"</span>), NULL },
<a name="l00254"></a>00254    <a class="code" href="popt_8h.html#bb5479e3e11f1a22617b4d43c73083b4">POPT_TABLEEND</a>
<a name="l00255"></a>00255 };
<a name="l00256"></a>00256 
<a name="l00257"></a>00257 <span class="comment">/*@-bitwisesigned -compmempass @*/</span>
<a name="l00258"></a>00258 <span class="comment">/*@unchecked@*/</span>
<a name="l00259"></a><a class="code" href="group__rpmcli.html#g60bd8b746df91eb1824a7ad6ffd42cf1">00259</a> <span class="keyword">struct </span><a class="code" href="structpoptOption.html">poptOption</a> <a class="code" href="group__rpmcli.html#g60bd8b746df91eb1824a7ad6ffd42cf1">rpmcliAllPoptTable</a>[] = {
<a name="l00260"></a>00260 <span class="comment">/*@-type@*/</span> <span class="comment">/* FIX: cast? */</span>
<a name="l00261"></a>00261  { NULL, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#d13a93a7e60cf78b2dd0a22db8393ae2">POPT_ARG_CALLBACK</a> | <a class="code" href="popt_8h.html#9e42cc7ed37a800f8b14bd69c51dbdbf">POPT_CBFLAG_INC_DATA</a> | <a class="code" href="popt_8h.html#aa017dd880ece525e864c235f6677c84">POPT_CBFLAG_CONTINUE</a>,
<a name="l00262"></a>00262         <a class="code" href="poptALL_8c.html#ffa1ac67a2998ad15266014f6606f607">rpmcliAllArgCallback</a>, 0, NULL, NULL },
<a name="l00263"></a>00263 <span class="comment">/*@=type@*/</span>
<a name="l00264"></a>00264 
<a name="l00265"></a>00265  { <span class="stringliteral">"debug"</span>, <span class="charliteral">'d'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#4859ebf3de3eada7338899d0f24d3c23">_debug</a>, -1,
<a name="l00266"></a>00266         NULL, NULL },
<a name="l00267"></a>00267 
<a name="l00268"></a>00268  { <span class="stringliteral">"predefine"</span>, <span class="charliteral">'D'</span>, <a class="code" href="popt_8h.html#9a9fdc308379d49592585008126c28b1">POPT_ARG_STRING</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, 0, <a class="code" href="poptALL_8c.html#34780f1cdeb1784994138ccab5fd2c23">POPT_PREDEFINE</a>,
<a name="l00269"></a>00269         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"predefine MACRO with value EXPR"</span>),
<a name="l00270"></a>00270         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"'MACRO EXPR'"</span>) },
<a name="l00271"></a>00271  { <span class="stringliteral">"define"</span>, <span class="charliteral">'D'</span>, <a class="code" href="popt_8h.html#9a9fdc308379d49592585008126c28b1">POPT_ARG_STRING</a>, 0, <span class="charliteral">'D'</span>,
<a name="l00272"></a>00272         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"define MACRO with value EXPR"</span>),
<a name="l00273"></a>00273         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"'MACRO EXPR'"</span>) },
<a name="l00274"></a>00274  { <span class="stringliteral">"eval"</span>, <span class="charliteral">'E'</span>, <a class="code" href="popt_8h.html#9a9fdc308379d49592585008126c28b1">POPT_ARG_STRING</a>, 0, <span class="charliteral">'E'</span>,
<a name="l00275"></a>00275         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"print macro expansion of EXPR"</span>),
<a name="l00276"></a>00276         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"'EXPR'"</span>) },
<a name="l00277"></a>00277  { <span class="stringliteral">"macros"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#9a9fdc308379d49592585008126c28b1">POPT_ARG_STRING</a>, &amp;<a class="code" href="group__rpmrc.html#ge63ceb25d4146b91751ccf857f67f654">macrofiles</a>, 0,
<a name="l00278"></a>00278         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"read &lt;FILE:...&gt; instead of default file(s)"</span>),
<a name="l00279"></a>00279         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"&lt;FILE:...&gt;"</span>) },
<a name="l00280"></a>00280 
<a name="l00281"></a>00281  { <span class="stringliteral">"nodigest"</span>, <span class="charliteral">'\0'</span>, 0, 0, <a class="code" href="rpmcli_8h.html#fb48778a1a20f41910a3826a5b236f97">RPMCLI_POPT_NODIGEST</a>,
<a name="l00282"></a>00282         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"don't verify package digest(s)"</span>), NULL },
<a name="l00283"></a>00283  { <span class="stringliteral">"nohdrchk"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, 0, <a class="code" href="rpmcli_8h.html#a66638d6ad14c42d74b9d403d1333e38">RPMCLI_POPT_NOHDRCHK</a>,
<a name="l00284"></a>00284         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"don't verify database header(s) when retrieved"</span>), NULL },
<a name="l00285"></a>00285 <span class="preprocessor">#if HAVE_LIBIO_H &amp;&amp; defined(_G_IO_IO_FILE_VERSION)</span>
<a name="l00286"></a>00286 <span class="preprocessor"></span> { <span class="stringliteral">"nolibio"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#eb027ab2d238bec6864baf42902c95a5">noLibio</a>, 1,
<a name="l00287"></a>00287         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"disable use of libio(3) API"</span>), NULL},
<a name="l00288"></a>00288 <span class="preprocessor">#endif</span>
<a name="l00289"></a>00289 <span class="preprocessor"></span> { <span class="stringliteral">"nosignature"</span>, <span class="charliteral">'\0'</span>, 0, 0, <a class="code" href="rpmcli_8h.html#91324584d1ab1a34ecd14c9bf6974883">RPMCLI_POPT_NOSIGNATURE</a>,
<a name="l00290"></a>00290         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"don't verify package signature(s)"</span>), NULL },
<a name="l00291"></a>00291 
<a name="l00292"></a>00292  { <span class="stringliteral">"pipe"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#9a9fdc308379d49592585008126c28b1">POPT_ARG_STRING</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#2f2a17a4befac63f642cca0446d6c302">rpmcliPipeOutput</a>, 0,
<a name="l00293"></a>00293         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"send stdout to CMD"</span>),
<a name="l00294"></a>00294         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"CMD"</span>) },
<a name="l00295"></a>00295 <span class="preprocessor">#if !defined(POPT_RCFILE)</span>
<a name="l00296"></a>00296 <span class="preprocessor"></span> { <span class="stringliteral">"rcfile"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#9a9fdc308379d49592585008126c28b1">POPT_ARG_STRING</a>, &amp;<a class="code" href="poptALL_8c.html#3029d149e73de935c2f2a0b5fa8c3508">rpmcliRcfile</a>, 0,
<a name="l00297"></a>00297         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"read &lt;FILE:...&gt; instead of default file(s)"</span>),
<a name="l00298"></a>00298         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"&lt;FILE:...&gt;"</span>) },
<a name="l00299"></a>00299 <span class="preprocessor">#else</span>
<a name="l00300"></a>00300 <span class="preprocessor"></span> { <span class="stringliteral">"rcfile"</span>, <span class="charliteral">'\0'</span>, 0, NULL, POPT_RCFILE,        
<a name="l00301"></a>00301         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"read &lt;FILE:...&gt; instead of default file(s)"</span>),
<a name="l00302"></a>00302         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"&lt;FILE:...&gt;"</span>) },
<a name="l00303"></a>00303 <span class="preprocessor">#endif</span>
<a name="l00304"></a>00304 <span class="preprocessor"></span> { <span class="stringliteral">"root"</span>, <span class="charliteral">'r'</span>, <a class="code" href="popt_8h.html#9a9fdc308379d49592585008126c28b1">POPT_ARG_STRING</a>|<a class="code" href="popt_8h.html#1fdd9f7090382015bba7d9640b81158a">POPT_ARGFLAG_SHOW_DEFAULT</a>, &amp;<a class="code" href="poptALL_8c.html#4a1b016e2d7aaea6937155c21c87a215">rpmcliRootDir</a>, 0,
<a name="l00305"></a>00305         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"use ROOT as top level directory"</span>),
<a name="l00306"></a>00306         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"ROOT"</span>) },
<a name="l00307"></a>00307 
<a name="l00308"></a>00308  { <span class="stringliteral">"querytags"</span>, <span class="charliteral">'\0'</span>, 0, 0, <a class="code" href="poptALL_8c.html#50a1e978977b7e0e2db9f605778838a5">POPT_QUERYTAGS</a>,
<a name="l00309"></a>00309         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"display known query tags"</span>), NULL },
<a name="l00310"></a>00310  { <span class="stringliteral">"showrc"</span>, <span class="charliteral">'\0'</span>, 0, NULL, <a class="code" href="poptALL_8c.html#6ec4d69a79fd6b65aa660b2aa95365b4">POPT_SHOWRC</a>,
<a name="l00311"></a>00311         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"display final rpmrc and macro configuration"</span>), NULL },
<a name="l00312"></a>00312  { <span class="stringliteral">"quiet"</span>, <span class="charliteral">'\0'</span>, 0, NULL, <span class="charliteral">'q'</span>,
<a name="l00313"></a>00313         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"provide less detailed output"</span>), NULL},
<a name="l00314"></a>00314  { <span class="stringliteral">"verbose"</span>, <span class="charliteral">'v'</span>, 0, NULL, <span class="charliteral">'v'</span>,
<a name="l00315"></a>00315         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"provide more detailed output"</span>), NULL},
<a name="l00316"></a>00316  { <span class="stringliteral">"version"</span>, <span class="charliteral">'\0'</span>, 0, NULL, <a class="code" href="poptALL_8c.html#07c456554be01929d49cda506aee8b76">POPT_SHOWVERSION</a>,
<a name="l00317"></a>00317         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"print the version of rpm being used"</span>), NULL },
<a name="l00318"></a>00318 
<a name="l00319"></a>00319 <span class="preprocessor">#if HAVE_LIBIO_H &amp;&amp; defined(_G_IO_IO_FILE_VERSION)</span>
<a name="l00320"></a>00320 <span class="preprocessor"></span> { <span class="stringliteral">"nolibio"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#eb027ab2d238bec6864baf42902c95a5">noLibio</a>, 1,
<a name="l00321"></a>00321        <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"disable use of libio(3) API"</span>), NULL},
<a name="l00322"></a>00322 <span class="preprocessor">#endif</span>
<a name="l00323"></a>00323 <span class="preprocessor"></span>
<a name="l00324"></a>00324  { <span class="stringliteral">"promoteepoch"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#d3b78c2f0ff0af8c3f5b1b49f6918deb">_rpmds_nopromote</a>, 0,
<a name="l00325"></a>00325         NULL, NULL},
<a name="l00326"></a>00326 
<a name="l00327"></a>00327  { <span class="stringliteral">"fpsdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#35245f6e78b3d20a5895cb3bbf76b4f0">_fps_debug</a>, -1,
<a name="l00328"></a>00328         NULL, NULL},
<a name="l00329"></a>00329  { <span class="stringliteral">"fsmdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptBT_8c.html#a9d80721d6d496e7e799ad3926f7a44b">_fsm_debug</a>, -1,
<a name="l00330"></a>00330         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"debug payload file state machine"</span>), NULL},
<a name="l00331"></a>00331  { <span class="stringliteral">"fsmthreads"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="fsm_8c.html#8f971a68b642a3aafd8b8aa003b41801">_fsm_threads</a>, -1,
<a name="l00332"></a>00332         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"use threads for file state machine"</span>), NULL},
<a name="l00333"></a>00333  { <span class="stringliteral">"ftpdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#ab87395ef3a9640980f39a65cd124516">_ftp_debug</a>, -1,
<a name="l00334"></a>00334         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"debug FTP/HTTP data stream"</span>), NULL},
<a name="l00335"></a>00335  { <span class="stringliteral">"avdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#eafa60fff5391a85608f3753c90a963e">_av_debug</a>, -1,
<a name="l00336"></a>00336         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"debug argv collections"</span>), NULL},
<a name="l00337"></a>00337  { <span class="stringliteral">"davdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#08b2b12b5b4b4433702c63ba0442354e">_dav_debug</a>, -1,
<a name="l00338"></a>00338         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"debug WebDAV data stream"</span>), NULL},
<a name="l00339"></a>00339  { <span class="stringliteral">"hdrdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#a911cde9b3cbd2e388faf0929e2787eb">_hdr_debug</a>, -1,
<a name="l00340"></a>00340         NULL, NULL},
<a name="l00341"></a>00341 <span class="preprocessor">#ifdef  DYING</span>
<a name="l00342"></a>00342 <span class="preprocessor"></span> { <span class="stringliteral">"poptdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;_popt_debug, -1,
<a name="l00343"></a>00343         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"debug option/argument processing"</span>), NULL},
<a name="l00344"></a>00344 <span class="preprocessor">#endif</span>
<a name="l00345"></a>00345 <span class="preprocessor"></span> { <span class="stringliteral">"prtpkts"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="package_8c.html#ecd25710f1d2b5bb3fe8325b1396a34d">_print_pkts</a>, -1,
<a name="l00346"></a>00346         NULL, NULL},
<a name="l00347"></a>00347  { <span class="stringliteral">"psmdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#c1738d4bbd625c7bdd68a5721abce244">_psm_debug</a>, -1,
<a name="l00348"></a>00348         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"debug package state machine"</span>), NULL},
<a name="l00349"></a>00349  { <span class="stringliteral">"psmthreads"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#f1cd49d46dc236eb1faa6446bd86cf31">_psm_threads</a>, -1,
<a name="l00350"></a>00350         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"use threads for package state machine"</span>), NULL},
<a name="l00351"></a>00351  { <span class="stringliteral">"rpmaldebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#9d7993a8ce86dfadf66f3212101afcb7">_rpmal_debug</a>, -1,
<a name="l00352"></a>00352         NULL, NULL},
<a name="l00353"></a>00353  { <span class="stringliteral">"rpmdbdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#2af73bfa54f40c03158ae5cb6ac09216">_rpmdb_debug</a>, -1,
<a name="l00354"></a>00354         NULL, NULL},
<a name="l00355"></a>00355  { <span class="stringliteral">"rpmdsdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#3b561d007162dd24d57a47387a5a6c90">_rpmds_debug</a>, -1,
<a name="l00356"></a>00356         NULL, NULL},
<a name="l00357"></a>00357  { <span class="stringliteral">"rpmfcdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="rpmfc_8h.html#52886d44344391a5043c38ff37d9925d">_rpmfc_debug</a>, -1,
<a name="l00358"></a>00358         NULL, NULL},
<a name="l00359"></a>00359  { <span class="stringliteral">"rpmfidebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#5710da70dd59448d5fa8f64dc3cd28b9">_rpmfi_debug</a>, -1,
<a name="l00360"></a>00360         NULL, NULL},
<a name="l00361"></a>00361  { <span class="stringliteral">"rpmgidebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#16617cc90c35af7c4af7f900ac6d6c16">_rpmgi_debug</a>, -1,
<a name="l00362"></a>00362         NULL, NULL},
<a name="l00363"></a>00363  { <span class="stringliteral">"rpmiodebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#e65e452cc653e9826fa01652d9a26102">_rpmio_debug</a>, -1,
<a name="l00364"></a>00364         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"debug rpmio I/O"</span>), NULL},
<a name="l00365"></a>00365  { <span class="stringliteral">"rpmpsdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#886e382d65e81a1fd40c2f9710ed4846">_rpmps_debug</a>, -1,
<a name="l00366"></a>00366         NULL, NULL},
<a name="l00367"></a>00367  { <span class="stringliteral">"rpmsqdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#9a254c1bbc1ff71759916077c8647d4b">_rpmsq_debug</a>, -1,
<a name="l00368"></a>00368         NULL, NULL},
<a name="l00369"></a>00369  { <span class="stringliteral">"rpmsxdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#5163619b40a7de54cf579f4b98c0b9ca">_rpmsx_debug</a>, -1,
<a name="l00370"></a>00370         NULL, NULL},
<a name="l00371"></a>00371  { <span class="stringliteral">"rpmtedebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#ba316314b142906ef83fa5f3361a4f39">_rpmte_debug</a>, -1,
<a name="l00372"></a>00372         NULL, NULL},
<a name="l00373"></a>00373  { <span class="stringliteral">"rpmtsdebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#d663cf81dfc3020fdee088b820bc2cf5">_rpmts_debug</a>, -1,
<a name="l00374"></a>00374         NULL, NULL},
<a name="l00375"></a>00375  { <span class="stringliteral">"stats"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="poptALL_8c.html#76af99570cb516c74b5ef9e4e59bf2b4">_rpmts_stats</a>, -1,
<a name="l00376"></a>00376         NULL, NULL},
<a name="l00377"></a>00377  { <span class="stringliteral">"urldebug"</span>, <span class="charliteral">'\0'</span>, <a class="code" href="popt_8h.html#3cce9e5474e0828f7a87dca5b2c4a4f9">POPT_ARG_VAL</a>|<a class="code" href="popt_8h.html#1f108633e1f7f983f4a5a478176dee4a">POPT_ARGFLAG_DOC_HIDDEN</a>, &amp;<a class="code" href="rpmurl_8h.html#ec6b4b602f9910e0602ce221e20b40f7">_url_debug</a>, -1,
<a name="l00378"></a>00378         <a class="code" href="system_8h.html#ca24492e24b07d15df23b4957092a9f3">N_</a>(<span class="stringliteral">"debug URL cache handling"</span>), NULL},
<a name="l00379"></a>00379 
<a name="l00380"></a>00380    <a class="code" href="popt_8h.html#bb5479e3e11f1a22617b4d43c73083b4">POPT_TABLEEND</a>
<a name="l00381"></a>00381 };
<a name="l00382"></a>00382 <span class="comment">/*@=bitwisesigned =compmempass @*/</span>
<a name="l00383"></a>00383 
<a name="l00384"></a>00384 <a class="code" href="structpoptContext__s.html">poptContext</a>
<a name="l00385"></a><a class="code" href="rpmcli_8h.html#9b4197af25cc216aa3bb7cce5d158dcf">00385</a> <a class="code" href="poptALL_8c.html#9b4197af25cc216aa3bb7cce5d158dcf">rpmcliFini</a>(<a class="code" href="structpoptContext__s.html">poptContext</a> optCon)
<a name="l00386"></a>00386 {
<a name="l00387"></a>00387     optCon = <a class="code" href="group__popt.html#gcacbdcde9b4c5600176b37ffb06224a3">poptFreeContext</a>(optCon);
<a name="l00388"></a>00388 
<a name="l00389"></a>00389 <span class="preprocessor">#if HAVE_MCHECK_H &amp;&amp; HAVE_MTRACE</span>
<a name="l00390"></a>00390 <span class="preprocessor"></span>    <span class="comment">/*@-noeffect@*/</span>
<a name="l00391"></a>00391     muntrace();   <span class="comment">/* Trace malloc only if MALLOC_TRACE=mtrace-output-file. */</span>
<a name="l00392"></a>00392     <span class="comment">/*@=noeffect@*/</span>
<a name="l00393"></a>00393 <span class="preprocessor">#endif</span>
<a name="l00394"></a>00394 <span class="preprocessor"></span>
<a name="l00395"></a>00395     <span class="keywordflow">return</span> NULL;
<a name="l00396"></a>00396 }
<a name="l00397"></a>00397 
<a name="l00398"></a>00398 <span class="comment">/*@-globstate@*/</span>
<a name="l00399"></a>00399 <a class="code" href="structpoptContext__s.html">poptContext</a>
<a name="l00400"></a><a class="code" href="rpmcli_8h.html#f4d555b4c5efcf319fe643d164775eaf">00400</a> <a class="code" href="poptALL_8c.html#f4d555b4c5efcf319fe643d164775eaf">rpmcliInit</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *<span class="keyword">const</span> <a class="code" href="compress_8c.html#b233d58a2d9af13ae09ea8fd82556856">argv</a>[], <span class="keyword">struct</span> <a class="code" href="structpoptOption.html">poptOption</a> * <a class="code" href="rpmqv_8c.html#779c8fb41edee9b03a02a249606b0e76">optionsTable</a>)
<a name="l00401"></a>00401 {
<a name="l00402"></a>00402     <span class="keyword">const</span> <span class="keywordtype">char</span> * optArg;
<a name="l00403"></a>00403     <a class="code" href="structpoptContext__s.html">poptContext</a> optCon;
<a name="l00404"></a>00404     <span class="keywordtype">int</span> rc;
<a name="l00405"></a>00405 
<a name="l00406"></a>00406 <span class="preprocessor">#if HAVE_MCHECK_H &amp;&amp; HAVE_MTRACE</span>
<a name="l00407"></a>00407 <span class="preprocessor"></span>    <span class="comment">/*@-noeffect@*/</span>
<a name="l00408"></a>00408     mtrace();   <span class="comment">/* Trace malloc only if MALLOC_TRACE=mtrace-output-file. */</span>
<a name="l00409"></a>00409     <span class="comment">/*@=noeffect@*/</span>
<a name="l00410"></a>00410 <span class="preprocessor">#endif</span>
<a name="l00411"></a>00411 <span class="preprocessor"></span><span class="comment">/*@-globs -mods@*/</span>
<a name="l00412"></a>00412     <a class="code" href="system_8h.html#08b0a5a39651f29857ebec61a69217a2">setprogname</a>(argv[0]);       <span class="comment">/* Retrofit glibc __progname */</span>
<a name="l00413"></a>00413 
<a name="l00414"></a>00414     <span class="comment">/* XXX glibc churn sanity */</span>
<a name="l00415"></a>00415     <span class="keywordflow">if</span> (<a class="code" href="system_8h.html#41c2f9db0a7e23392fbbebb1d1c185ec">__progname</a> == NULL) {
<a name="l00416"></a>00416         <span class="keywordflow">if</span> ((<a class="code" href="system_8h.html#41c2f9db0a7e23392fbbebb1d1c185ec">__progname</a> = strrchr(argv[0], <span class="charliteral">'/'</span>)) != NULL) <a class="code" href="system_8h.html#41c2f9db0a7e23392fbbebb1d1c185ec">__progname</a>++;
<a name="l00417"></a>00417         <span class="keywordflow">else</span> <a class="code" href="system_8h.html#41c2f9db0a7e23392fbbebb1d1c185ec">__progname</a> = argv[0];
<a name="l00418"></a>00418     }
<a name="l00419"></a>00419 <span class="comment">/*@=globs =mods@*/</span>
<a name="l00420"></a>00420 
<a name="l00421"></a>00421 <span class="preprocessor">#if defined(ENABLE_NLS) &amp;&amp; !defined(__LCLINT__)</span>
<a name="l00422"></a>00422 <span class="preprocessor"></span>    (void) <a class="code" href="system_8h.html#b5e1d9cb300656a04286db094bedd7ef">setlocale</a>(LC_ALL, <span class="stringliteral">""</span> );
<a name="l00423"></a>00423     (void) <a class="code" href="system_8h.html#dd6dfc1077058ff26d79cdb18099d58a">bindtextdomain</a>(<a class="code" href="config_8h.html#ca8570fb706c81df371b7f9bc454ae03">PACKAGE</a>, <a class="code" href="config_8h.html#b2cb7816c01560f1bab8b2dbd94be4c8">LOCALEDIR</a>);
<a name="l00424"></a>00424     (void) <a class="code" href="system_8h.html#3adff4c69f0a5613a459ff23d749166c">textdomain</a>(<a class="code" href="config_8h.html#ca8570fb706c81df371b7f9bc454ae03">PACKAGE</a>);
<a name="l00425"></a>00425 <span class="preprocessor">#endif</span>
<a name="l00426"></a>00426 <span class="preprocessor"></span>
<a name="l00427"></a>00427     <a class="code" href="rpmmessages_8h.html#8aba89fad1a508955abd6f203ad0a4fc">rpmSetVerbosity</a>(<a class="code" href="rpmmessages_8h.html#5262960708ff4376c78bbd32dc5b7d62">RPMMESS_NORMAL</a>);
<a name="l00428"></a>00428 
<a name="l00429"></a>00429     <span class="keywordflow">if</span> (<a class="code" href="rpmqv_8c.html#779c8fb41edee9b03a02a249606b0e76">optionsTable</a> == NULL) {
<a name="l00430"></a>00430         <span class="comment">/* Read rpm configuration (if not already read). */</span>
<a name="l00431"></a>00431         <a class="code" href="poptALL_8c.html#348b8881a605cd00bafb6141fe45fb49">rpmcliConfigured</a>();
<a name="l00432"></a>00432         <span class="keywordflow">return</span> NULL;
<a name="l00433"></a>00433     }
<a name="l00434"></a>00434 
<a name="l00435"></a>00435 <span class="comment">/*@-nullpass -temptrans@*/</span>
<a name="l00436"></a>00436     optCon = <a class="code" href="group__popt.html#gdcbf6cd11e53153653c4887dbc22c8e5">poptGetContext</a>(<a class="code" href="system_8h.html#41c2f9db0a7e23392fbbebb1d1c185ec">__progname</a>, argc, (<span class="keyword">const</span> <span class="keywordtype">char</span> **)argv, <a class="code" href="rpmqv_8c.html#779c8fb41edee9b03a02a249606b0e76">optionsTable</a>, 0);
<a name="l00437"></a>00437 <span class="comment">/*@=nullpass =temptrans@*/</span>
<a name="l00438"></a>00438     (void) <a class="code" href="group__popt.html#g8f0347f05b72315b7a29abb013a9d162">poptReadConfigFile</a>(optCon, <a class="code" href="config_8h.html#c3554db4dafb23858dfb4f89ffa4e316">LIBRPMALIAS_FILENAME</a>);
<a name="l00439"></a>00439     (void) <a class="code" href="group__popt.html#gffd51981d556a32e283298e7f8eca69e">poptReadDefaultConfig</a>(optCon, 1);
<a name="l00440"></a>00440     <a class="code" href="group__popt.html#g0f4836b0740d052af6427757c4c72309">poptSetExecPath</a>(optCon, <a class="code" href="config_8h.html#73414b57857c23b6b1b43b46bdfc7c51">RPMCONFIGDIR</a>, 1);
<a name="l00441"></a>00441 
<a name="l00442"></a>00442     <span class="comment">/* Process all options, whine if unknown. */</span>
<a name="l00443"></a>00443     <span class="keywordflow">while</span> ((rc = <a class="code" href="group__popt.html#g7610b6fe74ccf5c7d2b5e67beca41605">poptGetNextOpt</a>(optCon)) &gt; 0) {
<a name="l00444"></a>00444         optArg = <a class="code" href="group__popt.html#g4672f6a24ba912203b47f4e4036cafe8">poptGetOptArg</a>(optCon);
<a name="l00445"></a>00445         <span class="keywordflow">switch</span> (rc) {
<a name="l00446"></a>00446         <span class="keywordflow">default</span>:
<a name="l00447"></a>00447 <span class="comment">/*@-nullpass@*/</span>
<a name="l00448"></a>00448             fprintf(stderr, <a class="code" href="system_8h.html#8a97de23397d8af6821824c0234d8c3c">_</a>(<span class="stringliteral">"%s: option table misconfigured (%d)\n"</span>),
<a name="l00449"></a>00449                 <a class="code" href="system_8h.html#41c2f9db0a7e23392fbbebb1d1c185ec">__progname</a>, rc);
<a name="l00450"></a>00450 <span class="comment">/*@=nullpass@*/</span>
<a name="l00451"></a>00451             exit(<a class="code" href="system_8h.html#73efe787c131b385070f25d18b7c9aa4">EXIT_FAILURE</a>);
<a name="l00452"></a>00452 
<a name="l00453"></a>00453             <span class="comment">/*@notreached@*/</span> <span class="comment">/*@switchbreak@*/</span> <span class="keywordflow">break</span>;
<a name="l00454"></a>00454         }
<a name="l00455"></a>00455     }
<a name="l00456"></a>00456 
<a name="l00457"></a>00457     <span class="keywordflow">if</span> (rc &lt; -1) {
<a name="l00458"></a>00458 <span class="comment">/*@-nullpass@*/</span>
<a name="l00459"></a>00459         fprintf(stderr, <span class="stringliteral">"%s: %s: %s\n"</span>, <a class="code" href="system_8h.html#41c2f9db0a7e23392fbbebb1d1c185ec">__progname</a>,
<a name="l00460"></a>00460                 <a class="code" href="group__popt.html#gec25ffc933c6fac2a67fc313618460bf">poptBadOption</a>(optCon, <a class="code" href="popt_8h.html#6ed58d6f19a41160f386c4c274ea330d">POPT_BADOPTION_NOALIAS</a>),
<a name="l00461"></a>00461                 <a class="code" href="group__popt.html#g477914d0129cb66a98d5c1d3cc7cd07a">poptStrerror</a>(rc));
<a name="l00462"></a>00462 <span class="comment">/*@=nullpass@*/</span>
<a name="l00463"></a>00463         exit(<a class="code" href="system_8h.html#73efe787c131b385070f25d18b7c9aa4">EXIT_FAILURE</a>);
<a name="l00464"></a>00464     }
<a name="l00465"></a>00465 
<a name="l00466"></a>00466     <span class="comment">/* Read rpm configuration (if not already read). */</span>
<a name="l00467"></a>00467     <a class="code" href="poptALL_8c.html#348b8881a605cd00bafb6141fe45fb49">rpmcliConfigured</a>();
<a name="l00468"></a>00468 
<a name="l00469"></a>00469     <span class="keywordflow">if</span> (<a class="code" href="poptALL_8c.html#4859ebf3de3eada7338899d0f24d3c23">_debug</a>) {
<a name="l00470"></a>00470         <a class="code" href="rpmmessages_8h.html#ee41d1862b6f9e64bceb7060095d934b">rpmIncreaseVerbosity</a>();
<a name="l00471"></a>00471         <a class="code" href="rpmmessages_8h.html#ee41d1862b6f9e64bceb7060095d934b">rpmIncreaseVerbosity</a>();
<a name="l00472"></a>00472     }
<a name="l00473"></a>00473 
<a name="l00474"></a>00474     <span class="keywordflow">return</span> optCon;
<a name="l00475"></a>00475 }
<a name="l00476"></a>00476 <span class="comment">/*@=globstate@*/</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on 1 Oct 2013 for rpm by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>