Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > by-pkgid > 2269bb274471fd2722517c2c0b740d7f > files > 167

rpm-devel-4.0.4-19mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>misc.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.17 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>lib/misc.h File Reference</h1> 
<a href="#_details">More...</a>
<p>

<p>
<a href="misc_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td nowrap align=right valign=top>char **&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a0">splitString</a> (const char *str, int length, char sep)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Split string into fields separated by a character.</em> <a href="#a0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a1">freeSplitString</a> (char **list)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Free split string argv array.</em> <a href="#a1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>char *&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a2">stripTrailingChar</a> (char *s, char c)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Remove occurences of trailing character from string.</em> <a href="#a2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a3">dosetenv</a> (const char *<a class="el" href="parseScript_8c.html#a0">name</a>, const char *value, int overwrite)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Like the libc function, but malloc()'s the space needed.</em> <a href="#a3"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a4">doputenv</a> (const char *str)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Like the libc function, but malloc()'s the space needed.</em> <a href="#a4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a5">makeTempFile</a> (const char *prefix, const char **fnptr, <a class="el" href="group__rpmio.html#a1">FD_t</a> *fdptr)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return file handle for a temporaray file.</em> <a href="#a5"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>char *&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a6">currentDirectory</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return (malloc'd) current working directory.</em> <a href="#a6"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a7">compressFilelist</a> (<a class="el" href="group__header.html#a6">Header</a> h)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Convert absolute path tag to (dirname,basename,dirindex) tags.</em> <a href="#a7"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a8">expandFilelist</a> (<a class="el" href="group__header.html#a6">Header</a> h)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Convert (dirname,basename,dirindex) tags to absolute path tag.</em> <a href="#a8"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a9">buildOrigFileList</a> (<a class="el" href="group__header.html#a6">Header</a> h, const char ***fileListPtr, int *fileCountPtr)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a10">myGlobPatternP</a> (const char *patternURL)</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a11">rpmGlob</a> (const char *patterns, int *argcPtr, const char ***argvPtr)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a12">providePackageNVR</a> (<a class="el" href="group__header.html#a6">Header</a> h)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Retrofit a Provides: name = version-release dependency into legacy packages.</em> <a href="#a12"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a13">domd5</a> (const char *fn, unsigned char *digest, int asAscii)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Calculate MD5 sum for file.</em> <a href="#a13"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a14">mdfile</a> (const char *fn, unsigned char *digest)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return MD5 sum of file as ASCII string.</em> <a href="#a14"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="misc_8h.html#a15">mdbinfile</a> (const char *fn, unsigned char *bindigest)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return MD5 sum of file as binary data.</em> <a href="#a15"></a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>

<p>

<p>
Definition in file <a class="el" href="misc_8h-source.html">misc.h</a>.<hr><h2>Function Documentation</h2>
<a name="a9" doxytag="misc.h::buildOrigFileList"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void buildOrigFileList </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group__header.html#a6">Header</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>h</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char ***&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>fileListPtr</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>fileCountPtr</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>h</em>&nbsp;</td><td>
header </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00465">465</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="lib_2misc_8c-source.html#l00389">doBuildFileList</a>(), <a class="el" href="rpmlib_8h.html#a494a224">RPMTAG_ORIGBASENAMES</a>, <a class="el" href="rpmlib_8h.html#a494a223">RPMTAG_ORIGDIRINDEXES</a>, and <a class="el" href="rpmlib_8h.html#a494a225">RPMTAG_ORIGDIRNAMES</a>.
<p>
Referenced by <a class="el" href="psm_8c-source.html#l01345">psmStage</a>().    </td>
  </tr>
