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

Issue 9346015: Change file opening operation to set position at the end of the file when FileMode.APPEND is used. (Closed)

Created:
8 years, 10 months ago by ricow1
Modified:
8 years, 10 months ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Change file opening operation to set position at the end of the file when FileMode.APPEND is used. Additionally, allow File.openOutputStream to take a FileMode enum (only FileMode.WRITE and FileMode.APPEND is allowed). Committed: https://code.google.com/p/dart/source/detail?r=3984

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 12

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -5 lines) Patch
M runtime/bin/file.dart View 1 2 3 2 chunks +12 lines, -2 lines 0 comments Download
M runtime/bin/file_impl.dart View 1 2 3 2 chunks +10 lines, -3 lines 0 comments Download
M runtime/bin/file_linux.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/file_macos.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/file_win.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M tests/standalone/src/FileTest.dart View 1 2 2 chunks +59 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ricow1
8 years, 10 months ago (2012-02-07 08:25:30 UTC) #1
Mads Ager (google)
https://chromiumcodereview.appspot.com/9346015/diff/3001/runtime/bin/file.dart File runtime/bin/file.dart (right): https://chromiumcodereview.appspot.com/9346015/diff/3001/runtime/bin/file.dart#newcode109 runtime/bin/file.dart:109: * not truncated and that the position is set ...
8 years, 10 months ago (2012-02-07 08:37:31 UTC) #2
ricow1
https://chromiumcodereview.appspot.com/9346015/diff/3001/runtime/bin/file.dart File runtime/bin/file.dart (right): https://chromiumcodereview.appspot.com/9346015/diff/3001/runtime/bin/file.dart#newcode109 runtime/bin/file.dart:109: * not truncated and that the position is set ...
8 years, 10 months ago (2012-02-07 09:16:22 UTC) #3
Mads Ager (google)
8 years, 10 months ago (2012-02-07 09:23:27 UTC) #4
LGTM!

https://chromiumcodereview.appspot.com/9346015/diff/3003/runtime/bin/file_lin...
File runtime/bin/file_linux.cc (right):

https://chromiumcodereview.appspot.com/9346015/diff/3003/runtime/bin/file_lin...
runtime/bin/file_linux.cc:121: ASSERT(position >= 0);
return NULL instead?

Powered by Google App Engine
This is Rietveld 408576698