title: Calling stat from <sys/stat.h> faills with "Value too large for defined data type" error
body: <p>Given tmp.c:</p>
  
  <pre><code>#include &lt;sys/stat.h&gt;
  #include &lt;errno.h&gt;
  #include &lt;stdio.h&gt;
  
  int main(int argc, const char *argv[])
  {
      struct stat st;
      if (stat(argv[1], &amp;st) != 0)
      {
          perror("Error calling stat");
      }
  
      return 0;
  }
  </code></pre>
  
  <p>I get <code>Error calling stat: Value too large for defined data type</code>, when I run the program on a large file (~2.5 Gb).</p>