[Issue 1105] New: std.c.linux.linux.stat fails for files > 2GB
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 6 10:38:35 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1105
Summary: std.c.linux.linux.stat fails for files > 2GB
Product: D
Version: 1.010
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: Alexander.Blum at gmail.com
While trying to use listdir (combined with isdir) on a folder containing files
> 2GB I ran into a "Value too large for defined data type" FileException.
Further inspection showed that a call to std.c.linux.linux.stat returns -1 on
files > 2GB. I found that st_size is of type int in struct_stat.
Testfall:
dd if=/dev/zero of=/tmp/test.dat bs=100MB count=22
error.d:
import std.file;
void main(char[][] args)
{
isdir ("/tmp/test.dat");
}
--
More information about the Digitalmars-d-bugs
mailing list