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. begin 644 stat64_x86_64.patch M(R!(1R!C:&%N9V5S970@<&%...@*(R!5<V5R(&-B0&UI="YE9'4*(R!$871E
This is great. Could you simply email me the files, please?
