Fix fs can't handle large file on 64bit platform
authorkoichik <koichik@improvement.jp>
Fri, 8 Jul 2011 15:57:57 +0000 (00:57 +0900)
committerkoichik <koichik@improvement.jp>
Wed, 13 Jul 2011 17:52:54 +0000 (02:52 +0900)
commita3e3ad40b1f34adcf4c039adb370da2e87cf5b5d
treeb9af70a2d3d2a766fc31d671e257cc3063705565
parent92057554d59e9875407fa944c73eb93354418a02
Fix fs can't handle large file on 64bit platform

fs.read() and fs.write() can't handle more than 2GB files on 64bit platform.
Also fs.truncate() can't handle more than 4GB files.

Fixes #1199.
Fixes #1094.
src/node_file.cc
test/disabled/test-fs-largefile.js [new file with mode: 0644]