Sophie

Sophie

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

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: file/src/apprentice.c File Reference</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 id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<h1>file/src/apprentice.c File Reference</h1><code>#include &quot;<a class="el" href="file_8h-source.html">file.h</a>&quot;</code><br>
<code>#include &quot;magic.h&quot;</code><br>
<code>#include &lt;stdlib.h&gt;</code><br>
<code>#include &lt;string.h&gt;</code><br>
<code>#include &lt;ctype.h&gt;</code><br>
<code>#include &lt;fcntl.h&gt;</code><br>
<code>#include &lt;sys/stat.h&gt;</code><br>
<code>#include &lt;sys/param.h&gt;</code><br>

<p>
<a href="apprentice_8c-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>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#4a8b4779f1126316143e8f354f0c85d4">EATAB</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#9165ad17c9b51d80577a020832f1fa4a">LOWCASE</a>(l)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#8523dcf952f6ff059a3bed717e4f1296">MAP_FAILED</a>&nbsp;&nbsp;&nbsp;(void *) -1</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#238feed3512d8b21b3854d082dcae6f4">MAP_FILE</a>&nbsp;&nbsp;&nbsp;0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#ddfa831c1473e710d2b71b72fd7fcfa5">MAXPATHLEN</a>&nbsp;&nbsp;&nbsp;1024</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#5bcb062a246a73327003e50bf2daeb93">IS_PLAINSTRING</a>(t)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#f72c8807835aa3ecde5670574dacac0e">IS_STRING</a>(t)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#56642880a90f8df2767f09219b7affb0">ALLOC_INCR</a>&nbsp;&nbsp;&nbsp;200</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#88d02d8f807d622a0f67291fefe9c227">NBYTE</a>&nbsp;&nbsp;&nbsp;4</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#f7f3153d47820aa683904e16c4b9b674">NSHORT</a>&nbsp;&nbsp;&nbsp;5</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#efbd71729941ad031030b70b95036da2">NLONG</a>&nbsp;&nbsp;&nbsp;4</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#382b7609005c0a98c6b6f050c559aee7">NSTRING</a>&nbsp;&nbsp;&nbsp;6</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#e7a9e28616a28bc9e90ab6007a49fcf7">NDATE</a>&nbsp;&nbsp;&nbsp;4</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#528dccdd2d79b9392746f8cccc8f082e">NBESHORT</a>&nbsp;&nbsp;&nbsp;7</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#56ec043c57abfd56db63715243c6736a">NBELONG</a>&nbsp;&nbsp;&nbsp;6</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#9a5f47e720cb9b80a33de2fec2fb8891">NBEDATE</a>&nbsp;&nbsp;&nbsp;6</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#b52ab8464467491dbb5f4c39b093db18">NLESHORT</a>&nbsp;&nbsp;&nbsp;7</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#d14dcfd835d3a0a5f2b1bf41f92e6339">NLELONG</a>&nbsp;&nbsp;&nbsp;6</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#bc9a1a3b5cd5c3879759ef8278c72f94">NLEDATE</a>&nbsp;&nbsp;&nbsp;6</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#303e67b084ed5215e8ab67c92d9ccfe3">NPSTRING</a>&nbsp;&nbsp;&nbsp;7</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#89157b5c490e4977366531031606be66">NLDATE</a>&nbsp;&nbsp;&nbsp;5</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#e76e6b40674f726f62f6c87297a1441f">NBELDATE</a>&nbsp;&nbsp;&nbsp;7</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#598502acc51acb8b75448c23a9dd3aec">NLELDATE</a>&nbsp;&nbsp;&nbsp;7</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#ad96f042fa2ac9e2ff2224f50f3f45c3">NREGEX</a>&nbsp;&nbsp;&nbsp;5</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#d66056cb26787534cbc8b1076ca85df6">NBESTRING16</a>&nbsp;&nbsp;&nbsp;10</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#83ba5cbfa6aab63df2f0acdbd30b461b">NLESTRING16</a>&nbsp;&nbsp;&nbsp;10</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#bd44c26a62874237d30a1059fee2dedd">NSEARCH</a>&nbsp;&nbsp;&nbsp;6</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#c2544c8b4fe3113b0d6bb62530692c21">RET</a>&nbsp;&nbsp;&nbsp;1</td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#d3e2f9b6d2324a17d1d4a526b01dbf40">rcsid</a> (const char *p)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#69f31de58cf8369e559a5f0819083373">getvalue</a> (struct <a class="el" href="structmagic__set.html">magic_set</a> *ms, struct <a class="el" href="structmagic.html">magic</a> *m, char **p)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#4e4a725944171049e901ed0ba5d99ffd">hextoint</a> (int)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#370ceb128975b2f51f463b2c61aeb8ae">getstr</a> (struct <a class="el" href="structmagic__set.html">magic_set</a> *ms, char *s, char *p, int plen, int *slen)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#5fafd6ab7470644d1ebb2594a2058e81">parse</a> (struct <a class="el" href="structmagic__set.html">magic_set</a> *ms, struct <a class="el" href="structmagic.html">magic</a> **magicp, uint32_t *nmagicp, char *l, int action)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#e91b394bec7057a2260c779e32d47ae2">eatsize</a> (char **p)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#b3b68e53a202e68fb9d7953209b29b5c">apprentice_1</a> (struct <a class="el" href="structmagic__set.html">magic_set</a> *ms, const char *fn, int action, struct <a class="el" href="structmlist.html">mlist</a> *<a class="el" href="structmlist.html">mlist</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#3e97d9adddea1ab2e2af69cb57fe349d">apprentice_file</a> (struct <a class="el" href="structmagic__set.html">magic_set</a> *ms, struct <a class="el" href="structmagic.html">magic</a> **magicp, uint32_t *nmagicp, const char *fn, int action)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#88d3a32480b07c9b7086ca17872752ff">byteswap</a> (struct <a class="el" href="structmagic.html">magic</a> *<a class="el" href="structmagic.html">magic</a>, uint32_t nmagic)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#3075bee49929d6cd754945a58dc82298">bs1</a> (struct <a class="el" href="structmagic.html">magic</a> *m)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static uint16_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#cf2437870e281b5a8f56ea5a481794b4">swap2</a> (uint16_t sv)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#a8650b65e7f5f66487363fc6e75b0c46">swap4</a> (uint32_t sv)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#2da87acbfe61481277dbc47331785e2d">mkdbname</a> (const char *fn, char *buf, size_t, int)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#6ce05b051be3244a560b11f9c2628317">apprentice_map</a> (struct <a class="el" href="structmagic__set.html">magic_set</a> *ms, struct <a class="el" href="structmagic.html">magic</a> **magicp, uint32_t *nmagicp, const char *fn)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#c72b61f500e69db85423d5720e8c8d05">apprentice_compile</a> (struct <a class="el" href="structmagic__set.html">magic_set</a> *ms, struct <a class="el" href="structmagic.html">magic</a> **magicp, uint32_t *nmagicp, const char *fn)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#99e5d877451dcdb0775091b501d7407b">check_format</a> (struct <a class="el" href="structmagic__set.html">magic_set</a> *ms, struct <a class="el" href="structmagic.html">magic</a> *m)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#728d8460355bf68b718d2485829f0c4d">file_delmagic</a> (struct <a class="el" href="structmagic.html">magic</a> *p, int type, size_t entries)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structmlist.html">mlist</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#8028adb76e8e80362c304c1ea8914a8f">file_apprentice</a> (struct <a class="el" href="structmagic__set.html">magic_set</a> *ms, const char *fn, int action)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#e28db57fd7c1d40cd154e048ca99a075">file_signextend</a> (struct <a class="el" href="structmagic__set.html">magic_set</a> *ms, struct <a class="el" href="structmagic.html">magic</a> *m, uint32_t v)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#0d5c3d2cbe9e1c4adf8ef2b26e8e2251">file_showstr</a> (FILE *fp, const char *s, size_t len)</td></tr>

