title: errno failure with rename RTEMS
body: <p>I am using the <strong><em><a href="https://docs.rtems.org/releases/rtemsdocs-4.9.2/share/rtems/html/posix_users/posix_users00105.html" rel="nofollow">rename</a></em></strong> function with <code>RTEMS</code> to attempt to rename files. I am setting up a correct error handling and reporting system when i discovered that <code>RTEMS</code> does not seem to be conforming to its own <em>errno</em> reporting guide.  </p>
  
  <p>So the function in failure will always return -1. The current example is in a directory <code>&lt;/D\&gt;</code> where i have the following:</p>
  
  <pre><code> &lt;/D\LALALA&gt;
   &lt;/D\LALALA_2&gt;
   &lt;/D\OTHER_DIRECTORY&gt;
  </code></pre>
  
  <p>I call <code>rename("LALALA_1", "LALALA_2")</code> which works correctly and the folder is renamed. So i know the function works. If i call <code>rename("LALALA", "LALALA_2")</code>, it fails returning -1... which is great, but instead of <code>EEXIST</code> i get <code>errno == -1</code>.</p>