</table>
<a name="a7" doxytag="misc.h::compressFilelist"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void compressFilelist </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group__header.html#a6">Header</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>h</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Convert absolute path tag to (dirname,basename,dirindex) tags.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>h</em>&nbsp;</td><td>
header </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00298">298</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="system_8h.html#a36">alloca</a>(), <a class="el" href="lib_2misc_8c-source.html#l00291">dncmp</a>(), <a class="el" href="rpmlib_8h-source.html#l01117">HAE_t</a>, <a class="el" href="header_8c-source.html#l01231">headerIsEntry</a>(), <a class="el" href="rpmlib_8h-source.html#l01081">HFD_t</a>, <a class="el" href="rpmlib_8h-source.html#l01097">HGE_t</a>, <a class="el" href="rpmlib_8h-source.html#l01145">HRE_t</a>, <a class="el" href="header_8h-source.html#l00099">int_32</a>, <a class="el" href="header_8h.html#a93a70">RPM_INT32_TYPE</a>, <a class="el" href="header_8h.html#a93a73">RPM_STRING_ARRAY_TYPE</a>, <a class="el" href="rpmlib_8h.html#a494a221">RPMTAG_BASENAMES</a>, <a class="el" href="rpmlib_8h.html#a494a220">RPMTAG_DIRINDEXES</a>, <a class="el" href="rpmlib_8h.html#a494a222">RPMTAG_DIRNAMES</a>, <a class="el" href="rpmlib_8h.html#a494a140">RPMTAG_OLDFILENAMES</a>, and <a class="el" href="header_8h.html#a13">rpmTagType</a>.
<p>
Referenced by <a class="el" href="db1_8c-source.html#l00137">doGetRecord</a>(), <a class="el" href="files_8c-source.html#l01083">genCpioListAndHeader</a>(), and <a class="el" href="package_8c-source.html#l00140">readPackageHeaders</a>().    </td>
  </tr>
