[Issue 3298] std.file.read on OSX: "Memory allocation failed"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 3 17:28:36 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3298
--- Comment #1 from Michel Fortin <michel.fortin at michelf.com> 2009-09-03 17:28:35 PDT ---
It looks like using this struct definition for "struct_stat64" on OSX fixes the
problem.
struct struct_stat64 // distinguish it from the stat() function
{
uint st_dev; /// device
ushort st_mode;
ushort st_nlink; /// link count
ulong st_ino; /// file serial number
uint st_uid; /// user ID of file's owner
uint st_gid; /// user ID of group's owner
uint st_rdev; /// if device then device number
int st_atime;
uint st_atimensec;
int st_mtime;
uint st_mtimensec;
int st_ctime;
uint st_ctimensec;
int st_birthtime;
uint st_birthtimensec;
ulong st_size;
long st_blocks; /// number of allocated 512 byte blocks
int st_blksize; /// optimal I/O block size
ulong st_ino64;
uint st_flags;
uint st_gen;
int st_lspare; /* RESERVED: DO NOT USE! */
long st_qspare[2]; /* RESERVED: DO NOT USE! */
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list