Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Issue 63363010: Add support for working with large files, in dart:io. (Closed)

Created:
7 years, 1 month ago by Anders Johnsen
Modified:
7 years, 1 month ago
Reviewers:
zra, Søren Gjesse
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add support for working with large files on unix systems, in dart:io. BUG= R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=30399

Patch Set 1 #

Total comments: 12

Patch Set 2 : Add windows impl as well. #

Patch Set 3 : #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -167 lines) Patch
M runtime/bin/directory_android.cc View 6 chunks +11 lines, -11 lines 0 comments Download
M runtime/bin/directory_linux.cc View 5 chunks +12 lines, -12 lines 0 comments Download
M runtime/bin/directory_macos.cc View 5 chunks +9 lines, -9 lines 0 comments Download
M runtime/bin/file.h View 2 chunks +5 lines, -5 lines 0 comments Download
M runtime/bin/file.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M runtime/bin/file_android.cc View 1 2 14 chunks +36 lines, -34 lines 6 comments Download
M runtime/bin/file_linux.cc View 1 14 chunks +36 lines, -34 lines 0 comments Download
M runtime/bin/file_macos.cc View 1 2 13 chunks +34 lines, -34 lines 0 comments Download
M runtime/bin/file_win.cc View 1 2 6 chunks +17 lines, -17 lines 0 comments Download
M runtime/bin/socket_android.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/socket_linux.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/socket_macos.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/platform/inttypes_support_win.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Anders Johnsen
7 years, 1 month ago (2013-11-19 09:56:07 UTC) #1
Søren Gjesse
LGTM for POSIX. https://codereview.chromium.org/63363010/diff/1/runtime/bin/bin.gypi File runtime/bin/bin.gypi (right): https://codereview.chromium.org/63363010/diff/1/runtime/bin/bin.gypi#newcode128 runtime/bin/bin.gypi:128: '-D_FILE_OFFSET_BITS=64', Does Windows use this as ...
7 years, 1 month ago (2013-11-19 10:15:49 UTC) #2
Anders Johnsen
https://codereview.chromium.org/63363010/diff/1/runtime/bin/bin.gypi File runtime/bin/bin.gypi (right): https://codereview.chromium.org/63363010/diff/1/runtime/bin/bin.gypi#newcode128 runtime/bin/bin.gypi:128: '-D_FILE_OFFSET_BITS=64', On 2013/11/19 10:15:49, Søren Gjesse wrote: > Does ...
7 years, 1 month ago (2013-11-19 10:43:39 UTC) #3
Søren Gjesse
LGTM!
7 years, 1 month ago (2013-11-19 11:36:41 UTC) #4
Anders Johnsen
7 years, 1 month ago (2013-11-19 11:38:10 UTC) #5
Anders Johnsen
Committed patchset #3 manually as r30399 (presubmit successful).
7 years, 1 month ago (2013-11-19 11:38:59 UTC) #6
zra
I recommend reverting the Android changes, checking the NDK headers, and reapplying. Thanks! Zach https://codereview.chromium.org/63363010/diff/170001/runtime/bin/file_android.cc ...
7 years, 1 month ago (2013-11-19 16:10:17 UTC) #7
Anders Johnsen
7 years, 1 month ago (2013-11-19 16:23:40 UTC) #8
Message was sent while issue was closed.
Fixes underway in https://codereview.chromium.org/76413003/.

https://codereview.chromium.org/63363010/diff/170001/runtime/bin/file_android.cc
File runtime/bin/file_android.cc (right):

https://codereview.chromium.org/63363010/diff/170001/runtime/bin/file_android...
runtime/bin/file_android.cc:91: return
TEMP_FAILURE_RETRY(ftruncate64(handle_->fd(), length) != -1);
On 2013/11/19 16:10:17, zra wrote:
> This change is causing a build failure on Android.

Done.

https://codereview.chromium.org/63363010/diff/170001/runtime/bin/file_android...
runtime/bin/file_android.cc:128: int fd = TEMP_FAILURE_RETRY(open64(name, flags,
0666));
On 2013/11/19 16:10:17, zra wrote:
> This change is causing a build failure on Android.

Done.

https://codereview.chromium.org/63363010/diff/170001/runtime/bin/file_android...
runtime/bin/file_android.cc:160: open64(name, O_RDONLY | O_CREAT | O_CLOEXEC,
0666));
On 2013/11/19 16:10:17, zra wrote:
> This change is causing a build failure on Android.

Done.

Powered by Google App Engine
This is Rietveld 408576698