Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 67e32647b06c0323bf90c6b54a6438d1 > files > 300

rpm-apidocs-4.4.2.3-34.el5.x86_64.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: POPT.</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><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul></div>
<h1>POPT.</h1><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Files</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">file &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="findme_8c.html">findme.c</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">file &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="findme_8h.html">findme.h</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">file &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="popt_8c.html">popt.c</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">file &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="popt_8h.html">popt.h</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">file &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptconfig_8c.html">poptconfig.c</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">file &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="popthelp_8c.html">popthelp.c</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">file &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptint_8h.html">poptint.h</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">file &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="poptparse_8c.html">poptparse.c</a></td></tr>

<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpoptOption.html">poptOption</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpoptAlias.html">poptAlias</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A popt alias argument for <a class="el" href="group__popt.html#g492540d74e36a084744b453388407ace">poptAddAlias()</a>.  <a href="structpoptAlias.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpoptItem__s.html">poptItem_s</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A popt alias or exec argument for <a class="el" href="group__popt.html#g5d5b852dd906dea5d13b5c9934242ea9">poptAddItem()</a>.  <a href="structpoptItem__s.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="structpoptItem__s.html">poptItem_s</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#ge8d806c397b0dcb8a3ba2bd1cb7831c4">poptItem</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A popt alias or exec argument for <a class="el" href="group__popt.html#g5d5b852dd906dea5d13b5c9934242ea9">poptAddItem()</a>.  <a href="#ge8d806c397b0dcb8a3ba2bd1cb7831c4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="structpoptContext__s.html">poptContext_s</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#gd3cc3007d6cee3e55221b85b4adc7359">poptContext</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="structpoptOption.html">poptOption</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g2331d42ea439b878a15305a955e72f87">poptOption</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*)&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#gc5885aeeaa33e7a649a3b6da49d767dd">poptCallbackType</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con, enum <a class="el" href="popt_8h.html#fe00605489c2aa204cdb5a14e26b3a70">poptCallbackReason</a> reason, const struct <a class="el" href="structpoptOption.html">poptOption</a> *opt, const char *arg, const void *data)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="structTable.html">Table</a> callback prototype.  <a href="#gc5885aeeaa33e7a649a3b6da49d767dd"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#gdcbf6cd11e53153653c4887dbc22c8e5">poptGetContext</a> (const char *<a class="el" href="structname.html">name</a>, int argc, const char **<a class="el" href="compress_8c.html#b233d58a2d9af13ae09ea8fd82556856">argv</a>, const struct <a class="el" href="structpoptOption.html">poptOption</a> *options, int flags)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize popt context.  <a href="#gdcbf6cd11e53153653c4887dbc22c8e5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g66e307ed79a41a4b8880e0b06f04414b">poptResetContext</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reinitialize popt context.  <a href="#g66e307ed79a41a4b8880e0b06f04414b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g7610b6fe74ccf5c7d2b5e67beca41605">poptGetNextOpt</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return value of next option found.  <a href="#g7610b6fe74ccf5c7d2b5e67beca41605"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g4672f6a24ba912203b47f4e4036cafe8">poptGetOptArg</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return next option argument (if any).  <a href="#g4672f6a24ba912203b47f4e4036cafe8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#gd2ddb3b4a87ccdf0c56cafd8355091f3">poptGetArg</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return next argument.  <a href="#gd2ddb3b4a87ccdf0c56cafd8355091f3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g12b20d85bfc463a9ac2573772d65d19d">poptPeekArg</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Peek at current argument.  <a href="#g12b20d85bfc463a9ac2573772d65d19d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char **&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g3c55cea59bcf29ee9da7b95127c48c83">poptGetArgs</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return remaining arguments.  <a href="#g3c55cea59bcf29ee9da7b95127c48c83"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#gec25ffc933c6fac2a67fc313618460bf">poptBadOption</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con, int flags)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the option which caused the most recent error.  <a href="#gec25ffc933c6fac2a67fc313618460bf"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#gcacbdcde9b4c5600176b37ffb06224a3">poptFreeContext</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destroy context.  <a href="#gcacbdcde9b4c5600176b37ffb06224a3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g2e93feadc17ce658d7468285a65eef70">poptStuffArgs</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con, const char **<a class="el" href="compress_8c.html#b233d58a2d9af13ae09ea8fd82556856">argv</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add arguments to context.  <a href="#g2e93feadc17ce658d7468285a65eef70"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g492540d74e36a084744b453388407ace">poptAddAlias</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con, struct <a class="el" href="structpoptAlias.html">poptAlias</a> alias, int flags)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add alias to context.  <a href="#g492540d74e36a084744b453388407ace"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g5d5b852dd906dea5d13b5c9934242ea9">poptAddItem</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con, <a class="el" href="structpoptItem__s.html">poptItem</a> newItem, int flags)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add alias/exec item to context.  <a href="#g5d5b852dd906dea5d13b5c9934242ea9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g8f0347f05b72315b7a29abb013a9d162">poptReadConfigFile</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con, const char *fn)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Read configuration file.  <a href="#g8f0347f05b72315b7a29abb013a9d162"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#gffd51981d556a32e283298e7f8eca69e">poptReadDefaultConfig</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con, int useEnv)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Read default configuration from /etc/popt and $HOME/.popt.  <a href="#gffd51981d556a32e283298e7f8eca69e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g5fcba044ce909a898284af1c0e38fd3b">poptDupArgv</a> (int argc, const char **<a class="el" href="compress_8c.html#b233d58a2d9af13ae09ea8fd82556856">argv</a>, int *argcPtr, const char ***argvPtr)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Duplicate an argument array.  <a href="#g5fcba044ce909a898284af1c0e38fd3b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#gabb6e8c769648273171f3f3ec9c0e471">poptParseArgvString</a> (const char *s, int *argcPtr, const char ***argvPtr)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse a string into an argument array.  <a href="#gabb6e8c769648273171f3f3ec9c0e471"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g02043ec093dcbfaef9297b0fb60d2819">poptConfigFileToString</a> (FILE *fp, char **argstrp, int flags)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parses an input configuration file and returns an string that is a command line.  <a href="#g02043ec093dcbfaef9297b0fb60d2819"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g477914d0129cb66a98d5c1d3cc7cd07a">poptStrerror</a> (const int error)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return formatted error string for popt failure.  <a href="#g477914d0129cb66a98d5c1d3cc7cd07a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g0f4836b0740d052af6427757c4c72309">poptSetExecPath</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con, const char *path, int allowAbsolute)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Limit search for executables.  <a href="#g0f4836b0740d052af6427757c4c72309"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g5eaa85e1b1bea4dfeaab9b656678cff1">poptPrintHelp</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con, FILE *fp, int flags)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Print detailed description of options.  <a href="#g5eaa85e1b1bea4dfeaab9b656678cff1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#gf802853d2e12fddd81c6960e85cd4897">poptPrintUsage</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con, FILE *fp, int flags)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Print terse description of options.  <a href="#gf802853d2e12fddd81c6960e85cd4897"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#gb65dea0ccd22bf961fa8a4783fdd4a43">poptSetOtherOptionHelp</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con, const char *text)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provide text to replace default "[OPTION...]" in help/usage output.  <a href="#gb65dea0ccd22bf961fa8a4783fdd4a43"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g3435666d94b36e7093dfad0edf296954">poptGetInvocationName</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return argv[0] from context.  <a href="#g3435666d94b36e7093dfad0edf296954"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__popt.html#g4ba7b7dddd0a2e3ac21a8b71c9c5115b">poptStrippedArgv</a> (<a class="el" href="structpoptContext__s.html">poptContext</a> con, int argc, char **<a class="el" href="compress_8c.html#b233d58a2d9af13ae09ea8fd82556856">argv</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Shuffle argv pointers to remove stripped args, returns new argc.  <a href="#g4ba7b7dddd0a2e3ac21a8b71c9c5115b"></a><br></td></tr>
</table>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="gc5885aeeaa33e7a649a3b6da49d767dd"></a><!-- doxytag: member="popt.h::poptCallbackType" ref="gc5885aeeaa33e7a649a3b6da49d767dd" args="(poptContext con, enum poptCallbackReason reason, const struct poptOption *opt, const char *arg, const void *data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(*) <a class="el" href="group__popt.html#gc5885aeeaa33e7a649a3b6da49d767dd">poptCallbackType</a>(<a class="el" href="structpoptContext__s.html">poptContext</a> con, enum <a class="el" href="popt_8h.html#fe00605489c2aa204cdb5a14e26b3a70">poptCallbackReason</a> reason,const struct <a class="el" href="structpoptOption.html">poptOption</a> *opt,const char *arg,const void *data)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="structTable.html">Table</a> callback prototype. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>reason</em>&nbsp;</td><td>reason for callback </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>opt</em>&nbsp;</td><td>option that triggered callback </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>arg\xrefitem</em>&nbsp;</td><td>todo 117 </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>data\xrefitem</em>&nbsp;</td><td>todo 118 </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="popt_8h-source.html#l00221">221</a> of file <a class="el" href="popt_8h-source.html">popt.h</a>.
</div>
</div><p>
<a class="anchor" name="gd3cc3007d6cee3e55221b85b4adc7359"></a><!-- doxytag: member="popt.h::poptContext" ref="gd3cc3007d6cee3e55221b85b4adc7359" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structpoptContext__s.html">poptContext_s</a>* <a class="el" href="structpoptContext__s.html">poptContext</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="popt_8h-source.html#l00189">189</a> of file <a class="el" href="popt_8h-source.html">popt.h</a>.
</div>
</div><p>
<a class="anchor" name="ge8d806c397b0dcb8a3ba2bd1cb7831c4"></a><!-- doxytag: member="popt.h::poptItem" ref="ge8d806c397b0dcb8a3ba2bd1cb7831c4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structpoptItem__s.html">poptItem_s</a> *  <a class="el" href="structpoptItem__s.html">poptItem</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
A popt alias or exec argument for <a class="el" href="group__popt.html#g5d5b852dd906dea5d13b5c9934242ea9">poptAddItem()</a>. 
<p>

