summaryrefslogtreecommitdiff
path: root/doc/librpm/html/cliutils_8c.html
blob: 7dca5eb08de3b097e02f05c5d8fae9c9aaa4cf83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!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"/>
<title>rpm: cliutils.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">rpm&#160;<span id="projectnumber">4.9.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;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&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">cliutils.c File Reference</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="system_8h_source.html">system.h</a>&quot;</code><br/>
<code>#include &lt;sys/wait.h&gt;</code><br/>
<code>#include &lt;rpm/rpmlog.h&gt;</code><br/>
<code>#include &lt;rpm/rpmlib.h&gt;</code><br/>
<code>#include &lt;rpm/rpmfileutil.h&gt;</code><br/>
<code>#include &lt;rpm/rpmmacro.h&gt;</code><br/>
<code>#include &lt;rpm/rpmcli.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="cliutils_8h_source.html">cliutils.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="debug_8h_source.html">debug.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for cliutils.c:</div>
<div class="dyncontent">
<div class="center"><img src="cliutils_8c__incl.png" border="0" usemap="#cliutils_8c" alt=""/></div>
<map name="cliutils_8c" id="cliutils_8c">
<area shape="rect" id="node3" href="system_8h.html" title="system.h" alt="" coords="120,83,195,112"/><area shape="rect" id="node25" href="cliutils_8h.html" title="cliutils.h" alt="" coords="963,83,1032,112"/><area shape="rect" id="node33" href="debug_8h.html" title="debug.h" alt="" coords="1064,83,1131,112"/><area shape="rect" id="node7" href="rpmutil_8h.html" title="rpmio/rpmutil.h" alt="" coords="104,160,211,189"/></map>
</div>
</div>
<p><a href="cliutils_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#a04b3e702e4cded860c0e1c9bb6f104ed">argerror</a> (const char *desc)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#a8ed9d1e1fd5e07cfb6569c185bddb81b">printVersion</a> (FILE *fp)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#a072d7c6bea49d9b386d9c1f53b96aea2">printBanner</a> (FILE *fp)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</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><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#acec5fcb5d4ee91d35ef026942f58a218">initPipe</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#a494970a3454c7b765b70943ae1a2eca1">finishPipe</a> (void)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static pid_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cliutils_8c.html#a0ae08a0864ca618981d90278dd0a1908">pipeChild</a> = 0</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a04b3e702e4cded860c0e1c9bb6f104ed"></a><!-- doxytag: member="cliutils.c::argerror" ref="a04b3e702e4cded860c0e1c9bb6f104ed" args="(const char *desc)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void argerror </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</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#l00018">18</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#l00132">_</a>, and <a class="el" href="system_8h_source.html#l00118">__progname</a>.</p>

<p>Referenced by <a class="el" href="rpmbuild_8c_source.html#l00524">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a494970a3454c7b765b70943ae1a2eca1"></a><!-- doxytag: member="cliutils.c::finishPipe" ref="a494970a3454c7b765b70943ae1a2eca1" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void finishPipe </td>
          <td>(</td>
          <td class="paramtype">void&#160;</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#l00072">72</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#l00015">pipeChild</a>.</p>

<p>Referenced by <a class="el" href="rpmbuild_8c_source.html#l00524">main()</a>.</p>

</div>
</div>
<a class="anchor" id="acec5fcb5d4ee91d35ef026942f58a218"></a><!-- doxytag: member="cliutils.c::initPipe" ref="acec5fcb5d4ee91d35ef026942f58a218" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int initPipe </td>
          <td>(</td>
          <td class="paramtype">void&#160;</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#l00047">47</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#l00132">_</a>, <a class="el" href="cliutils_8c_source.html#l00015">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#l00524">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a072d7c6bea49d9b386d9c1f53b96aea2"></a><!-- doxytag: member="cliutils.c::printBanner" ref="a072d7c6bea49d9b386d9c1f53b96aea2" args="(FILE *fp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void printBanner </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fp</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="cliutils_8c_source.html#l00029">29</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#l00132">_</a>.</p>

<p>Referenced by <a class="el" href="cliutils_8c_source.html#l00035">printUsage()</a>.</p>

</div>
</div>
<a class="anchor" id="a4a1ef17fed649a0761310301053e97ed"></a><!-- doxytag: member="cliutils.c::printUsage" ref="a4a1ef17fed649a0761310301053e97ed" args="(poptContext con, FILE *fp, int flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void printUsage </td>
          <td>(</td>
          <td class="paramtype">poptContext&#160;</td>
          <td class="paramname"><em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</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#l00035">35</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#l00029">printBanner()</a>, <a class="el" href="cliutils_8c_source.html#l00024">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#l00524">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a8ed9d1e1fd5e07cfb6569c185bddb81b"></a><!-- doxytag: member="cliutils.c::printVersion" ref="a8ed9d1e1fd5e07cfb6569c185bddb81b" args="(FILE *fp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void printVersion </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fp</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="cliutils_8c_source.html#l00024">24</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#l00132">_</a>, and <a class="el" href="rpmlib_8h.html#a47654f9611780becd08710b2d9431eac">rpmEVR</a>.</p>

<p>Referenced by <a class="el" href="cliutils_8c_source.html#l00035">printUsage()</a>.</p>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a0ae08a0864ca618981d90278dd0a1908"></a><!-- doxytag: member="cliutils.c::pipeChild" ref="a0ae08a0864ca618981d90278dd0a1908" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pid_t <a class="el" href="cliutils_8c.html#a0ae08a0864ca618981d90278dd0a1908">pipeChild</a> = 0<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="cliutils_8c_source.html#l00015">15</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#l00072">finishPipe()</a>, and <a class="el" href="cliutils_8c_source.html#l00047">initPipe()</a>.</p>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Fri Jul 15 2011 for rpm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>