</table>
<a name="a6" doxytag="misc.h::currentDirectory"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> char* currentDirectory </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return (malloc'd) current working directory.
<p>
<dl compact><dt><b>Returns :</b></dt><dd>
current working directory (malloc'ed) </dl>
<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00274">274</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="system_8h-source.html#l00100">errno</a>, <a class="el" href="rpmmalloc_8c-source.html#l00024">xmalloc</a>(), and <a class="el" href="rpmmalloc_8c-source.html#l00045">xrealloc</a>().
<p>
Referenced by <a class="el" href="transaction_8c-source.html#l01526">rpmRunTransactions</a>().    </td>
  </tr>
</table>
<a name="a13" doxytag="misc.h::domd5"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int domd5 </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>fn</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>digest</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>asAscii</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Calculate MD5 sum for file.
<p>
<dl compact><dt><b><a class="el" href="todo.html#_todo000029">Todo: </a></b></dt><dd>
Eliminate, use beecrypt instead.</dl> <dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>fn</em>&nbsp;</td><td>
file name </td></tr>
</table>
</dl><dl compact><dt><b>Return values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>digest</em>&nbsp;</td><td>
address of md5sum </td></tr>
</table>
</dl><dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>asAscii</em>&nbsp;</td><td>
return md5sum as ascii string? </td></tr>
</table>
</dl><dl compact><dt><b>Returns :</b></dt><dd>
0 on success, 1 on error </dl>
<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00791">791</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00018">_free</a>(), <a class="el" href="rpmio_8c-source.html#l02685">Fclose</a>(), <a class="el" href="rpmio__internal_8h-source.html#l00487">fdFiniDigest</a>(), <a class="el" href="rpmio__internal_8h-source.html#l00455">fdInitDigest</a>(), <a class="el" href="rpmio_8c-source.html#l03045">Ferror</a>(), <a class="el" href="rpmio_8c-source.html#l02948">Fopen</a>(), <a class="el" href="rpmio_8c-source.html#l02599">Fread</a>(), and <a class="el" href="rpmpgp_8h.html#a174a95">PGPHASHALGO_MD5</a>.
<p>
Referenced by <a class="el" href="transaction_8c-source.html#l00785">decideFileFate</a>(), <a class="el" href="files_8c-source.html#l01083">genCpioListAndHeader</a>(), <a class="el" href="misc_8h-source.html#l00175">mdbinfile</a>(), <a class="el" href="misc_8h-source.html#l00160">mdfile</a>(), and <a class="el" href="verify_8c-source.html#l00022">rpmVerifyFile</a>().    </td>
  </tr>
</table>
<a name="a4" doxytag="misc.h::doputenv"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int doputenv </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>str</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Like the libc function, but malloc()'s the space needed.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>str</em>&nbsp;</td><td>
"name=value" string </td></tr>
</table>
</dl><dl compact><dt><b>Returns :</b></dt><dd>
0 on success </dl>
<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00098">98</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="rpmmalloc_8c-source.html#l00024">xmalloc</a>().
<p>
Referenced by <a class="el" href="psm_8c-source.html#l00825">runScript</a>().    </td>
  </tr>
</table>
<a name="a3" doxytag="misc.h::dosetenv"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int dosetenv </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>value</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>overwrite</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Like the libc function, but malloc()'s the space needed.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
variable name </td></tr>
<tr><td valign=top><em>value</em>&nbsp;</td><td>
variable value </td></tr>
<tr><td valign=top><em>overwrite</em>&nbsp;</td><td>
should an existing variable be changed? </td></tr>
</table>
</dl><dl compact><dt><b>Returns :</b></dt><dd>
0 on success </dl>
<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00108">108</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="system_8h.html#a34">getenv</a>(), <a class="el" href="system_8h.html#a32">stpcpy</a>(), and <a class="el" href="rpmmalloc_8c-source.html#l00024">xmalloc</a>().
<p>
Referenced by <a class="el" href="signature_8c-source.html#l00783">checkPassPhrase</a>(), <a class="el" href="signature_8c-source.html#l00357">makeGPGSignature</a>(), <a class="el" href="signature_8c-source.html#l00245">makePGPSignature</a>(), <a class="el" href="signature_8c-source.html#l00689">verifyGPGSignature</a>(), and <a class="el" href="signature_8c-source.html#l00544">verifyPGPSignature</a>().    </td>
  </tr>
</table>
<a name="a8" doxytag="misc.h::expandFilelist"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void expandFilelist </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group__header.html#a6">Header</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>h</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Convert (dirname,basename,dirindex) tags to absolute path tag.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>h</em>&nbsp;</td><td>
header </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00436">436</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00018">_free</a>(), <a class="el" href="lib_2misc_8c-source.html#l00389">doBuildFileList</a>(), <a class="el" href="rpmlib_8h-source.html#l01117">HAE_t</a>, <a class="el" href="header_8c-source.html#l01231">headerIsEntry</a>(), <a class="el" href="rpmlib_8h-source.html#l01145">HRE_t</a>, <a class="el" href="header_8h.html#a93a73">RPM_STRING_ARRAY_TYPE</a>, <a class="el" href="rpmlib_8h.html#a494a221">RPMTAG_BASENAMES</a>, <a class="el" href="rpmlib_8h.html#a494a220">RPMTAG_DIRINDEXES</a>, <a class="el" href="rpmlib_8h.html#a494a222">RPMTAG_DIRNAMES</a>, and <a class="el" href="rpmlib_8h.html#a494a140">RPMTAG_OLDFILENAMES</a>.
<p>
Referenced by <a class="el" href="rpmdb_8c-source.html#l01531">dbiUpdateRecord</a>(), <a class="el" href="files_8c-source.html#l01083">genCpioListAndHeader</a>(), and <a class="el" href="rpmdb_8c-source.html#l02691">rpmdbAdd</a>().    </td>
  </tr>
</table>
<a name="a1" doxytag="misc.h::freeSplitString"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void freeSplitString </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">char **&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>list</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Free split string argv array.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>list</em>&nbsp;</td><td>
argv array </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00059">59</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00018">_free</a>().
<p>
Referenced by <a class="el" href="parsePrep_8c-source.html#l00539">parsePrep</a>(), <a class="el" href="files_8c-source.html#l01740">processPackageFiles</a>(), <a class="el" href="files_8c-source.html#l02068">processSourceFiles</a>(), and <a class="el" href="transaction_8c-source.html#l01250">skipFiles</a>().    </td>
  </tr>
</table>
<a name="a5" doxytag="misc.h::makeTempFile"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int makeTempFile </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>prefix</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>fnptr</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group__rpmio.html#a1">FD_t</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>fdptr</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return file handle for a temporaray file.
<p>
A unique temporaray file path will be generated using rpmGenPath(prefix, "%{_tmppath}/", "rpm-tmp.XXXXX") where "XXXXXX" is filled in using rand(3). The file is opened, and the link count and (dev,ino) location are verified after opening. The file name and the open file handle are returned.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>prefix</em>&nbsp;</td><td>
leading part of temp file path </td></tr>
</table>
</dl><dl compact><dt><b>Return values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>fnptr</em>&nbsp;</td><td>
temp file name (or NULL) </td></tr>
<tr><td valign=top><em>fdptr</em>&nbsp;</td><td>
temp file handle </td></tr>
</table>
</dl><dl compact><dt><b>Returns :</b></dt><dd>
0 on success </dl>
<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00170">170</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="system_8h-source.html#l00370">_</a>, <a class="el" href="poptint_8h-source.html#l00018">_free</a>(), <a class="el" href="system_8h-source.html#l00100">errno</a>, <a class="el" href="rpmio_8c-source.html#l02685">Fclose</a>(), <a class="el" href="rpmio_8c-source.html#l03045">Ferror</a>(), <a class="el" href="rpmio_8c-source.html#l03080">Fileno</a>(), <a class="el" href="rpmio_8c-source.html#l02948">Fopen</a>(), <a class="el" href="rpmerr_8h.html#a91a52">RPMERR_SCRIPT</a>, <a class="el" href="rpmerr_8h-source.html#l00140">rpmError</a>, <a class="el" href="macro_8c-source.html#l01889">rpmGenPath</a>(), <a class="el" href="lib_2misc_8c-source.html#l00120">rpmMkpath</a>(), <a class="el" href="system_8h-source.html#l00502">S_ISLNK</a>, <a class="el" href="rpmurl_8h.html#a30a15">URL_IS_DASH</a>, <a class="el" href="rpmurl_8h.html#a30a18">URL_IS_HTTP</a>, <a class="el" href="rpmurl_8h.html#a30a16">URL_IS_PATH</a>, <a class="el" href="rpmurl_8h.html#a30a14">URL_IS_UNKNOWN</a>, and <a class="el" href="url_8c-source.html#l00360">urlPath</a>().
<p>
Referenced by <a class="el" href="build_2build_8c-source.html#l00057">doScript</a>(), <a class="el" href="lib_2rpmchecksig_8c-source.html#l00018">manageFile</a>(), <a class="el" href="psm_8c-source.html#l00825">runScript</a>(), <a class="el" href="signature_8c-source.html#l00689">verifyGPGSignature</a>(), <a class="el" href="signature_8c-source.html#l00544">verifyPGPSignature</a>(), and <a class="el" href="pack_8c-source.html#l00385">writeRPM</a>().    </td>
  </tr>
</table>
<a name="a15" doxytag="misc.h::mdbinfile"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int mdbinfile </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>fn</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>bindigest</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inline, static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return MD5 sum of file as binary data.
<p>
<dl compact><dt><b><a class="el" href="todo.html#_todo000031">Todo: </a></b></dt><dd>
Eliminate, use beecrypt instead.</dl> <dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>fn</em>&nbsp;</td><td>
file name </td></tr>
</table>
</dl><dl compact><dt><b>Return values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>bindigest</em>&nbsp;</td><td>
MD5 digest </td></tr>
</table>
</dl><dl compact><dt><b>Returns :</b></dt><dd>
0 on success, 1 on error </dl>
<p>
Definition at line <a class="el" href="misc_8h-source.html#l00175">175</a> of file <a class="el" href="misc_8h-source.html">misc.h</a>.
<p>
References <a class="el" href="lib_2misc_8c-source.html#l00791">domd5</a>().
<p>
Referenced by <a class="el" href="signature_8c-source.html#l00446">rpmAddSignature</a>().    </td>
  </tr>
</table>
<a name="a14" doxytag="misc.h::mdfile"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int mdfile </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>fn</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>digest</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inline, static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return MD5 sum of file as ASCII string.
<p>
<dl compact><dt><b><a class="el" href="todo.html#_todo000030">Todo: </a></b></dt><dd>
Eliminate, use beecrypt instead.</dl> <dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>fn</em>&nbsp;</td><td>
file name </td></tr>
</table>
</dl><dl compact><dt><b>Return values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>digest</em>&nbsp;</td><td>
MD5 digest </td></tr>
</table>
</dl><dl compact><dt><b>Returns :</b></dt><dd>
0 on success, 1 on error </dl>
<p>
Definition at line <a class="el" href="misc_8h-source.html#l00160">160</a> of file <a class="el" href="misc_8h-source.html">misc.h</a>.
<p>
References <a class="el" href="lib_2misc_8c-source.html#l00791">domd5</a>().    </td>
  </tr>
</table>
<a name="a10" doxytag="misc.h::myGlobPatternP"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int myGlobPatternP </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>patternURL</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00476">476</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="url_8c-source.html#l00360">urlPath</a>().
<p>
Referenced by <a class="el" href="files_8c-source.html#l01665">processBinaryFile</a>(), and <a class="el" href="lib_2misc_8c-source.html#l00508">rpmGlob</a>().    </td>
  </tr>
</table>
<a name="a12" doxytag="misc.h::providePackageNVR"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void providePackageNVR </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group__header.html#a6">Header</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>h</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Retrofit a Provides: name = version-release dependency into legacy packages.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>h</em>&nbsp;</td><td>
header </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00712">712</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="system_8h.html#a36">alloca</a>(), <a class="el" href="header_8c-source.html#l01792">headerAddOrAppendEntry</a>(), <a class="el" href="depends_8c-source.html#l00031">headerNVR</a>(), <a class="el" href="rpmlib_8h-source.html#l01081">HFD_t</a>, <a class="el" href="rpmlib_8h-source.html#l01097">HGE_t</a>, <a class="el" href="header_8h-source.html#l00099">int_32</a>, <a class="el" href="header_8h.html#a93a70">RPM_INT32_TYPE</a>, <a class="el" href="header_8h.html#a93a73">RPM_STRING_ARRAY_TYPE</a>, <a class="el" href="rpmlib_8h.html#a497a253">RPMSENSE_ANY</a>, <a class="el" href="rpmlib_8h.html#a497a257">RPMSENSE_EQUAL</a>, <a class="el" href="rpmlib_8h.html#a494a116">RPMTAG_EPOCH</a>, <a class="el" href="rpmlib_8h.html#a494a216">RPMTAG_PROVIDEFLAGS</a>, <a class="el" href="rpmlib_8h.html#a494a160">RPMTAG_PROVIDENAME</a>, <a class="el" href="rpmlib_8h.html#a494a217">RPMTAG_PROVIDEVERSION</a>, <a class="el" href="header_8h.html#a13">rpmTagType</a>, and <a class="el" href="system_8h.html#a32">stpcpy</a>().
<p>
Referenced by <a class="el" href="db1_8c-source.html#l00137">doGetRecord</a>(), <a class="el" href="pack_8c-source.html#l00689">packageBinaries</a>(), <a class="el" href="package_8c-source.html#l00140">readPackageHeaders</a>(), and <a class="el" href="pack_8c-source.html#l00385">writeRPM</a>().    </td>
  </tr>
</table>
<a name="a11" doxytag="misc.h::rpmGlob"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int rpmGlob </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>patterns</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>argcPtr</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char ***&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>argvPtr</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00508">508</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00018">_free</a>(), <a class="el" href="rpmrpc_8c-source.html#l01160">Glob</a>(), <a class="el" href="lib_2misc_8c-source.html#l00503">glob_error</a>(), <a class="el" href="rpmrpc_8c-source.html#l01188">Globfree</a>(), <a class="el" href="lib_2misc_8c-source.html#l00476">myGlobPatternP</a>(), <a class="el" href="poptparse_8c-source.html#l00054">poptParseArgvString</a>(), <a class="el" href="rpmurl_8h.html#a30a15">URL_IS_DASH</a>, <a class="el" href="rpmurl_8h.html#a30a17">URL_IS_FTP</a>, <a class="el" href="rpmurl_8h.html#a30a18">URL_IS_HTTP</a>, <a class="el" href="rpmurl_8h.html#a30a16">URL_IS_PATH</a>, <a class="el" href="rpmurl_8h.html#a30a14">URL_IS_UNKNOWN</a>, <a class="el" href="url_8c-source.html#l00360">urlPath</a>(), <a class="el" href="rpmmalloc_8c-source.html#l00024">xmalloc</a>(), <a class="el" href="rpmmalloc_8c-source.html#l00045">xrealloc</a>(), and <a class="el" href="rpmmalloc_8c-source.html#l00055">xstrdup</a>().
<p>
Referenced by <a class="el" href="rpminstall_8c-source.html#l00834">IDTXglob</a>(), <a class="el" href="files_8c-source.html#l01665">processBinaryFile</a>(), <a class="el" href="rpminstall_8c-source.html#l00204">rpmInstall</a>(), <a class="el" href="query_8c-source.html#l00581">rpmQueryVerify</a>(), and <a class="el" href="manifest_8c-source.html#l00059">rpmReadPackageManifest</a>().    </td>
  </tr>
</table>
<a name="a0" doxytag="misc.h::splitString"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> char** splitString </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>str</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>length</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>char&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>sep</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Split string into fields separated by a character.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>str</em>&nbsp;</td><td>
string </td></tr>
<tr><td valign=top><em>length</em>&nbsp;</td><td>
length of string </td></tr>
<tr><td valign=top><em>sep</em>&nbsp;</td><td>
separator character </td></tr>
</table>
</dl><dl compact><dt><b>Returns :</b></dt><dd>
(malloc'd) argv array </dl>
<p>
Definition at line <a class="el" href="lib_2misc_8c-source.html#l00023">23</a> of file <a class="el" href="lib_2misc_8c-source.html">misc.c</a>.
<p>
References <a class="el" href="rpmmalloc_8c-source.html#l00024">xmalloc</a>().
<p>
Referenced by <a class="el" href="parsePrep_8c-source.html#l00539">parsePrep</a>(), <a class="el" href="files_8c-source.html#l01740">processPackageFiles</a>(), <a class="el" href="files_8c-source.html#l02068">processSourceFiles</a>(), and <a class="el" href="transaction_8c-source.html#l01250">skipFiles</a>().    </td>
  </tr>
</table>
<a name="a2" doxytag="misc.h::stripTrailingChar"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> char* stripTrailingChar </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>s</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>char&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>c</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inline, static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Remove occurences of trailing character from string.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>s</em>&nbsp;</td><td>
string </td></tr>
<tr><td valign=top><em>c</em>&nbsp;</td><td>
character to strip </td></tr>
</table>
</dl><dl compact><dt><b>Returns :</b></dt><dd>
string </dl>
<p>
Definition at line <a class="el" href="misc_8h-source.html#l00037">37</a> of file <a class="el" href="misc_8h-source.html">misc.h</a>.
<p>
Referenced by <a class="el" href="package_8c-source.html#l00140">readPackageHeaders</a>(), and <a class="el" href="transaction_8c-source.html#l00310">relocateFileList</a>().    </td>
  </tr>
</table>
<hr><address style="align: right;"><small>Generated on Thu Sep 12 22:15:05 2002 for rpm by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.17 </small></address>
</body>
</html>