<!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.11"/>
<title>rpm: cliutils.c File Reference</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.12.0.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> |
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">cliutils.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include "<a class="el" href="system_8h_source.html">system.h</a>"</code><br />
<code>#include <errno.h></code><br />
<code>#include <sys/wait.h></code><br />
<code>#include <rpm/rpmlog.h></code><br />
<code>#include <rpm/rpmlib.h></code><br />
<code>#include <rpm/rpmfileutil.h></code><br />
<code>#include <rpm/rpmmacro.h></code><br />
<code>#include <rpm/rpmcli.h></code><br />
<code>#include "<a class="el" href="cliutils_8h_source.html">cliutils.h</a>"</code><br />
<code>#include "<a class="el" href="debug_8h_source.html">debug.h</a>"</code><br />
</div>
<p><a href="cliutils_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a04b3e702e4cded860c0e1c9bb6f104ed"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#a04b3e702e4cded860c0e1c9bb6f104ed">argerror</a> (const char *desc)</td></tr>
<tr class="separator:a04b3e702e4cded860c0e1c9bb6f104ed"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8ed9d1e1fd5e07cfb6569c185bddb81b"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#a8ed9d1e1fd5e07cfb6569c185bddb81b">printVersion</a> (FILE *fp)</td></tr>
<tr class="separator:a8ed9d1e1fd5e07cfb6569c185bddb81b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a072d7c6bea49d9b386d9c1f53b96aea2"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#a072d7c6bea49d9b386d9c1f53b96aea2">printBanner</a> (FILE *fp)</td></tr>
<tr class="separator:a072d7c6bea49d9b386d9c1f53b96aea2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4a1ef17fed649a0761310301053e97ed"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#a4a1ef17fed649a0761310301053e97ed">printUsage</a> (poptContext con, FILE *fp, int flags)</td></tr>
<tr class="separator:a4a1ef17fed649a0761310301053e97ed"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acec5fcb5d4ee91d35ef026942f58a218"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#acec5fcb5d4ee91d35ef026942f58a218">initPipe</a> (void)</td></tr>
<tr class="separator:acec5fcb5d4ee91d35ef026942f58a218"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa8d1d1feb69212c4c94026fe4baa1f82"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#aa8d1d1feb69212c4c94026fe4baa1f82">finishPipe</a> (void)</td></tr>
<tr class="separator:aa8d1d1feb69212c4c94026fe4baa1f82"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a0ae08a0864ca618981d90278dd0a1908"><td class="memItemLeft" align="right" valign="top">static pid_t </td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#a0ae08a0864ca618981d90278dd0a1908">pipeChild</a> = 0</td></tr>
<tr class="separator:a0ae08a0864ca618981d90278dd0a1908"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a04b3e702e4cded860c0e1c9bb6f104ed"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void argerror </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>desc</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cliutils_8c_source.html#l00019">19</a> of file <a class="el" href="cliutils_8c_source.html">cliutils.c</a>.</p>
<p>References <a class="el" href="system_8h_source.html#l00110">_</a>, and <a class="el" href="system_8h_source.html#l00096">__progname</a>.</p>
<p>Referenced by <a class="el" href="rpmbuild_8c_source.html#l00526">main()</a>.</p>
</div>
</div>
<a class="anchor" id="aa8d1d1feb69212c4c94026fe4baa1f82"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int finishPipe </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cliutils_8c_source.html#l00073">73</a> of file <a class="el" href="cliutils_8c_source.html">cliutils.c</a>.</p>
<p>References <a class="el" href="cliutils_8c_source.html#l00016">pipeChild</a>.</p>
<p>Referenced by <a class="el" href="rpmbuild_8c_source.html#l00526">main()</a>.</p>
</div>
</div>
<a class="anchor" id="acec5fcb5d4ee91d35ef026942f58a218"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int initPipe </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cliutils_8c_source.html#l00048">48</a> of file <a class="el" href="cliutils_8c_source.html">cliutils.c</a>.</p>
<p>References <a class="el" href="system_8h_source.html#l00110">_</a>, <a class="el" href="cliutils_8c_source.html#l00016">pipeChild</a>, and <a class="el" href="rpmcli_8h.html#a2f2a17a4befac63f642cca0446d6c302">rpmcliPipeOutput</a>.</p>
<p>Referenced by <a class="el" href="rpmbuild_8c_source.html#l00526">main()</a>.</p>
</div>
</div>
<a class="anchor" id="a072d7c6bea49d9b386d9c1f53b96aea2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void printBanner </td>
<td>(</td>
<td class="paramtype">FILE * </td>
<td class="paramname"><em>fp</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cliutils_8c_source.html#l00030">30</a> of file <a class="el" href="cliutils_8c_source.html">cliutils.c</a>.</p>
<p>References <a class="el" href="system_8h_source.html#l00110">_</a>.</p>
<p>Referenced by <a class="el" href="cliutils_8c_source.html#l00036">printUsage()</a>.</p>
</div>
</div>
<a class="anchor" id="a4a1ef17fed649a0761310301053e97ed"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void printUsage </td>
<td>(</td>
<td class="paramtype">poptContext </td>
<td class="paramname"><em>con</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">FILE * </td>
<td class="paramname"><em>fp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>flags</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cliutils_8c_source.html#l00036">36</a> of file <a class="el" href="cliutils_8c_source.html">cliutils.c</a>.</p>
<p>References <a class="el" href="cliutils_8c_source.html#l00030">printBanner()</a>, <a class="el" href="cliutils_8c_source.html#l00025">printVersion()</a>, and <a class="el" href="rpmlog_8h_source.html#l00272">rpmIsVerbose</a>.</p>
<p>Referenced by <a class="el" href="rpmbuild_8c_source.html#l00526">main()</a>.</p>
</div>
</div>
<a class="anchor" id="a8ed9d1e1fd5e07cfb6569c185bddb81b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void printVersion </td>
<td>(</td>
<td class="paramtype">FILE * </td>
<td class="paramname"><em>fp</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cliutils_8c_source.html#l00025">25</a> of file <a class="el" href="cliutils_8c_source.html">cliutils.c</a>.</p>
<p>References <a class="el" href="system_8h_source.html#l00110">_</a>, and <a class="el" href="rpmlib_8h.html#a47654f9611780becd08710b2d9431eac">rpmEVR</a>.</p>
<p>Referenced by <a class="el" href="cliutils_8c_source.html#l00036">printUsage()</a>.</p>
</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a0ae08a0864ca618981d90278dd0a1908"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">pid_t pipeChild = 0</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cliutils_8c_source.html#l00016">16</a> of file <a class="el" href="cliutils_8c_source.html">cliutils.c</a>.</p>
<p>Referenced by <a class="el" href="cliutils_8c_source.html#l00073">finishPipe()</a>, and <a class="el" href="cliutils_8c_source.html#l00048">initPipe()</a>.</p>
</div>
</div>
</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.11
</small></address>
</body>
</html>