<!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.h 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="#define-members">Macros</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">cliutils.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <stdio.h></code><br />
<code>#include <popt.h></code><br />
<code>#include <rpm/rpmutil.h></code><br />
</div>
<p><a href="cliutils_8h_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="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a89b25b44e8686ea530eba18ba929d9e3"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8h.html#a89b25b44e8686ea530eba18ba929d9e3">RETVAL</a>(rc)   (((rc) > 254) ? 254 : (rc))</td></tr>
<tr class="separator:a89b25b44e8686ea530eba18ba929d9e3"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a8886edbf32caa6fab83f7c5fea9d8de1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="rpmutil_8h.html#a45e92d6a9518b26a4bb0a706a81911a4">RPM_GNUC_NORETURN</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8h.html#a8886edbf32caa6fab83f7c5fea9d8de1">argerror</a> (const char *desc)</td></tr>
<tr class="separator:a8886edbf32caa6fab83f7c5fea9d8de1"><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_8h.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_8h.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_8h.html#aa8d1d1feb69212c4c94026fe4baa1f82">finishPipe</a> (void)</td></tr>
<tr class="separator:aa8d1d1feb69212c4c94026fe4baa1f82"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a89b25b44e8686ea530eba18ba929d9e3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RETVAL</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">rc</td><td>)</td>
<td>   (((rc) > 254) ? 254 : (rc))</td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="cliutils_8h_source.html#l00009">9</a> of file <a class="el" href="cliutils_8h_source.html">cliutils.h</a>.</p>
<p>Referenced by <a class="el" href="rpmbuild_8c_source.html#l00526">main()</a>.</p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a8886edbf32caa6fab83f7c5fea9d8de1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="rpmutil_8h.html#a45e92d6a9518b26a4bb0a706a81911a4">RPM_GNUC_NORETURN</a> 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="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>
</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>