</div>
</div><p>
<a class="anchor" name="g2331d42ea439b878a15305a955e72f87"></a><!-- doxytag: member="popt.h::poptOption" ref="g2331d42ea439b878a15305a955e72f87" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structpoptOption.html">poptOption</a>* <a class="el" href="structpoptOption.html">poptOption</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="popt_8h-source.html#l00196">196</a> of file <a class="el" href="popt_8h-source.html">popt.h</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="g492540d74e36a084744b453388407ace"></a><!-- doxytag: member="popt.h::poptAddAlias" ref="g492540d74e36a084744b453388407ace" args="(poptContext con, struct poptAlias alias, int flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int poptAddAlias           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structpoptAlias.html">poptAlias</a>&nbsp;</td>
          <td class="paramname"> <em>alias</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>flags</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add alias to context. 
<p>
<dl compact><dt><b><a class="el" href="todo.html#_todo000119">Todo:</a></b></dt><dd>Pass alias by reference, not value. </dd></dl>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000023">Deprecated:</a></b></dt><dd>Use poptAddItem instead. </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>alias</em>&nbsp;</td><td>alias to add </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>(unused) </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 on success </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l01104">1104</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="system_8h.html#eb1df3e83fb069eaa2eb66ace3a0ea52">alloca()</a>, <a class="el" href="popt_8h-source.html#l00135">poptAlias::argc</a>, <a class="el" href="popt_8h-source.html#l00137">poptAlias::argv</a>, <a class="el" href="popt_8h-source.html#l00133">poptAlias::longName</a>, <a class="el" href="popt_8h-source.html#l00045">POPT_ARGFLAG_DOC_HIDDEN</a>, <a class="el" href="popt_8c-source.html#l01123">poptAddItem()</a>, and <a class="el" href="popt_8h-source.html#l00134">poptAlias::shortName</a>.
</div>
</div><p>
<a class="anchor" name="g5d5b852dd906dea5d13b5c9934242ea9"></a><!-- doxytag: member="popt.h::poptAddItem" ref="g5d5b852dd906dea5d13b5c9934242ea9" args="(poptContext con, poptItem newItem, int flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int poptAddItem           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structpoptItem__s.html">poptItem</a>&nbsp;</td>
          <td class="paramname"> <em>newItem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>flags</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add alias/exec item to context. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>newItem</em>&nbsp;</td><td>alias/exec item to add </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>0 for alias, 1 for exec </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 on success </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l01123">1123</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00075">poptContext_s::aliases</a>, <a class="el" href="popt_8h-source.html#l00120">poptOption::arg</a>, <a class="el" href="popt_8h-source.html#l00146">poptItem_s::argc</a>, <a class="el" href="popt_8h-source.html#l00125">poptOption::argDescrip</a>, <a class="el" href="popt_8h-source.html#l00118">poptOption::argInfo</a>, <a class="el" href="popt_8h-source.html#l00148">poptItem_s::argv</a>, <a class="el" href="popt_8h-source.html#l00123">poptOption::descrip</a>, <a class="el" href="poptint_8h-source.html#l00079">poptContext_s::execs</a>, <a class="el" href="rpmcache_8c-source.html#l00049">items</a>, <a class="el" href="popt_8h-source.html#l00116">poptOption::longName</a>, <a class="el" href="rpmcache_8c-source.html#l00062">newItem()</a>, <a class="el" href="rpmcache_8c-source.html#l00050">nitems</a>, <a class="el" href="poptint_8h-source.html#l00076">poptContext_s::numAliases</a>, <a class="el" href="poptint_8h-source.html#l00080">poptContext_s::numExecs</a>, <a class="el" href="popt_8h-source.html#l00145">poptItem_s::option</a>, <a class="el" href="popt_8h-source.html#l00117">poptOption::shortName</a>, <a class="el" href="popt_8h-source.html#l00121">poptOption::val</a>, and <a class="el" href="rpmmalloc_8c-source.html#l00055">xstrdup()</a>.
