title: Why a mismatch between errno 34 and code ENOENT
body: <p>So if I run this simple call in node.js v0.6.7 on OS X 10.6.8 with a bogus path, I get an error, as expected.</p>
  
  <pre><code>var fs = require("fs");
  fs.stat("/tmp/foo", function(error, stat) {
      return console.log(error);
  });
  </code></pre>
  
  <p>It prints this output:</p>
  
  <pre><code>{ [Error: ENOENT, no such file or directory '/tmp/foo'] errno: 34, code: 'ENOENT', path: '/tmp/foo' }
  </code></pre>
  
  <p>My question is, according to <code>/usr/include/sys/errno.h</code> on my system, <code>ENOENT</code> should have code 2, so why is this error saying errno <code>34</code> (ERANGE in errno.h), but pairing it with the error message from <code>ENOENT</code>?</p>