<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#69408b218c67e99c480eda93545b4539">maxmagic</a> = 0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#57fe3492b7e4c8d37c950f803e4ca47a">magicsize</a> = sizeof(struct <a class="el" href="structmagic.html">magic</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static const uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#c8d4c174ba04ae1893f41661ba9eedb7">ar</a> []</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static const char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="apprentice_8c.html#1ff9fc08fcad69d86fcb200d40da8aac">ext</a> [] = &quot;.mgc&quot;</td></tr>

</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="56642880a90f8df2767f09219b7affb0"></a><!-- doxytag: member="apprentice.c::ALLOC_INCR" ref="56642880a90f8df2767f09219b7affb0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ALLOC_INCR&nbsp;&nbsp;&nbsp;200          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="4a8b4779f1126316143e8f354f0c85d4"></a><!-- doxytag: member="apprentice.c::EATAB" ref="4a8b4779f1126316143e8f354f0c85d4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define EATAB          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<b>Value:</b><div class="fragment"><pre class="fragment">{<span class="keywordflow">while</span> (isascii((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>) *l) &amp;&amp; \
                      isspace((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>) *l))  ++l;}
</pre></div>
<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00051">51</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="5bcb062a246a73327003e50bf2daeb93"></a><!-- doxytag: member="apprentice.c::IS_PLAINSTRING" ref="5bcb062a246a73327003e50bf2daeb93" args="(t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_PLAINSTRING          </td>
          <td>(</td>
          <td class="paramtype">t&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<b>Value:</b><div class="fragment"><pre class="fragment">((t) == <a class="code" href="file_8h.html#4ac938e6d36a7f8a52c4394b0077464f">FILE_STRING</a> || (t) == <a class="code" href="file_8h.html#0ee3aa128e0786d27fa8a592d2c9d1c6">FILE_PSTRING</a> || \
    (t) == <a class="code" href="file_8h.html#258ea58d33f4649ba27ef01f5d2c00e2">FILE_BESTRING16</a> || (t) == <a class="code" href="file_8h.html#8f59d2f5ba3a667d3731d4d2a9270670">FILE_LESTRING16</a>)
</pre></div>
<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00077">77</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="f72c8807835aa3ecde5670574dacac0e"></a><!-- doxytag: member="apprentice.c::IS_STRING" ref="f72c8807835aa3ecde5670574dacac0e" args="(t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_STRING          </td>
          <td>(</td>
          <td class="paramtype">t&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<b>Value:</b><div class="fragment"><pre class="fragment">(<a class="code" href="apprentice_8c.html#5bcb062a246a73327003e50bf2daeb93">IS_PLAINSTRING</a>(t) || (t) == <a class="code" href="file_8h.html#bb376719282da717a652862fc97e4b60">FILE_REGEX</a> || \
    (t) == <a class="code" href="file_8h.html#17a43525a99411f40d7181967e383a8e">FILE_SEARCH</a>)
</pre></div>
<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00080">80</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l01274">bs1()</a>, and <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="9165ad17c9b51d80577a020832f1fa4a"></a><!-- doxytag: member="apprentice.c::LOWCASE" ref="9165ad17c9b51d80577a020832f1fa4a" args="(l)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOWCASE          </td>
          <td>(</td>
          <td class="paramtype">l&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<b>Value:</b><div class="fragment"><pre class="fragment">(isupper((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>) (l)) ? \
                        tolower((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>) (l)) : (l))
</pre></div>
<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00053">53</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l01053">eatsize()</a>.
</div>
</div><p>
<a class="anchor" name="8523dcf952f6ff059a3bed717e4f1296"></a><!-- doxytag: member="apprentice.c::MAP_FAILED" ref="8523dcf952f6ff059a3bed717e4f1296" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAP_FAILED&nbsp;&nbsp;&nbsp;(void *) -1          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00066">66</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l01079">apprentice_map()</a>.
</div>
</div><p>
<a class="anchor" name="238feed3512d8b21b3854d082dcae6f4"></a><!-- doxytag: member="apprentice.c::MAP_FILE" ref="238feed3512d8b21b3854d082dcae6f4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAP_FILE&nbsp;&nbsp;&nbsp;0          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00070">70</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l01079">apprentice_map()</a>.
</div>
</div><p>
<a class="anchor" name="ddfa831c1473e710d2b71b72fd7fcfa5"></a><!-- doxytag: member="apprentice.c::MAXPATHLEN" ref="ddfa831c1473e710d2b71b72fd7fcfa5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAXPATHLEN&nbsp;&nbsp;&nbsp;1024          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00074">74</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l01175">apprentice_compile()</a>, <a class="el" href="apprentice_8c-source.html#l01079">apprentice_map()</a>, <a class="el" href="fts_8c-source.html#l00134">Fts_open()</a>, and <a class="el" href="file_8c-source.html#l00368">unwrap()</a>.
</div>
</div><p>
<a class="anchor" name="9a5f47e720cb9b80a33de2fec2fb8891"></a><!-- doxytag: member="apprentice.c::NBEDATE" ref="9a5f47e720cb9b80a33de2fec2fb8891" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NBEDATE&nbsp;&nbsp;&nbsp;6          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="e76e6b40674f726f62f6c87297a1441f"></a><!-- doxytag: member="apprentice.c::NBELDATE" ref="e76e6b40674f726f62f6c87297a1441f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NBELDATE&nbsp;&nbsp;&nbsp;7          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="56ec043c57abfd56db63715243c6736a"></a><!-- doxytag: member="apprentice.c::NBELONG" ref="56ec043c57abfd56db63715243c6736a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NBELONG&nbsp;&nbsp;&nbsp;6          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="528dccdd2d79b9392746f8cccc8f082e"></a><!-- doxytag: member="apprentice.c::NBESHORT" ref="528dccdd2d79b9392746f8cccc8f082e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NBESHORT&nbsp;&nbsp;&nbsp;7          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="d66056cb26787534cbc8b1076ca85df6"></a><!-- doxytag: member="apprentice.c::NBESTRING16" ref="d66056cb26787534cbc8b1076ca85df6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NBESTRING16&nbsp;&nbsp;&nbsp;10          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="88d02d8f807d622a0f67291fefe9c227"></a><!-- doxytag: member="apprentice.c::NBYTE" ref="88d02d8f807d622a0f67291fefe9c227" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NBYTE&nbsp;&nbsp;&nbsp;4          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="e7a9e28616a28bc9e90ab6007a49fcf7"></a><!-- doxytag: member="apprentice.c::NDATE" ref="e7a9e28616a28bc9e90ab6007a49fcf7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NDATE&nbsp;&nbsp;&nbsp;4          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="89157b5c490e4977366531031606be66"></a><!-- doxytag: member="apprentice.c::NLDATE" ref="89157b5c490e4977366531031606be66" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NLDATE&nbsp;&nbsp;&nbsp;5          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="bc9a1a3b5cd5c3879759ef8278c72f94"></a><!-- doxytag: member="apprentice.c::NLEDATE" ref="bc9a1a3b5cd5c3879759ef8278c72f94" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NLEDATE&nbsp;&nbsp;&nbsp;6          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="598502acc51acb8b75448c23a9dd3aec"></a><!-- doxytag: member="apprentice.c::NLELDATE" ref="598502acc51acb8b75448c23a9dd3aec" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NLELDATE&nbsp;&nbsp;&nbsp;7          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="d14dcfd835d3a0a5f2b1bf41f92e6339"></a><!-- doxytag: member="apprentice.c::NLELONG" ref="d14dcfd835d3a0a5f2b1bf41f92e6339" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NLELONG&nbsp;&nbsp;&nbsp;6          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="b52ab8464467491dbb5f4c39b093db18"></a><!-- doxytag: member="apprentice.c::NLESHORT" ref="b52ab8464467491dbb5f4c39b093db18" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NLESHORT&nbsp;&nbsp;&nbsp;7          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="83ba5cbfa6aab63df2f0acdbd30b461b"></a><!-- doxytag: member="apprentice.c::NLESTRING16" ref="83ba5cbfa6aab63df2f0acdbd30b461b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NLESTRING16&nbsp;&nbsp;&nbsp;10          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="efbd71729941ad031030b70b95036da2"></a><!-- doxytag: member="apprentice.c::NLONG" ref="efbd71729941ad031030b70b95036da2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NLONG&nbsp;&nbsp;&nbsp;4          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="303e67b084ed5215e8ab67c92d9ccfe3"></a><!-- doxytag: member="apprentice.c::NPSTRING" ref="303e67b084ed5215e8ab67c92d9ccfe3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NPSTRING&nbsp;&nbsp;&nbsp;7          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="ad96f042fa2ac9e2ff2224f50f3f45c3"></a><!-- doxytag: member="apprentice.c::NREGEX" ref="ad96f042fa2ac9e2ff2224f50f3f45c3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NREGEX&nbsp;&nbsp;&nbsp;5          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="bd44c26a62874237d30a1059fee2dedd"></a><!-- doxytag: member="apprentice.c::NSEARCH" ref="bd44c26a62874237d30a1059fee2dedd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NSEARCH&nbsp;&nbsp;&nbsp;6          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="f7f3153d47820aa683904e16c4b9b674"></a><!-- doxytag: member="apprentice.c::NSHORT" ref="f7f3153d47820aa683904e16c4b9b674" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NSHORT&nbsp;&nbsp;&nbsp;5          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="382b7609005c0a98c6b6f050c559aee7"></a><!-- doxytag: member="apprentice.c::NSTRING" ref="382b7609005c0a98c6b6f050c559aee7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NSTRING&nbsp;&nbsp;&nbsp;6          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="c2544c8b4fe3113b0d6bb62530692c21"></a><!-- doxytag: member="apprentice.c::RET" ref="c2544c8b4fe3113b0d6bb62530692c21" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RET&nbsp;&nbsp;&nbsp;1          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l01079">apprentice_map()</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="b3b68e53a202e68fb9d7953209b29b5c"></a><!-- doxytag: member="apprentice.c::apprentice_1" ref="b3b68e53a202e68fb9d7953209b29b5c" args="(struct magic_set *ms, const char *fn, int action, struct mlist *mlist)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int apprentice_1           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic__set.html">magic_set</a> *&nbsp;</td>
          <td class="paramname"> <em>ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>fn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>action</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structmlist.html">mlist</a> *&nbsp;</td>
          <td class="paramname"> <em>mlist</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00168">168</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="apprentice_8c-source.html#l01175">apprentice_compile()</a>, <a class="el" href="apprentice_8c-source.html#l00319">apprentice_file()</a>, <a class="el" href="apprentice_8c-source.html#l01079">apprentice_map()</a>, <a class="el" href="file_8h-source.html#l00081">FILE_COMPILE</a>, <a class="el" href="apprentice_8c-source.html#l00231">file_delmagic()</a>, <a class="el" href="file_8h.html#b97a2a8e3a9e23613bcb1a49c4411919">file_error()</a>, <a class="el" href="file_8h-source.html#l00077">FILE_MAGICSIZE</a>, <a class="el" href="print_8c-source.html#l00141">file_magwarn()</a>, <a class="el" href="file_8h.html#2a6681ad1c2bb84271d99480438f9bcf">file_oomem()</a>, <a class="el" href="file_8h-source.html#l00252">magic_set::flags</a>, <a class="el" href="compress_8c-source.html#l00061">magic</a>, <a class="el" href="file_8h-source.html#l00223">mlist::mapped</a>, <a class="el" href="file_8h-source.html#l00227">mlist::next</a>, and <a class="el" href="file_8h-source.html#l00227">mlist::prev</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00254">file_apprentice()</a>.
</div>
</div><p>
<a class="anchor" name="c72b61f500e69db85423d5720e8c8d05"></a><!-- doxytag: member="apprentice.c::apprentice_compile" ref="c72b61f500e69db85423d5720e8c8d05" args="(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp, const char *fn)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int apprentice_compile           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic__set.html">magic_set</a> *&nbsp;</td>
          <td class="paramname"> <em>ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structmagic.html">magic</a> **&nbsp;</td>
          <td class="paramname"> <em>magicp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&nbsp;</td>
          <td class="paramname"> <em>nmagicp</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%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l01175">1175</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="system_8h.html#d65a8842cc674e3ddf69355898c0ecbf">errno</a>, <a class="el" href="file_8h.html#b97a2a8e3a9e23613bcb1a49c4411919">file_error()</a>, <a class="el" href="apprentice_8c-source.html#l00074">MAXPATHLEN</a>, <a class="el" href="apprentice_8c-source.html#l01217">mkdbname()</a>, and <a class="el" href="system_8h-source.html#l00178">SEEK_SET</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00168">apprentice_1()</a>.
</div>
</div><p>
<a class="anchor" name="3e97d9adddea1ab2e2af69cb57fe349d"></a><!-- doxytag: member="apprentice.c::apprentice_file" ref="3e97d9adddea1ab2e2af69cb57fe349d" args="(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp, const char *fn, int action)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int apprentice_file           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic__set.html">magic_set</a> *&nbsp;</td>
          <td class="paramname"> <em>ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structmagic.html">magic</a> **&nbsp;</td>
          <td class="paramname"> <em>magicp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&nbsp;</td>
          <td class="paramname"> <em>nmagicp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>fn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>action</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00319">319</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="system_8h.html#d65a8842cc674e3ddf69355898c0ecbf">errno</a>, <a class="el" href="file_8h-source.html#l00254">magic_set::file</a>, <a class="el" href="file_8h-source.html#l00080">FILE_CHECK</a>, <a class="el" href="file_8h.html#b97a2a8e3a9e23613bcb1a49c4411919">file_error()</a>, <a class="el" href="file_8h.html#2a6681ad1c2bb84271d99480438f9bcf">file_oomem()</a>, <a class="el" href="file_8h-source.html#l00255">magic_set::line</a>, <a class="el" href="file_8h-source.html#l00071">MAXMAGIS</a>, and <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00168">apprentice_1()</a>.
</div>
</div><p>
<a class="anchor" name="6ce05b051be3244a560b11f9c2628317"></a><!-- doxytag: member="apprentice.c::apprentice_map" ref="6ce05b051be3244a560b11f9c2628317" args="(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp, const char *fn)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int apprentice_map           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic__set.html">magic_set</a> *&nbsp;</td>
          <td class="paramname"> <em>ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structmagic.html">magic</a> **&nbsp;</td>
          <td class="paramname"> <em>magicp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&nbsp;</td>
          <td class="paramname"> <em>nmagicp</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%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l01079">1079</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="apprentice_8c-source.html#l01233">byteswap()</a>, <a class="el" href="system_8h.html#d65a8842cc674e3ddf69355898c0ecbf">errno</a>, <a class="el" href="file_8h.html#e489029528e5a368fbf15657fd940230">file_badread()</a>, <a class="el" href="file_8h.html#b97a2a8e3a9e23613bcb1a49c4411919">file_error()</a>, <a class="el" href="file_8h.html#2a6681ad1c2bb84271d99480438f9bcf">file_oomem()</a>, <a class="el" href="file_8h-source.html#l00075">MAGICNO</a>, <a class="el" href="apprentice_8c-source.html#l00066">MAP_FAILED</a>, <a class="el" href="apprentice_8c-source.html#l00070">MAP_FILE</a>, <a class="el" href="apprentice_8c-source.html#l00074">MAXPATHLEN</a>, <a class="el" href="apprentice_8c-source.html#l01217">mkdbname()</a>, <a class="el" href="apprentice_8c.html#c2544c8b4fe3113b0d6bb62530692c21">RET</a>, <a class="el" href="apprentice_8c-source.html#l01258">swap4()</a>, and <a class="el" href="file_8h-source.html#l00076">VERSIONNO</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00168">apprentice_1()</a>.
</div>
</div><p>
<a class="anchor" name="3075bee49929d6cd754945a58dc82298"></a><!-- doxytag: member="apprentice.c::bs1" ref="3075bee49929d6cd754945a58dc82298" args="(struct magic *m)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void bs1           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic.html">magic</a> *&nbsp;</td>
          <td class="paramname"> <em>m</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l01274">1274</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="file_8h-source.html#l00085">magic::cont_level</a>, <a class="el" href="file_8h-source.html#l00185">magic::in_offset</a>, <a class="el" href="apprentice_8c-source.html#l00080">IS_STRING</a>, <a class="el" href="file_8h-source.html#l00196">magic::VALUETYPE::l</a>, <a class="el" href="file_8h-source.html#l00187">magic::mask</a>, <a class="el" href="file_8h-source.html#l00183">magic::offset</a>, <a class="el" href="apprentice_8c-source.html#l01244">swap2()</a>, <a class="el" href="apprentice_8c-source.html#l01258">swap4()</a>, <a class="el" href="file_8h-source.html#l00095">magic::type</a>, and <a class="el" href="structmagic.html#22209e0ed0303f04488686dee72c4ddf">magic::value</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l01233">byteswap()</a>.
</div>
</div><p>
<a class="anchor" name="88d3a32480b07c9b7086ca17872752ff"></a><!-- doxytag: member="apprentice.c::byteswap" ref="88d3a32480b07c9b7086ca17872752ff" args="(struct magic *magic, uint32_t nmagic)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void byteswap           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic.html">magic</a> *&nbsp;</td>
          <td class="paramname"> <em>magic</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&nbsp;</td>
          <td class="paramname"> <em>nmagic</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l01233">1233</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="apprentice_8c-source.html#l01274">bs1()</a>, and <a class="el" href="compress_8c-source.html#l00061">magic</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l01079">apprentice_map()</a>.
</div>
</div><p>
<a class="anchor" name="99e5d877451dcdb0775091b501d7407b"></a><!-- doxytag: member="apprentice.c::check_format" ref="99e5d877451dcdb0775091b501d7407b" args="(struct magic_set *ms, struct magic *m)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int check_format           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic__set.html">magic_set</a> *&nbsp;</td>
          <td class="paramname"> <em>ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structmagic.html">magic</a> *&nbsp;</td>
          <td class="paramname"> <em>m</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00786">786</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="file_8h-source.html#l00207">magic::desc</a>, <a class="el" href="file_8h-source.html#l00117">FILE_FORMAT_NAME</a>, <a class="el" href="file_8h-source.html#l00143">FILE_FORMAT_STRING</a>, <a class="el" href="print_8c-source.html#l00141">file_magwarn()</a>, and <a class="el" href="file_8h-source.html#l00095">magic::type</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="e91b394bec7057a2260c779e32d47ae2"></a><!-- doxytag: member="apprentice.c::eatsize" ref="e91b394bec7057a2260c779e32d47ae2" args="(char **p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void eatsize           </td>
          <td>(</td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>p</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l01053">1053</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="apprentice_8c-source.html#l00053">LOWCASE</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00842">getvalue()</a>, and <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="8028adb76e8e80362c304c1ea8914a8f"></a><!-- doxytag: member="apprentice.c::file_apprentice" ref="8028adb76e8e80362c304c1ea8914a8f" args="(struct magic_set *ms, const char *fn, int action)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structmlist.html">mlist</a>* file_apprentice           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic__set.html">magic_set</a> *&nbsp;</td>
          <td class="paramname"> <em>ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>fn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>action</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>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00254">254</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="apprentice_8c-source.html#l00168">apprentice_1()</a>, <a class="el" href="file_8h.html#b97a2a8e3a9e23613bcb1a49c4411919">file_error()</a>, <a class="el" href="file_8h.html#2a6681ad1c2bb84271d99480438f9bcf">file_oomem()</a>, <a class="el" href="file_8h-source.html#l00252">magic_set::flags</a>, <a class="el" href="system_8h.html#bc6595dbf6880c71628fecf0dbb23d66">getenv()</a>, <a class="el" href="file_8h-source.html#l00053">MAGIC</a>, and <a class="el" href="file_8h-source.html#l00059">PATHSEP</a>.
</div>
</div><p>
<a class="anchor" name="728d8460355bf68b718d2485829f0c4d"></a><!-- doxytag: member="apprentice.c::file_delmagic" ref="728d8460355bf68b718d2485829f0c4d" args="(struct magic *p, int type, size_t entries)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void file_delmagic           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic.html">magic</a> *&nbsp;</td>
          <td class="paramname"> <em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>entries</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>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00231">231</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00168">apprentice_1()</a>.
</div>
</div><p>
<a class="anchor" name="0d5c3d2cbe9e1c4adf8ef2b26e8e2251"></a><!-- doxytag: member="apprentice.c::file_showstr" ref="0d5c3d2cbe9e1c4adf8ef2b26e8e2251" args="(FILE *fp, const char *s, size_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void file_showstr           </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">const char *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>len</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>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00997">997</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="print_8c-source.html#l00051">file_mdump()</a>, and <a class="el" href="softmagic_8c-source.html#l00629">mdebug()</a>.
</div>
</div><p>
<a class="anchor" name="e28db57fd7c1d40cd154e048ca99a075"></a><!-- doxytag: member="apprentice.c::file_signextend" ref="e28db57fd7c1d40cd154e048ca99a075" args="(struct magic_set *ms, struct magic *m, uint32_t v)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t file_signextend           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic__set.html">magic_set</a> *&nbsp;</td>
          <td class="paramname"> <em>ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structmagic.html">magic</a> *&nbsp;</td>
          <td class="paramname"> <em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&nbsp;</td>
          <td class="paramname"> <em>v</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>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00374">374</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="file_8h-source.html#l00104">FILE_BEDATE</a>, <a class="el" href="file_8h-source.html#l00110">FILE_BELDATE</a>, <a class="el" href="file_8h-source.html#l00103">FILE_BELONG</a>, <a class="el" href="file_8h-source.html#l00102">FILE_BESHORT</a>, <a class="el" href="file_8h-source.html#l00113">FILE_BESTRING16</a>, <a class="el" href="file_8h-source.html#l00097">FILE_BYTE</a>, <a class="el" href="file_8h-source.html#l00101">FILE_DATE</a>, <a class="el" href="file_8h-source.html#l00109">FILE_LDATE</a>, <a class="el" href="file_8h-source.html#l00107">FILE_LEDATE</a>, <a class="el" href="file_8h-source.html#l00111">FILE_LELDATE</a>, <a class="el" href="file_8h-source.html#l00106">FILE_LELONG</a>, <a class="el" href="file_8h-source.html#l00105">FILE_LESHORT</a>, <a class="el" href="file_8h-source.html#l00114">FILE_LESTRING16</a>, <a class="el" href="file_8h-source.html#l00099">FILE_LONG</a>, <a class="el" href="print_8c-source.html#l00141">file_magwarn()</a>, <a class="el" href="file_8h-source.html#l00108">FILE_PSTRING</a>, <a class="el" href="file_8h-source.html#l00112">FILE_REGEX</a>, <a class="el" href="file_8h-source.html#l00115">FILE_SEARCH</a>, <a class="el" href="file_8h-source.html#l00098">FILE_SHORT</a>, <a class="el" href="file_8h-source.html#l00100">FILE_STRING</a>, <a class="el" href="file_8h-source.html#l00087">magic::flag</a>, <a class="el" href="file_8h-source.html#l00252">magic_set::flags</a>, <a class="el" href="file_8h-source.html#l00095">magic::type</a>, and <a class="el" href="file_8h-source.html#l00089">UNSIGNED</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00842">getvalue()</a>, <a class="el" href="softmagic_8c-source.html#l00267">mprint()</a>, <a class="el" href="softmagic_8c-source.html#l01177">mymcheck()</a>, and <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="370ceb128975b2f51f463b2c61aeb8ae"></a><!-- doxytag: member="apprentice.c::getstr" ref="370ceb128975b2f51f463b2c61aeb8ae" args="(struct magic_set *ms, char *s, char *p, int plen, int *slen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static char * getstr           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic__set.html">magic_set</a> *&nbsp;</td>
          <td class="paramname"> <em>ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>plen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>slen</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00879">879</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="file_8h.html#b97a2a8e3a9e23613bcb1a49c4411919">file_error()</a>, and <a class="el" href="apprentice_8c-source.html#l00979">hextoint()</a>.
</div>
</div><p>
<a class="anchor" name="69f31de58cf8369e559a5f0819083373"></a><!-- doxytag: member="apprentice.c::getvalue" ref="69f31de58cf8369e559a5f0819083373" args="(struct magic_set *ms, struct magic *m, char **p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int getvalue           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic__set.html">magic_set</a> *&nbsp;</td>
          <td class="paramname"> <em>ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structmagic.html">magic</a> *&nbsp;</td>
          <td class="paramname"> <em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>p</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00842">842</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="apprentice_8c-source.html#l01053">eatsize()</a>, <a class="el" href="file_8h-source.html#l00113">FILE_BESTRING16</a>, <a class="el" href="file_8h-source.html#l00114">FILE_LESTRING16</a>, <a class="el" href="print_8c-source.html#l00141">file_magwarn()</a>, <a class="el" href="file_8h-source.html#l00108">FILE_PSTRING</a>, <a class="el" href="file_8h-source.html#l00112">FILE_REGEX</a>, <a class="el" href="file_8h-source.html#l00115">FILE_SEARCH</a>, <a class="el" href="apprentice_8c-source.html#l00374">file_signextend()</a>, <a class="el" href="file_8h-source.html#l00100">FILE_STRING</a>, <a class="el" href="file_8h-source.html#l00252">magic_set::flags</a>, <a class="el" href="lobject_8h-source.html#l00191">getstr</a>, <a class="el" href="file_8h-source.html#l00196">magic::VALUETYPE::l</a>, <a class="el" href="file_8h-source.html#l00093">magic::reln</a>, <a class="el" href="file_8h-source.html#l00197">magic::VALUETYPE::s</a>, <a class="el" href="file_8h-source.html#l00328">strtoul</a>, <a class="el" href="file_8h-source.html#l00095">magic::type</a>, <a class="el" href="file_8h-source.html#l00094">magic::vallen</a>, and <a class="el" href="structmagic.html#22209e0ed0303f04488686dee72c4ddf">magic::value</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00422">parse()</a>.
</div>
</div><p>
<a class="anchor" name="4e4a725944171049e901ed0ba5d99ffd"></a><!-- doxytag: member="apprentice.c::hextoint" ref="4e4a725944171049e901ed0ba5d99ffd" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int hextoint           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00979">979</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00879">getstr()</a>.
</div>
</div><p>
<a class="anchor" name="2da87acbfe61481277dbc47331785e2d"></a><!-- doxytag: member="apprentice.c::mkdbname" ref="2da87acbfe61481277dbc47331785e2d" args="(const char *fn, char *buf, size_t, int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static char * mkdbname           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>fn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l01217">1217</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="rpmps_8c-source.html#l00182">snprintf()</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l01175">apprentice_compile()</a>, and <a class="el" href="apprentice_8c-source.html#l01079">apprentice_map()</a>.
</div>
</div><p>
<a class="anchor" name="5fafd6ab7470644d1ebb2594a2058e81"></a><!-- doxytag: member="apprentice.c::parse" ref="5fafd6ab7470644d1ebb2594a2058e81" args="(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp, char *l, int action)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int parse           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structmagic__set.html">magic_set</a> *&nbsp;</td>
          <td class="paramname"> <em>ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structmagic.html">magic</a> **&nbsp;</td>
          <td class="paramname"> <em>magicp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&nbsp;</td>
          <td class="paramname"> <em>nmagicp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>l</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>action</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00422">422</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
References <a class="el" href="apprentice_8c.html#56642880a90f8df2767f09219b7affb0">ALLOC_INCR</a>, <a class="el" href="file_8h-source.html#l00215">CHAR_COMPACT_BLANK</a>, <a class="el" href="file_8h-source.html#l00216">CHAR_COMPACT_OPTIONAL_BLANK</a>, <a class="el" href="file_8h-source.html#l00214">CHAR_IGNORE_LOWERCASE</a>, <a class="el" href="apprentice_8c-source.html#l00786">check_format()</a>, <a class="el" href="file_8h-source.html#l00085">magic::cont_level</a>, <a class="el" href="file_8h-source.html#l00207">magic::desc</a>, <a class="el" href="apprentice_8c-source.html#l00051">EATAB</a>, <a class="el" href="apprentice_8c-source.html#l01053">eatsize()</a>, <a class="el" href="file_8h-source.html#l00104">FILE_BEDATE</a>, <a class="el" href="file_8h-source.html#l00110">FILE_BELDATE</a>, <a class="el" href="file_8h-source.html#l00103">FILE_BELONG</a>, <a class="el" href="file_8h-source.html#l00102">FILE_BESHORT</a>, <a class="el" href="file_8h-source.html#l00113">FILE_BESTRING16</a>, <a class="el" href="file_8h-source.html#l00097">FILE_BYTE</a>, <a class="el" href="file_8h-source.html#l00080">FILE_CHECK</a>, <a class="el" href="file_8h-source.html#l00101">FILE_DATE</a>, <a class="el" href="file_8h-source.html#l00109">FILE_LDATE</a>, <a class="el" href="file_8h-source.html#l00107">FILE_LEDATE</a>, <a class="el" href="file_8h-source.html#l00111">FILE_LELDATE</a>, <a class="el" href="file_8h-source.html#l00106">FILE_LELONG</a>, <a class="el" href="file_8h-source.html#l00105">FILE_LESHORT</a>, <a class="el" href="file_8h-source.html#l00114">FILE_LESTRING16</a>, <a class="el" href="file_8h-source.html#l00099">FILE_LONG</a>, <a class="el" href="print_8c-source.html#l00141">file_magwarn()</a>, <a class="el" href="print_8c-source.html#l00051">file_mdump()</a>, <a class="el" href="file_8h.html#2a6681ad1c2bb84271d99480438f9bcf">file_oomem()</a>, <a class="el" href="file_8h-source.html#l00175">FILE_OPADD</a>, <a class="el" href="file_8h-source.html#l00172">FILE_OPAND</a>, <a class="el" href="file_8h-source.html#l00178">FILE_OPDIVIDE</a>, <a class="el" href="file_8h-source.html#l00181">FILE_OPINDIRECT</a>, <a class="el" href="file_8h-source.html#l00180">FILE_OPINVERSE</a>, <a class="el" href="file_8h-source.html#l00176">FILE_OPMINUS</a>, <a class="el" href="file_8h-source.html#l00179">FILE_OPMODULO</a>, <a class="el" href="file_8h-source.html#l00177">FILE_OPMULTIPLY</a>, <a class="el" href="file_8h-source.html#l00173">FILE_OPOR</a>, <a class="el" href="file_8h-source.html#l00171">FILE_OPS</a>, <a class="el" href="file_8h-source.html#l00174">FILE_OPXOR</a>, <a class="el" href="file_8h-source.html#l00108">FILE_PSTRING</a>, <a class="el" href="file_8h-source.html#l00112">FILE_REGEX</a>, <a class="el" href="file_8h-source.html#l00115">FILE_SEARCH</a>, <a class="el" href="file_8h-source.html#l00098">FILE_SHORT</a>, <a class="el" href="apprentice_8c-source.html#l00374">file_signextend()</a>, <a class="el" href="file_8h-source.html#l00100">FILE_STRING</a>, <a class="el" href="file_8h-source.html#l00087">magic::flag</a>, <a class="el" href="file_8h-source.html#l00252">magic_set::flags</a>, <a class="el" href="apprentice_8c-source.html#l00842">getvalue()</a>, <a class="el" href="file_8h-source.html#l00185">magic::in_offset</a>, <a class="el" href="file_8h-source.html#l00167">magic::in_op</a>, <a class="el" href="file_8h-source.html#l00096">magic::in_type</a>, <a class="el" href="file_8h-source.html#l00088">INDIR</a>, <a class="el" href="file_8h-source.html#l00091">INDIROFFADD</a>, <a class="el" href="apprentice_8c-source.html#l00077">IS_PLAINSTRING</a>, <a class="el" href="apprentice_8c-source.html#l00080">IS_STRING</a>, <a class="el" href="file_8h-source.html#l00187">magic::mask</a>, <a class="el" href="file_8h-source.html#l00168">magic::mask_op</a>, <a class="el" href="file_8h-source.html#l00072">MAXDESC</a>, <a class="el" href="apprentice_8c.html#9a5f47e720cb9b80a33de2fec2fb8891">NBEDATE</a>, <a class="el" href="apprentice_8c.html#e76e6b40674f726f62f6c87297a1441f">NBELDATE</a>, <a class="el" href="apprentice_8c.html#56ec043c57abfd56db63715243c6736a">NBELONG</a>, <a class="el" href="apprentice_8c.html#528dccdd2d79b9392746f8cccc8f082e">NBESHORT</a>, <a class="el" href="apprentice_8c.html#d66056cb26787534cbc8b1076ca85df6">NBESTRING16</a>, <a class="el" href="apprentice_8c.html#88d02d8f807d622a0f67291fefe9c227">NBYTE</a>, <a class="el" href="apprentice_8c.html#e7a9e28616a28bc9e90ab6007a49fcf7">NDATE</a>, <a class="el" href="apprentice_8c.html#89157b5c490e4977366531031606be66">NLDATE</a>, <a class="el" href="apprentice_8c.html#bc9a1a3b5cd5c3879759ef8278c72f94">NLEDATE</a>, <a class="el" href="apprentice_8c.html#598502acc51acb8b75448c23a9dd3aec">NLELDATE</a>, <a class="el" href="apprentice_8c.html#d14dcfd835d3a0a5f2b1bf41f92e6339">NLELONG</a>, <a class="el" href="apprentice_8c.html#b52ab8464467491dbb5f4c39b093db18">NLESHORT</a>, <a class="el" href="apprentice_8c.html#83ba5cbfa6aab63df2f0acdbd30b461b">NLESTRING16</a>, <a class="el" href="apprentice_8c.html#efbd71729941ad031030b70b95036da2">NLONG</a>, <a class="el" href="file_8h-source.html#l00086">magic::nospflag</a>, <a class="el" href="apprentice_8c.html#303e67b084ed5215e8ab67c92d9ccfe3">NPSTRING</a>, <a class="el" href="apprentice_8c.html#ad96f042fa2ac9e2ff2224f50f3f45c3">NREGEX</a>, <a class="el" href="apprentice_8c.html#bd44c26a62874237d30a1059fee2dedd">NSEARCH</a>, <a class="el" href="apprentice_8c.html#f7f3153d47820aa683904e16c4b9b674">NSHORT</a>, <a class="el" href="apprentice_8c.html#382b7609005c0a98c6b6f050c559aee7">NSTRING</a>, <a class="el" href="file_8h-source.html#l00090">OFFADD</a>, <a class="el" href="file_8h-source.html#l00183">magic::offset</a>, <a class="el" href="file_8h-source.html#l00093">magic::reln</a>, <a class="el" href="file_8h-source.html#l00212">STRING_COMPACT_BLANK</a>, <a class="el" href="file_8h-source.html#l00213">STRING_COMPACT_OPTIONAL_BLANK</a>, <a class="el" href="file_8h-source.html#l00211">STRING_IGNORE_LOWERCASE</a>, <a class="el" href="file_8h-source.html#l00328">strtoul</a>, <a class="el" href="file_8h-source.html#l00095">magic::type</a>, and <a class="el" href="file_8h-source.html#l00089">UNSIGNED</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l00319">apprentice_file()</a>.
</div>
</div><p>
<a class="anchor" name="d3e2f9b6d2324a17d1d4a526b01dbf40"></a><!-- doxytag: member="apprentice.c::rcsid" ref="d3e2f9b6d2324a17d1d4a526b01dbf40" args="(const char *p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const char* rcsid           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>p</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00048">48</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
</div>
</div><p>
<a class="anchor" name="cf2437870e281b5a8f56ea5a481794b4"></a><!-- doxytag: member="apprentice.c::swap2" ref="cf2437870e281b5a8f56ea5a481794b4" args="(uint16_t sv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static uint16_t swap2           </td>
          <td>(</td>
          <td class="paramtype">uint16_t&nbsp;</td>
          <td class="paramname"> <em>sv</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l01244">1244</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l01274">bs1()</a>.
</div>
</div><p>
<a class="anchor" name="a8650b65e7f5f66487363fc6e75b0c46"></a><!-- doxytag: member="apprentice.c::swap4" ref="a8650b65e7f5f66487363fc6e75b0c46" args="(uint32_t sv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t swap4           </td>
          <td>(</td>
          <td class="paramtype">uint32_t&nbsp;</td>
          <td class="paramname"> <em>sv</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l01258">1258</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="apprentice_8c-source.html#l01079">apprentice_map()</a>, and <a class="el" href="apprentice_8c-source.html#l01274">bs1()</a>.
</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="c8d4c174ba04ae1893f41661ba9eedb7"></a><!-- doxytag: member="apprentice.c::ar" ref="c8d4c174ba04ae1893f41661ba9eedb7" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint32_t <a class="el" href="apprentice_8c.html#c8d4c174ba04ae1893f41661ba9eedb7">ar</a>[]<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<b>Initial value:</b><div class="fragment"><pre class="fragment"> {
     0xF11E041C ,  2 
}
</pre></div>
<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l01168">1168</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="files_8c-source.html#l00175">freeAttrRec()</a>, <a class="el" href="ldo_8c-source.html#l00165">luaD_callhook()</a>, <a class="el" href="files_8c-source.html#l00163">nullAttrRec()</a>, and <a class="el" href="files_8c-source.html#l00526">parseForAttr()</a>.
</div>
</div><p>
<a class="anchor" name="1ff9fc08fcad69d86fcb200d40da8aac"></a><!-- doxytag: member="apprentice.c::ext" ref="1ff9fc08fcad69d86fcb200d40da8aac" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char <a class="el" href="apprentice_8c.html#1ff9fc08fcad69d86fcb200d40da8aac">ext</a>[] = &quot;.mgc&quot;<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l01212">1212</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
<p>
Referenced by <a class="el" href="header_8c-source.html#l02566">findTag()</a>, <a class="el" href="header-py_8c-source.html#l00456">hdr_subscript()</a>, <a class="el" href="rpmmodule_8c-source.html#l00262">init_rpm()</a>, <a class="el" href="query_8c-source.html#l00353">rpmDisplayQueryTags()</a>, <a class="el" href="header_8c-source.html#l03414">rpmecFree()</a>, and <a class="el" href="header_8c-source.html#l03390">rpmecNew()</a>.
</div>
</div><p>
<a class="anchor" name="57fe3492b7e4c8d37c950f803e4ca47a"></a><!-- doxytag: member="apprentice.c::magicsize" ref="57fe3492b7e4c8d37c950f803e4ca47a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="apprentice_8c.html#57fe3492b7e4c8d37c950f803e4ca47a">magicsize</a> = sizeof(struct <a class="el" href="structmagic.html">magic</a>)<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00086">86</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</a>.
</div>
</div><p>
<a class="anchor" name="69408b218c67e99c480eda93545b4539"></a><!-- doxytag: member="apprentice.c::maxmagic" ref="69408b218c67e99c480eda93545b4539" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="apprentice_8c.html#69408b218c67e99c480eda93545b4539">maxmagic</a> = 0<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="apprentice_8c-source.html#l00084">84</a> of file <a class="el" href="apprentice_8c-source.html">apprentice.c</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>