<p>
Referenced by <a class="el" href="popt_8c-source.html#l01104">poptAddAlias()</a>.
</div>
</div><p>
<a class="anchor" name="gec25ffc933c6fac2a67fc313618460bf"></a><!-- doxytag: member="popt.h::poptBadOption" ref="gec25ffc933c6fac2a67fc313618460bf" args="(poptContext con, int flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* poptBadOption           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>flags</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the option which caused the most recent error. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>offending option </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l01168">1168</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00048">optionStackEntry::argv</a>, <a class="el" href="poptint_8h-source.html#l00051">optionStackEntry::next</a>, <a class="el" href="poptint_8h-source.html#l00062">poptContext_s::optionStack</a>, <a class="el" href="poptint_8h-source.html#l00064">poptContext_s::os</a>, and <a class="el" href="popt_8h-source.html#l00099">POPT_BADOPTION_NOALIAS</a>.
<p>
Referenced by <a class="el" href="parsePrep_8c-source.html#l00317">doSetupMacro()</a>, <a class="el" href="rpmqv_8c-source.html#l00170">main()</a>, <a class="el" href="parseDescription_8c-source.html#l00029">parseDescription()</a>, <a class="el" href="parseFiles_8c-source.html#l00026">parseFiles()</a>, <a class="el" href="parseScript_8c-source.html#l00072">parseScript()</a>, and <a class="el" href="poptALL_8c-source.html#l00400">rpmcliInit()</a>.
</div>
</div><p>
<a class="anchor" name="g02043ec093dcbfaef9297b0fb60d2819"></a><!-- doxytag: member="popt.h::poptConfigFileToString" ref="g02043ec093dcbfaef9297b0fb60d2819" args="(FILE *fp, char **argstrp, int flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int poptConfigFileToString           </td>
          <td>(</td>
          <td class="paramtype">FILE *&nbsp;</td>
          <td class="paramname"> <em>fp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>argstrp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>flags</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parses an input configuration file and returns an string that is a command line. 
<p>
For use with popt. You must free the return value when done.<p>
Given the file: <div class="fragment"><pre class="fragment"># this line is ignored
    #   this one too
aaa
  bbb
    ccc   
bla=bla

this_is   =   fdsafdas
     bad_line=        
  reall bad line  
  reall bad line  = again
5555=   55555   
  test = with lots of spaces
</pre></div><p>
The result is: <div class="fragment"><pre class="fragment">--aaa --bbb --ccc --bla="bla" --this_is="fdsafdas" --5555="55555" --test="with lots of spaces"
</pre></div><p>
Passing this to <a class="el" href="group__popt.html#gabb6e8c769648273171f3f3ec9c0e471">poptParseArgvString()</a> yields an argv of: <div class="fragment"><pre class="fragment">'--aaa'
'--bbb' 
'--ccc' 
'--bla=bla' 
'--this_is=fdsafdas' 
'--5555=55555' 
'--test=with lots of spaces' 
</pre></div><p>
<dl compact><dt><b><a class="el" href="bug.html#_bug000001">Bug:</a></b></dt><dd>NULL is returned if file line is too long. <p>
Silently ignores invalid lines.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>fp</em>&nbsp;</td><td>file handle to read </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>*argstrp</em>&nbsp;</td><td>return string of options (malloc'd) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>unused </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 on success </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__popt.html#gabb6e8c769648273171f3f3ec9c0e471">poptParseArgvString</a> </dd></dl>

<p>
Definition at line <a class="el" href="poptparse_8c-source.html#l00129">129</a> of file <a class="el" href="poptparse_8c-source.html">poptparse.c</a>.
<p>
References <a class="el" href="macro_8c-source.html#l01580">POPT_ERROR_MALLOC</a>, <a class="el" href="popt_8h-source.html#l00091">POPT_ERROR_NULLARG</a>, and <a class="el" href="popt_8h-source.html#l00089">POPT_ERROR_OVERFLOW</a>.
</div>
</div><p>
<a class="anchor" name="g5fcba044ce909a898284af1c0e38fd3b"></a><!-- doxytag: member="popt.h::poptDupArgv" ref="g5fcba044ce909a898284af1c0e38fd3b" args="(int argc, const char **argv, int *argcPtr, const char ***argvPtr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int poptDupArgv           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char **&nbsp;</td>
          <td class="paramname"> <em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>argcPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char ***&nbsp;</td>
          <td class="paramname"> <em>argvPtr</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Duplicate an argument array. 
<p>
<dl compact><dt><b>Note:</b></dt><dd>: The argument array is malloc'd as a single area, so only argv must be free'd.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>argc</em>&nbsp;</td><td>no. of arguments </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>argument array </td></tr>
  </table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>argcPtr</em>&nbsp;</td><td>address of returned no. of arguments </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argvPtr</em>&nbsp;</td><td>address of returned argument array </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 on success, POPT_ERROR_NOARG on failure </dd></dl>

<p>
Definition at line <a class="el" href="poptparse_8c-source.html#l00014">14</a> of file <a class="el" href="poptparse_8c-source.html">poptparse.c</a>.
<p>
References <a class="el" href="macro_8c-source.html#l01580">POPT_ERROR_MALLOC</a>, and <a class="el" href="macro_8c-source.html#l01578">POPT_ERROR_NOARG</a>.
<p>
Referenced by <a class="el" href="popt_8c-source.html#l00324">handleAlias()</a>, <a class="el" href="poptparse_8c-source.html#l00057">poptParseArgvString()</a>, and <a class="el" href="popt_8c-source.html#l01208">poptStuffArgs()</a>.
</div>
</div><p>
<a class="anchor" name="gcacbdcde9b4c5600176b37ffb06224a3"></a><!-- doxytag: member="popt.h::poptFreeContext" ref="gcacbdcde9b4c5600176b37ffb06224a3" args="(poptContext con)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structpoptContext__s.html">poptContext</a> poptFreeContext           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destroy context. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>NULL always </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l01060">1060</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="rpmlib_8h-source.html#l00058">_free()</a>, <a class="el" href="poptint_8h-source.html#l00075">poptContext_s::aliases</a>, <a class="el" href="poptint_8h-source.html#l00073">poptContext_s::appName</a>, <a class="el" href="poptint_8h-source.html#l00093">poptContext_s::arg_strip</a>, <a class="el" href="poptint_8h-source.html#l00050">optionStackEntry::argb</a>, <a class="el" href="popt_8h-source.html#l00125">poptOption::argDescrip</a>, <a class="el" href="popt_8h-source.html#l00148">poptItem_s::argv</a>, <a class="el" href="popt_8h-source.html#l00123">poptOption::descrip</a>, <a class="el" href="poptint_8h-source.html#l00088">poptContext_s::execPath</a>, <a class="el" href="poptint_8h-source.html#l00079">poptContext_s::execs</a>, <a class="el" href="poptint_8h-source.html#l00082">poptContext_s::finalArgv</a>, <a class="el" href="poptint_8h-source.html#l00066">poptContext_s::leftovers</a>, <a class="el" href="popt_8h-source.html#l00116">poptOption::longName</a>, <a class="el" href="poptint_8h-source.html#l00076">poptContext_s::numAliases</a>, <a class="el" href="poptint_8h-source.html#l00080">poptContext_s::numExecs</a>, <a class="el" href="popt_8h-source.html#l00145">poptItem_s::option</a>, <a class="el" href="poptint_8h-source.html#l00064">poptContext_s::os</a>, <a class="el" href="poptint_8h-source.html#l00091">poptContext_s::otherHelp</a>, <a class="el" href="rpmdb_8c-source.html#l00085">PBM_FREE</a>, and <a class="el" href="popt_8c-source.html#l00228">poptResetContext()</a>.
<p>
Referenced by <a class="el" href="parsePrep_8c-source.html#l00317">doSetupMacro()</a>, <a class="el" href="rpmqv_8c-source.html#l00170">main()</a>, <a class="el" href="parseDescription_8c-source.html#l00029">parseDescription()</a>, <a class="el" href="parseFiles_8c-source.html#l00026">parseFiles()</a>, <a class="el" href="parseScript_8c-source.html#l00072">parseScript()</a>, and <a class="el" href="poptALL_8c-source.html#l00385">rpmcliFini()</a>.
</div>
</div><p>
<a class="anchor" name="gd2ddb3b4a87ccdf0c56cafd8355091f3"></a><!-- doxytag: member="popt.h::poptGetArg" ref="gd2ddb3b4a87ccdf0c56cafd8355091f3" args="(poptContext con)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* poptGetArg           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return next argument. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>next argument, NULL if no argument is available </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l01028">1028</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00066">poptContext_s::leftovers</a>, <a class="el" href="poptint_8h-source.html#l00068">poptContext_s::nextLeftover</a>, and <a class="el" href="poptint_8h-source.html#l00067">poptContext_s::numLeftovers</a>.
<p>
Referenced by <a class="el" href="rpmqv_8c-source.html#l00170">main()</a>, <a class="el" href="parseDescription_8c-source.html#l00029">parseDescription()</a>, <a class="el" href="parseFiles_8c-source.html#l00026">parseFiles()</a>, and <a class="el" href="parseScript_8c-source.html#l00072">parseScript()</a>.
</div>
</div><p>
<a class="anchor" name="g3c55cea59bcf29ee9da7b95127c48c83"></a><!-- doxytag: member="popt.h::poptGetArgs" ref="g3c55cea59bcf29ee9da7b95127c48c83" args="(poptContext con)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char** poptGetArgs           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return remaining arguments. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>argument array, NULL terminated </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l01045">1045</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00066">poptContext_s::leftovers</a>, <a class="el" href="poptint_8h-source.html#l00068">poptContext_s::nextLeftover</a>, and <a class="el" href="poptint_8h-source.html#l00067">poptContext_s::numLeftovers</a>.
<p>
Referenced by <a class="el" href="rpmqv_8c-source.html#l00170">main()</a>.
</div>
</div><p>
<a class="anchor" name="gdcbf6cd11e53153653c4887dbc22c8e5"></a><!-- doxytag: member="popt.h::poptGetContext" ref="gdcbf6cd11e53153653c4887dbc22c8e5" args="(const char *name, int argc, const char **argv, const struct poptOption *options, int flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structpoptContext__s.html">poptContext</a> poptGetContext           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char **&nbsp;</td>
          <td class="paramname"> <em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const struct <a class="el" href="structpoptOption.html">poptOption</a> *&nbsp;</td>
          <td class="paramname"> <em>options</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>flags</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Initialize popt context. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>context name (usually argv[0] program name) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argc</em>&nbsp;</td><td>no. of arguments </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>argument array </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>options</em>&nbsp;</td><td>address of popt option table </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>or'd POPT_CONTEXT_* bits </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>initialized popt context </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l00170">170</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="system_8h.html#bc6595dbf6880c71628fecf0dbb23d66">getenv()</a>, <a class="el" href="popt_8c-source.html#l00064">invokeCallbacksPRE()</a>, <a class="el" href="popt_8h-source.html#l00107">POPT_CONTEXT_KEEP_FIRST</a>, and <a class="el" href="popt_8h-source.html#l00108">POPT_CONTEXT_POSIXMEHARDER</a>.
<p>
Referenced by <a class="el" href="parsePrep_8c-source.html#l00317">doSetupMacro()</a>, <a class="el" href="rpmqv_8c-source.html#l00170">main()</a>, <a class="el" href="parseDescription_8c-source.html#l00029">parseDescription()</a>, <a class="el" href="parseFiles_8c-source.html#l00026">parseFiles()</a>, <a class="el" href="parseScript_8c-source.html#l00072">parseScript()</a>, and <a class="el" href="poptALL_8c-source.html#l00400">rpmcliInit()</a>.
</div>
</div><p>
<a class="anchor" name="g3435666d94b36e7093dfad0edf296954"></a><!-- doxytag: member="popt.h::poptGetInvocationName" ref="g3435666d94b36e7093dfad0edf296954" args="(poptContext con)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* poptGetInvocationName           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return argv[0] from context. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>argv[0] </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l01231">1231</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00048">optionStackEntry::argv</a>, and <a class="el" href="poptint_8h-source.html#l00064">poptContext_s::os</a>.
</div>
</div><p>
<a class="anchor" name="g7610b6fe74ccf5c7d2b5e67beca41605"></a><!-- doxytag: member="popt.h::poptGetNextOpt" ref="g7610b6fe74ccf5c7d2b5e67beca41605" args="(poptContext con)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int poptGetNextOpt           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return value of next option found. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>next option val, -1 on last item, POPT_ERROR_* on error </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l00706">706</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="popt_8c.html#97d52c4c962a45d82d5a60ebb9ef56b9">_ABS</a>, <a class="el" href="rpmlib_8h-source.html#l00058">_free()</a>, <a class="el" href="system_8h.html#eb1df3e83fb069eaa2eb66ace3a0ea52">alloca()</a>, <a class="el" href="popt_8h-source.html#l00120">poptOption::arg</a>, <a class="el" href="poptint_8h-source.html#l00050">optionStackEntry::argb</a>, <a class="el" href="poptint_8h-source.html#l00046">optionStackEntry::argc</a>, <a class="el" href="popt_8h-source.html#l00118">poptOption::argInfo</a>, <a class="el" href="poptint_8h-source.html#l00048">optionStackEntry::argv</a>, <a class="el" href="popt_8c-source.html#l00217">cleanOSE()</a>, <a class="el" href="poptint_8h-source.html#l00086">poptContext_s::doExec</a>, <a class="el" href="system_8h.html#d65a8842cc674e3ddf69355898c0ecbf">errno</a>, <a class="el" href="popt_8c-source.html#l00379">execCommand()</a>, <a class="el" href="system_8h-source.html#l00168">EXIT_FAILURE</a>, <a class="el" href="popt_8c-source.html#l00583">expandNextArg()</a>, <a class="el" href="poptint_8h-source.html#l00082">poptContext_s::finalArgv</a>, <a class="el" href="poptint_8h-source.html#l00084">poptContext_s::finalArgvAlloced</a>, <a class="el" href="poptint_8h-source.html#l00083">poptContext_s::finalArgvCount</a>, <a class="el" href="popt_8c-source.html#l00472">findOption()</a>, <a class="el" href="poptint_8h-source.html#l00077">poptContext_s::flags</a>, <a class="el" href="popt_8c-source.html#l00324">handleAlias()</a>, <a class="el" href="popt_8c-source.html#l00264">handleExec()</a>, <a class="el" href="popt_8c-source.html#l00120">invokeCallbacksOPTION()</a>, <a class="el" href="popt_8c-source.html#l00092">invokeCallbacksPOST()</a>, <a class="el" href="poptint_8h-source.html#l00066">poptContext_s::leftovers</a>, <a class="el" href="popt_8h-source.html#l00116">poptOption::longName</a>, <a class="el" href="poptint_8h-source.html#l00051">optionStackEntry::next</a>, <a class="el" href="poptint_8h-source.html#l00053">optionStackEntry::nextArg</a>, <a class="el" href="poptint_8h-source.html#l00055">optionStackEntry::nextCharArg</a>, <a class="el" href="poptint_8h-source.html#l00067">poptContext_s::numLeftovers</a>, <a class="el" href="poptint_8h-source.html#l00070">poptContext_s::options</a>, <a class="el" href="poptint_8h-source.html#l00062">poptContext_s::optionStack</a>, <a class="el" href="poptint_8h-source.html#l00064">poptContext_s::os</a>, <a class="el" href="rpmdb_8c-source.html#l00088">PBM_ISSET</a>, <a class="el" href="poptint_8h-source.html#l00111">POPT_</a>, <a class="el" href="popt_8h-source.html#l00035">POPT_ARG_DOUBLE</a>, <a class="el" href="popt_8h-source.html#l00034">POPT_ARG_FLOAT</a>, <a class="el" href="popt_8h-source.html#l00022">POPT_ARG_INT</a>, <a class="el" href="popt_8h-source.html#l00023">POPT_ARG_LONG</a>, <a class="el" href="popt_8h-source.html#l00037">POPT_ARG_MASK</a>, <a class="el" href="popt_8h-source.html#l00020">POPT_ARG_NONE</a>, <a class="el" href="popt_8h-source.html#l00021">POPT_ARG_STRING</a>, <a class="el" href="popt_8h-source.html#l00033">POPT_ARG_VAL</a>, <a class="el" href="popt_8h-source.html#l00044">POPT_ARGFLAG_ONEDASH</a>, <a class="el" href="popt_8h-source.html#l00047">POPT_ARGFLAG_OPTIONAL</a>, <a class="el" href="popt_8h-source.html#l00046">POPT_ARGFLAG_STRIP</a>, <a class="el" href="popt_8h-source.html#l00109">POPT_CONTEXT_ARG_OPTS</a>, <a class="el" href="popt_8h-source.html#l00108">POPT_CONTEXT_POSIXMEHARDER</a>, <a class="el" href="popt_8h-source.html#l00088">POPT_ERROR_BADNUMBER</a>, <a class="el" href="popt_8h-source.html#l00090">POPT_ERROR_BADOPERATION</a>, <a class="el" href="popt_8h-source.html#l00084">POPT_ERROR_BADOPT</a>, <a class="el" href="macro_8c-source.html#l01578">POPT_ERROR_NOARG</a>, <a class="el" href="popt_8h-source.html#l00089">POPT_ERROR_OVERFLOW</a>, <a class="el" href="popt_8c-source.html#l00676">poptSaveInt()</a>, <a class="el" href="popt_8c-source.html#l00648">poptSaveLong()</a>, <a class="el" href="popt_8c-source.html#l00632">poptStripArg()</a>, <a class="el" href="poptint_8h-source.html#l00071">poptContext_s::restLeftover</a>, <a class="el" href="popt_8h-source.html#l00117">poptOption::shortName</a>, <a class="el" href="popt_8h-source.html#l00121">poptOption::val</a>, and <a class="el" href="rpmmalloc_8c-source.html#l00055">xstrdup()</a>.
<p>
Referenced by <a class="el" href="parsePrep_8c-source.html#l00317">doSetupMacro()</a>, <a class="el" href="rpmqv_8c-source.html#l00170">main()</a>, <a class="el" href="parseDescription_8c-source.html#l00029">parseDescription()</a>, <a class="el" href="parseFiles_8c-source.html#l00026">parseFiles()</a>, <a class="el" href="parseScript_8c-source.html#l00072">parseScript()</a>, and <a class="el" href="poptALL_8c-source.html#l00400">rpmcliInit()</a>.
</div>
</div><p>
<a class="anchor" name="g4672f6a24ba912203b47f4e4036cafe8"></a><!-- doxytag: member="popt.h::poptGetOptArg" ref="g4672f6a24ba912203b47f4e4036cafe8" args="(poptContext con)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* poptGetOptArg           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return next option argument (if any). 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>option argument, NULL if no argument is available </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l01016">1016</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00053">optionStackEntry::nextArg</a>, and <a class="el" href="poptint_8h-source.html#l00064">poptContext_s::os</a>.
<p>
Referenced by <a class="el" href="parsePrep_8c-source.html#l00317">doSetupMacro()</a>, <a class="el" href="rpmqv_8c-source.html#l00170">main()</a>, and <a class="el" href="poptALL_8c-source.html#l00400">rpmcliInit()</a>.
</div>
</div><p>
<a class="anchor" name="gabb6e8c769648273171f3f3ec9c0e471"></a><!-- doxytag: member="popt.h::poptParseArgvString" ref="gabb6e8c769648273171f3f3ec9c0e471" args="(const char *s, int *argcPtr, const char ***argvPtr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int poptParseArgvString           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>argcPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char ***&nbsp;</td>
          <td class="paramname"> <em>argvPtr</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parse a string into an argument array. 
<p>
The parse allows ', ", and \ quoting, but ' is treated the same as " and both may include \ quotes. <dl compact><dt><b>Note:</b></dt><dd>: The argument array is malloc'd as a single area, so only argv must be free'd.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>s</em>&nbsp;</td><td>string to parse </td></tr>
  </table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>argcPtr</em>&nbsp;</td><td>address of returned no. of arguments </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argvPtr</em>&nbsp;</td><td>address of returned argument array </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="poptparse_8c-source.html#l00057">57</a> of file <a class="el" href="poptparse_8c-source.html">poptparse.c</a>.
<p>
References <a class="el" href="system_8h.html#eb1df3e83fb069eaa2eb66ace3a0ea52">alloca()</a>, <a class="el" href="compress_8c-source.html#l00064">argv</a>, <a class="el" href="macro_8c-source.html#l01582">POPT_ARGV_ARRAY_GROW_DELTA</a>, <a class="el" href="macro_8c-source.html#l01579">POPT_ERROR_BADQUOTE</a>, <a class="el" href="macro_8c-source.html#l01580">POPT_ERROR_MALLOC</a>, and <a class="el" href="poptparse_8c-source.html#l00014">poptDupArgv()</a>.
<p>
Referenced by <a class="el" href="parsePreamble_8c-source.html#l00053">addOrAppendListEntry()</a>, <a class="el" href="signature_8c-source.html#l00858">checkPassPhrase()</a>, <a class="el" href="poptconfig_8c-source.html#l00014">configLine()</a>, <a class="el" href="build_2build_8c-source.html#l00056">doScript()</a>, <a class="el" href="parsePrep_8c-source.html#l00317">doSetupMacro()</a>, <a class="el" href="parsePreamble_8c-source.html#l00463">handlePreambleTag()</a>, <a class="el" href="depends_8c-source.html#l00869">ignoreDep()</a>, <a class="el" href="signature_8c-source.html#l00548">makeGPGSignature()</a>, <a class="el" href="signature_8c-source.html#l00399">makePGPSignature()</a>, <a class="el" href="legacy_8c-source.html#l00036">open_dso()</a>, <a class="el" href="parseDescription_8c-source.html#l00029">parseDescription()</a>, <a class="el" href="parseFiles_8c-source.html#l00026">parseFiles()</a>, <a class="el" href="parseScript_8c-source.html#l00072">parseScript()</a>, and <a class="el" href="rpmfc_8c-source.html#l00206">rpmfcExec()</a>.
</div>
</div><p>
<a class="anchor" name="g12b20d85bfc463a9ac2573772d65d19d"></a><!-- doxytag: member="popt.h::poptPeekArg" ref="g12b20d85bfc463a9ac2573772d65d19d" args="(poptContext con)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* poptPeekArg           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Peek at current argument. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>current argument, NULL if no argument is available </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l01036">1036</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00066">poptContext_s::leftovers</a>, <a class="el" href="poptint_8h-source.html#l00068">poptContext_s::nextLeftover</a>, and <a class="el" href="poptint_8h-source.html#l00067">poptContext_s::numLeftovers</a>.
<p>
Referenced by <a class="el" href="rpmqv_8c-source.html#l00170">main()</a>, <a class="el" href="parseDescription_8c-source.html#l00029">parseDescription()</a>, <a class="el" href="parseFiles_8c-source.html#l00026">parseFiles()</a>, and <a class="el" href="parseScript_8c-source.html#l00072">parseScript()</a>.
</div>
</div><p>
<a class="anchor" name="g5eaa85e1b1bea4dfeaab9b656678cff1"></a><!-- doxytag: member="popt.h::poptPrintHelp" ref="g5eaa85e1b1bea4dfeaab9b656678cff1" args="(poptContext con, FILE *fp, int flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void poptPrintHelp           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&nbsp;</td>
          <td class="paramname"> <em>fp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>flags</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Print detailed description of options. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fp</em>&nbsp;</td><td>ouput file handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>(unused) </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="popthelp_8c-source.html#l00564">564</a> of file <a class="el" href="popthelp_8c-source.html">popthelp.c</a>.
<p>
References <a class="el" href="popthelp_8c-source.html#l00410">maxArgWidth()</a>, <a class="el" href="poptint_8h-source.html#l00070">poptContext_s::options</a>, <a class="el" href="poptint_8h-source.html#l00091">poptContext_s::otherHelp</a>, <a class="el" href="poptint_8h-source.html#l00111">POPT_</a>, <a class="el" href="popthelp_8c-source.html#l00541">showHelpIntro()</a>, and <a class="el" href="popthelp_8c-source.html#l00500">singleTableHelp()</a>.
<p>
Referenced by <a class="el" href="popthelp_8c-source.html#l00030">displayArgs()</a>, and <a class="el" href="rpmqv_8c-source.html#l00153">printUsage()</a>.
</div>
</div><p>
<a class="anchor" name="gf802853d2e12fddd81c6960e85cd4897"></a><!-- doxytag: member="popt.h::poptPrintUsage" ref="gf802853d2e12fddd81c6960e85cd4897" args="(poptContext con, FILE *fp, int flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void poptPrintUsage           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&nbsp;</td>
          <td class="paramname"> <em>fp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>flags</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Print terse description of options. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fp</em>&nbsp;</td><td>ouput file handle </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>(unused) </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="popthelp_8c-source.html#l00785">785</a> of file <a class="el" href="popthelp_8c-source.html">popthelp.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00075">poptContext_s::aliases</a>, <a class="el" href="system_8h.html#eb1df3e83fb069eaa2eb66ace3a0ea52">alloca()</a>, <a class="el" href="poptint_8h-source.html#l00079">poptContext_s::execs</a>, <a class="el" href="popthelp_8c-source.html#l00661">itemUsage()</a>, <a class="el" href="poptint_8h-source.html#l00076">poptContext_s::numAliases</a>, <a class="el" href="poptint_8h-source.html#l00080">poptContext_s::numExecs</a>, <a class="el" href="poptint_8h-source.html#l00070">poptContext_s::options</a>, <a class="el" href="poptint_8h-source.html#l00091">poptContext_s::otherHelp</a>, <a class="el" href="popthelp_8c-source.html#l00541">showHelpIntro()</a>, <a class="el" href="popthelp_8c-source.html#l00756">showShortOptions()</a>, and <a class="el" href="popthelp_8c-source.html#l00705">singleTableUsage()</a>.
<p>
Referenced by <a class="el" href="popthelp_8c-source.html#l00030">displayArgs()</a>, and <a class="el" href="rpmqv_8c-source.html#l00153">printUsage()</a>.
</div>
</div><p>
<a class="anchor" name="g8f0347f05b72315b7a29abb013a9d162"></a><!-- doxytag: member="popt.h::poptReadConfigFile" ref="g8f0347f05b72315b7a29abb013a9d162" args="(poptContext con, const char *fn)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int poptReadConfigFile           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>fn</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Read configuration file. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fn</em>&nbsp;</td><td>file name to read </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 on success, POPT_ERROR_ERRNO on failure </dd></dl>

<p>
Definition at line <a class="el" href="poptconfig_8c-source.html#l00096">96</a> of file <a class="el" href="poptconfig_8c-source.html">poptconfig.c</a>.
<p>
References <a class="el" href="system_8h.html#eb1df3e83fb069eaa2eb66ace3a0ea52">alloca()</a>, <a class="el" href="poptconfig_8c-source.html#l00014">configLine()</a>, <a class="el" href="system_8h.html#d65a8842cc674e3ddf69355898c0ecbf">errno</a>, <a class="el" href="parseFiles_8c-source.html#l00018">file</a>, <a class="el" href="popt_8h-source.html#l00087">POPT_ERROR_ERRNO</a>, and <a class="el" href="system_8h-source.html#l00180">SEEK_END</a>.
<p>
Referenced by <a class="el" href="rpmqv_8c-source.html#l00170">main()</a>, <a class="el" href="poptconfig_8c-source.html#l00163">poptReadDefaultConfig()</a>, and <a class="el" href="poptALL_8c-source.html#l00400">rpmcliInit()</a>.
</div>
</div><p>
<a class="anchor" name="gffd51981d556a32e283298e7f8eca69e"></a><!-- doxytag: member="popt.h::poptReadDefaultConfig" ref="gffd51981d556a32e283298e7f8eca69e" args="(poptContext con, int useEnv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int poptReadDefaultConfig           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>useEnv</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Read default configuration from /etc/popt and $HOME/.popt. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>useEnv</em>&nbsp;</td><td>(unused) </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 on success, POPT_ERROR_ERRNO on failure </dd></dl>

<p>
Definition at line <a class="el" href="poptconfig_8c-source.html#l00163">163</a> of file <a class="el" href="poptconfig_8c-source.html">poptconfig.c</a>.
<p>
References <a class="el" href="system_8h.html#eb1df3e83fb069eaa2eb66ace3a0ea52">alloca()</a>, <a class="el" href="poptint_8h-source.html#l00073">poptContext_s::appName</a>, <a class="el" href="system_8h.html#bc6595dbf6880c71628fecf0dbb23d66">getenv()</a>, and <a class="el" href="poptconfig_8c-source.html#l00096">poptReadConfigFile()</a>.
<p>
Referenced by <a class="el" href="rpmqv_8c-source.html#l00170">main()</a>, and <a class="el" href="poptALL_8c-source.html#l00400">rpmcliInit()</a>.
</div>
</div><p>
<a class="anchor" name="g66e307ed79a41a4b8880e0b06f04414b"></a><!-- doxytag: member="popt.h::poptResetContext" ref="g66e307ed79a41a4b8880e0b06f04414b" args="(poptContext con)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void poptResetContext           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reinitialize popt context. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l00228">228</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="rpmlib_8h-source.html#l00058">_free()</a>, <a class="el" href="poptint_8h-source.html#l00093">poptContext_s::arg_strip</a>, <a class="el" href="poptint_8h-source.html#l00050">optionStackEntry::argb</a>, <a class="el" href="popt_8c-source.html#l00217">cleanOSE()</a>, <a class="el" href="poptint_8h-source.html#l00057">optionStackEntry::currAlias</a>, <a class="el" href="poptint_8h-source.html#l00086">poptContext_s::doExec</a>, <a class="el" href="poptint_8h-source.html#l00082">poptContext_s::finalArgv</a>, <a class="el" href="poptint_8h-source.html#l00083">poptContext_s::finalArgvCount</a>, <a class="el" href="poptint_8h-source.html#l00051">optionStackEntry::next</a>, <a class="el" href="poptint_8h-source.html#l00053">optionStackEntry::nextArg</a>, <a class="el" href="poptint_8h-source.html#l00055">optionStackEntry::nextCharArg</a>, <a class="el" href="poptint_8h-source.html#l00068">poptContext_s::nextLeftover</a>, <a class="el" href="poptint_8h-source.html#l00067">poptContext_s::numLeftovers</a>, <a class="el" href="poptint_8h-source.html#l00062">poptContext_s::optionStack</a>, <a class="el" href="poptint_8h-source.html#l00064">poptContext_s::os</a>, <a class="el" href="rpmdb_8c-source.html#l00085">PBM_FREE</a>, and <a class="el" href="poptint_8h-source.html#l00071">poptContext_s::restLeftover</a>.
<p>
Referenced by <a class="el" href="popt_8c-source.html#l01060">poptFreeContext()</a>.
</div>
</div><p>
<a class="anchor" name="g0f4836b0740d052af6427757c4c72309"></a><!-- doxytag: member="popt.h::poptSetExecPath" ref="g0f4836b0740d052af6427757c4c72309" args="(poptContext con, const char *path, int allowAbsolute)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void poptSetExecPath           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>allowAbsolute</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Limit search for executables. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>single path to search for executables </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>allowAbsolute</em>&nbsp;</td><td>absolute paths only? </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l00054">54</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="rpmlib_8h-source.html#l00058">_free()</a>, <a class="el" href="poptint_8h-source.html#l00089">poptContext_s::execAbsolute</a>, <a class="el" href="poptint_8h-source.html#l00088">poptContext_s::execPath</a>, and <a class="el" href="rpmmalloc_8c-source.html#l00055">xstrdup()</a>.
<p>
Referenced by <a class="el" href="rpmqv_8c-source.html#l00170">main()</a>, and <a class="el" href="poptALL_8c-source.html#l00400">rpmcliInit()</a>.
</div>
</div><p>
<a class="anchor" name="gb65dea0ccd22bf961fa8a4783fdd4a43"></a><!-- doxytag: member="popt.h::poptSetOtherOptionHelp" ref="gb65dea0ccd22bf961fa8a4783fdd4a43" args="(poptContext con, const char *text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void poptSetOtherOptionHelp           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>text</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provide text to replace default "[OPTION...]" in help/usage output. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>replacement text </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="popthelp_8c-source.html#l00815">815</a> of file <a class="el" href="popthelp_8c-source.html">popthelp.c</a>.
<p>
References <a class="el" href="rpmlib_8h-source.html#l00058">_free()</a>, <a class="el" href="poptint_8h-source.html#l00091">poptContext_s::otherHelp</a>, and <a class="el" href="rpmmalloc_8c-source.html#l00055">xstrdup()</a>.
</div>
</div><p>
<a class="anchor" name="g477914d0129cb66a98d5c1d3cc7cd07a"></a><!-- doxytag: member="popt.h::poptStrerror" ref="g477914d0129cb66a98d5c1d3cc7cd07a" args="(const int error)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* const poptStrerror           </td>
          <td>(</td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>error</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return formatted error string for popt failure. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>error</em>&nbsp;</td><td>popt error </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>error string </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l01180">1180</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="system_8h.html#d65a8842cc674e3ddf69355898c0ecbf">errno</a>, <a class="el" href="poptint_8h-source.html#l00111">POPT_</a>, <a class="el" href="popt_8h-source.html#l00088">POPT_ERROR_BADNUMBER</a>, <a class="el" href="popt_8h-source.html#l00090">POPT_ERROR_BADOPERATION</a>, <a class="el" href="popt_8h-source.html#l00084">POPT_ERROR_BADOPT</a>, <a class="el" href="macro_8c-source.html#l01579">POPT_ERROR_BADQUOTE</a>, <a class="el" href="popt_8h-source.html#l00087">POPT_ERROR_ERRNO</a>, <a class="el" href="macro_8c-source.html#l01580">POPT_ERROR_MALLOC</a>, <a class="el" href="macro_8c-source.html#l01578">POPT_ERROR_NOARG</a>, <a class="el" href="popt_8h-source.html#l00091">POPT_ERROR_NULLARG</a>, <a class="el" href="popt_8h-source.html#l00085">POPT_ERROR_OPTSTOODEEP</a>, <a class="el" href="popt_8h-source.html#l00089">POPT_ERROR_OVERFLOW</a>, and <a class="el" href="file_8h-source.html#l00323">strerror</a>.
<p>
Referenced by <a class="el" href="parsePrep_8c-source.html#l00317">doSetupMacro()</a>, <a class="el" href="rpmqv_8c-source.html#l00170">main()</a>, <a class="el" href="parseDescription_8c-source.html#l00029">parseDescription()</a>, <a class="el" href="parseFiles_8c-source.html#l00026">parseFiles()</a>, <a class="el" href="parseScript_8c-source.html#l00072">parseScript()</a>, and <a class="el" href="poptALL_8c-source.html#l00400">rpmcliInit()</a>.
</div>
</div><p>
<a class="anchor" name="g4ba7b7dddd0a2e3ac21a8b71c9c5115b"></a><!-- doxytag: member="popt.h::poptStrippedArgv" ref="g4ba7b7dddd0a2e3ac21a8b71c9c5115b" args="(poptContext con, int argc, char **argv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int poptStrippedArgv           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>argv</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Shuffle argv pointers to remove stripped args, returns new argc. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argc</em>&nbsp;</td><td>no. of args </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>arg vector </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>new argc </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l01237">1237</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00093">poptContext_s::arg_strip</a>, and <a class="el" href="rpmdb_8c-source.html#l00088">PBM_ISSET</a>.
</div>
</div><p>
<a class="anchor" name="g2e93feadc17ce658d7468285a65eef70"></a><!-- doxytag: member="popt.h::poptStuffArgs" ref="g2e93feadc17ce658d7468285a65eef70" args="(poptContext con, const char **argv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int poptStuffArgs           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpoptContext__s.html">poptContext</a>&nbsp;</td>
          <td class="paramname"> <em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char **&nbsp;</td>
          <td class="paramname"> <em>argv</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add arguments to context. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>con</em>&nbsp;</td><td>context </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>argument array, NULL terminated </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 on success, POPT_ERROR_OPTSTOODEEP on failure </dd></dl>

<p>
Definition at line <a class="el" href="popt_8c-source.html#l01208">1208</a> of file <a class="el" href="popt_8c-source.html">popt.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00050">optionStackEntry::argb</a>, <a class="el" href="poptint_8h-source.html#l00046">optionStackEntry::argc</a>, <a class="el" href="poptint_8h-source.html#l00048">optionStackEntry::argv</a>, <a class="el" href="poptint_8h-source.html#l00057">optionStackEntry::currAlias</a>, <a class="el" href="poptint_8h-source.html#l00051">optionStackEntry::next</a>, <a class="el" href="poptint_8h-source.html#l00053">optionStackEntry::nextArg</a>, <a class="el" href="poptint_8h-source.html#l00055">optionStackEntry::nextCharArg</a>, <a class="el" href="poptint_8h-source.html#l00062">poptContext_s::optionStack</a>, <a class="el" href="poptint_8h-source.html#l00064">poptContext_s::os</a>, <a class="el" href="popt_8h-source.html#l00085">POPT_ERROR_OPTSTOODEEP</a>, <a class="el" href="popt_8h-source.html#l00014">POPT_OPTION_DEPTH</a>, <a class="el" href="poptparse_8c-source.html#l00014">poptDupArgv()</a>, and <a class="el" href="poptint_8h-source.html#l00058">optionStackEntry::stuffed</a>.
<p>
Referenced by <a class="el" href="poptQV_8c-source.html#l00163">queryArgCallback()</a>.
</div>
</div><p>
<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>