[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: More thoughts on Lua 5.2
- From: Duck <duck@...>
- Date: Fri, 22 Feb 2008 22:44:59 +1100 (EST)
Er, shouldn't the C library be able to handle
large files using FILE?
Depends. fseek() takes a long (i.e. a signed long) as the file offset, so
if long is 32-bits then you can't get past 2GB-1.
Anyway, a default build of Lua on my 32-bit Linux has a 2GB-1 size limit
on files it can process. (My QEMU virtual machine disk images are often
bigger than that.)