Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > fffee38c4ecefcfc897550b36364b55a > files > 309

dmlite-docs-0.6.1-1.fc18.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>dmlite: include/dmlite/common/errno.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">dmlite
   &#160;<span id="projectnumber">0.6</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_c6836824bdef15bafab59627cccf2d55.html">dmlite</a></li><li class="navelem"><a class="el" href="dir_df7e20e5047a648cc9b5db0822d256c9.html">common</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">errno.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="errno_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/** @file   include/dmlite/common/errno.h</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *  @brief  Error codes.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *  @author Alejandro Álvarez Ayllon &lt;aalvarez@cern.ch&gt;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#ifndef DMLITE_COMMON_ERRNO_H</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_COMMON_ERRNO_H</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">/* For easy of use, some error codes are reused for lower bytes.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Plugins may use error codes from these headers ORing the type byte</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * (i.e. DMLITE_SYSTEM_ERROR | EDQUOT), even though there are no macros</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * for all of them.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="errno_8h.html" title="Error codes.">errno.h</a>&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="code" href="errno_8h.html#a9a4fcddbe7779d45cc6356e5ec6b1757">   15</a></span>&#160;<span class="preprocessor">#define DMLITE_SUCCESS 0</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">/* Error codes need to be stored in an integer type</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * of at least 4 bytes.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * Highest byte categorizes the error type */</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="code" href="errno_8h.html#ad77a6530a9375896dc78fe70b11d625d">   20</a></span>&#160;<span class="preprocessor">#define DMLITE_USER_ERROR          0x00000000</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="code" href="errno_8h.html#a55b4d68494ecd32fd38bff6d1067ea0f">   21</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_SYSTEM_ERROR        0x01000000</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="code" href="errno_8h.html#a5a72bd100b1d240dbdfb5df32123385f">   22</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_CONFIGURATION_ERROR 0x02000000</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="code" href="errno_8h.html#a21dbfbe69cbb970e0b2fcd8e0fba14a4">   23</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_DATABASE_ERROR      0x03000000</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">/* Macros to extract error type and errno*/</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="code" href="errno_8h.html#a477468a158bcb3c49b52ee0cd2890394">   26</a></span>&#160;<span class="preprocessor">#define DMLITE_ETYPE(e) ((e) &amp; 0xFF000000)</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="code" href="errno_8h.html#a15ffe8aa10e134dffda3f14e5167070d">   27</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_ERRNO(e) ((e) &amp; 0x00FFFFFF)</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">/* Macros to generate a dmlite-like error code from POSIX error code</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> * Pass user errors directly as the POSIX value (or dmlite additional error codes)</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="errno_8h.html#a0b23986312e864a2b55103a7d2272c38">   32</a></span>&#160;<span class="preprocessor">#define DMLITE_SYSERR(e) ((e) | DMLITE_SYSTEM_ERROR)</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="errno_8h.html#a31cb4e78833fd83ae7dfc26436f2d5f0">   33</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_CFGERR(e) ((e) | DMLITE_CONFIGURATION_ERROR)</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="errno_8h.html#a8bd2eed08db47787f062c43a202d51aa">   34</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_FCTERR(e) ((e) | DMLITE_FACTORY_ERROR)</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="errno_8h.html#a65551798736d53fb87e551c1d1887ebc">   35</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_DBERR(e)  ((e) | DMLITE_DATABASE_ERROR)</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">/* Aditional error codes */</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="code" href="errno_8h.html#a0130dad002132e87bc5545df148fb899">   39</a></span>&#160;<span class="preprocessor">#define DMLITE_UNKNOWN_ERROR          256</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="errno_8h.html#adeffe5a344f833c7ef733e6776d6bf01">   40</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_UNEXPECTED_EXCEPTION   257</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="errno_8h.html#a6e3978dd82065b3de13b6adae1906bf7">   41</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_INTERNAL_ERROR         258</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor"></span><span class="comment">/* 259 - 269 reserved for future use */</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="errno_8h.html#a3400bff60e74aa9aa1d415fabdbaa472">   43</a></span>&#160;<span class="preprocessor">#define DMLITE_NO_SUCH_SYMBOL         270</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="errno_8h.html#a8ebc0a53995d3272a6e93a510affdf56">   44</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_API_VERSION_MISMATCH   271</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="errno_8h.html#a4043bc2d76055454441f6ad177b7b3bb">   45</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_NO_POOL_MANAGER        272</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="errno_8h.html#ac2b0a17c716b37b6c038218abbbc88ac">   46</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_NO_CATALOG             273</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="errno_8h.html#a4f854a2e9b7eabf2a6229a737f533a1e">   47</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_NO_INODE               274</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="errno_8h.html#a9d1d63bf06e0c9349b063cb402561b61">   48</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_NO_AUTHN               275</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="errno_8h.html#a875c61d3a67a0b93e8bed1cda188036f">   49</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_NO_IO                  276</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor"></span><span class="comment">/* 278 - 299 reserved for future use */</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="errno_8h.html#a75e5c2e7827bdbadd153e9c17cd84b11">   51</a></span>&#160;<span class="preprocessor">#define DMLITE_NO_SECURITY_CONTEXT    300</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="errno_8h.html#a1fc287818b04d69ec36cbdc066e74dfd">   52</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_EMPTY_SECURITY_CONTEXT 301</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor"></span><span class="comment">/* 302 - 349 reserved for future use */</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="errno_8h.html#a529ef28717cd57363c36d0df48bda868">   54</a></span>&#160;<span class="preprocessor">#define DMLITE_MALFORMED              350</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="code" href="errno_8h.html#afdde7b3e115b4b4aa645d60107d6d5c3">   55</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_UNKNOWN_KEY            351</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor"></span><span class="comment">/* 353 - 399 reserved for future use */</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="code" href="errno_8h.html#aa64d9e0c07ca676d8c8c5f9082201665">   57</a></span>&#160;<span class="preprocessor">#define DMLITE_NO_COMMENT             400</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="errno_8h.html#abea2ea6e57c8e868b70c8e4c8e64a597">   58</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_NO_REPLICAS            401</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="code" href="errno_8h.html#a30a437dde868cc8415284ed13504cf01">   59</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_NO_SUCH_REPLICA        402</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor"></span><span class="comment">/* 403 - 499 reserved for future use */</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="errno_8h.html#aa19c2392b7c2f7ada8422682d259d579">   61</a></span>&#160;<span class="preprocessor">#define DMLITE_NO_USER_MAPPING        500</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="errno_8h.html#aae277ef992096c58e5e166f30955aec5">   62</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_NO_SUCH_USER           501</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="errno_8h.html#a8b92e27487a9974ad0f90ac8a886bf58">   63</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_NO_SUCH_GROUP          502</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="code" href="errno_8h.html#a206a1e1fb19e3637c78dc034612e6517">   64</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_INVALID_ACL            504</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor"></span><span class="comment">/* 505 - 599 reserved for future use */</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="code" href="errno_8h.html#a58ca3ff9a70b112721d6906d3854ff6e">   66</a></span>&#160;<span class="preprocessor">#define DMLITE_UNKNOWN_POOL_TYPE      600</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="errno_8h.html#ae5af1cfb3bcd354ba7102289492070e7">   67</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DMLITE_NO_SUCH_POOL           601</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* DMLITE_COMMON_ERRNO_H */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Jul 12 2013 07:34:22 for dmlite by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>