Skip to contentSkip to conversation

stat(2) can return EOVERFLOW

DISCUSSION Michael Kerrisk 2 participants 3 messages Dec 4, 2008 4 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20081204155355.GI16402-956IwFboN44acnK+F/[email protected]

#2 lore raw

[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

A message that is not in the archive (sent off-list or not yet received): cfd18e0f0812041052v113510bbg389e8167758d1947-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw

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

A message that is not in the archive (sent off-list or not yet received): 1228419679.22091.58.camel-DBi1IKlRe8YXiSwHZUBl+UgmxNRb6L7S@public.gmane.org

#6 lore raw
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