stat(2) can return EOVERFLOW
[CC += linux-man@]
Hi Andre,
Thanks for the bug report.
Quoted 4 lines · Andre Majorel
Michael,
On my system, stat(2) can return EOVERFLOW when stat'ing a file larger than 4 (or 2 ?) GB.
2!
Quoted 2 lines
The ERRORS section of stat(2) does not
mention EOVERFLOW.
I made the change below, for man-pages-3.15.
Thanks,
Michael
man2/stat.2 +13 -0
@@ -319,6 +319,19 @@ Out of memory (i.e., kernel memory). .TP .B ENOTDIR A component of the path is not a directory. +.TP +.B EOVERFLOW +.RB ( stat ()) +.I path +refers to a file whose size cannot be represented in the type +.IR off_t . +This can occur when an application compiled on a 32-bit platform without +.I -D_FILE_OFF_SET_BITS=64 +calls +.BR stat () +on a file whose size exceeds +.I (2<<31)-1 +bits. .SH "CONFORMING TO" These system calls conform to SVr4, 4.3BSD, POSIX.1-2001. .\" SVr4 documents additional
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Michael,
man2/stat.2 Out of memory (i.e., kernel memory). · line 334
Quoted 7 lines
man2/stat.2 +7
-0+This can occur when an application compiled on a 32-bit platform without +.I -D_FILE_OFF_SET_BITS=64 +calls +.BR stat () +on a file whose size exceeds +.I (2<<31)-1 +bits.
That should be _FILE_OFFSET_BITS. :-)
Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Chris "ク" Heath
Michael,
man2/stat.2 Out of memory (i.e., kernel memory). · line 334
Quoted 7 lines
man2/stat.2 +7
-0+This can occur when an application compiled on a 32-bit platform without +.I -D_FILE_OFF_SET_BITS=64 +calls +.BR stat () +on a file whose size exceeds +.I (2<<31)-1 +bits.That should be
_FILE_OFFSET_BITS. :-)
Thanks Chris!
Signature · 9 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html