Bug 2014 – fopen fails on large files

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-04-19T13:43:00Z
Last change time
2015-06-09T01:31:19Z
Assigned to
andrei
Creator
andrei

Comments

Comment #0 by andrei — 2008-04-19T13:43:10Z
fopen fails of files larger than 2^31 bytes on 32-bit Linux systems. This is a known issue in the gnu library, which offers fopen64 as a fix. See http://www.gnu.org/software/libtool/manual/libc/Opening-Streams.html. I think I will simply have phobos' fopen forward to fopen64 on linux. Are there any reasons for not doing so?
Comment #1 by bugzilla — 2008-05-22T04:58:46Z
Fixed dmd 2.014