Phobos Patch - Version (X86_64) for struct_stat64 on Linux x86_64

Jason House jason.james.house at gmail.com
Tue Dec 28 20:23:34 PST 2010


Chuck Blake Wrote:

> Hi.  I realize that 64-bit phobos is relatively work in progress.  I thought
> I'd contribute.  struct_stat64 is broken on Linux x86_64 which further breaks
> an awful lot of file IO.
> 
> I have a small patch that fixes it by just adding a version fork for X86_64 in
> the default fallback version{} (which should perhaps be labeled Linux since
> all this stat stuff is *awfully* specific and brittle).  Anyway, I tested this
> with gdc 2.051 within gcc-4.5.2, with an attached stat.d program and comparing
> its output to the 'stat' utility.  This fix is so basic and logic-free that I
> seriously doubt environmental considerations matter, and in any event it is an
> unhandled version{}.
> 
> This doesn't completely fix file IO, but it at least gives it a running
> chance.  I can std.file.read() files under 8MB, for example. :)  I posted this
> on Digitalmars.D.bugs which I apparently misinterpreted as the place to report
> bugs and fixes.

The correct place is bugzilla http://d.puremagic.com/issues/


More information about the Digitalmars-d mailing list