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

Issue 12812010: dart:io | Add Link.targetSync on all platforms. (Closed)

Created:
7 years, 9 months ago by Bill Hesse
Modified:
7 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

dart:io | Add Link.targetSync on all platforms. BUG= Committed: https://code.google.com/p/dart/source/detail?r=20195

Patch Set 1 #

Patch Set 2 : Fix Windows failures. #

Total comments: 2

Patch Set 3 : Improve copying of target string on Windows. #

Total comments: 13

Patch Set 4 : Improve error handling on Windows. #

Total comments: 1

Patch Set 5 : Fix memory leak. Improve OS error for Link.target of a non-link. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -11 lines) Patch
M runtime/bin/builtin_natives.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/file.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/file.cc View 1 chunk +26 lines, -2 lines 0 comments Download
M runtime/bin/file_android.cc View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M runtime/bin/file_linux.cc View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M runtime/bin/file_macos.cc View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M runtime/bin/file_patch.dart View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/file_win.cc View 1 2 3 4 2 chunks +98 lines, -0 lines 4 comments Download
M sdk/lib/_internal/compiler/implementation/lib/io_patch.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/io/file_impl.dart View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/io/link.dart View 1 2 5 chunks +44 lines, -9 lines 0 comments Download
M tests/standalone/io/file_system_links_test.dart View 3 chunks +6 lines, -0 lines 0 comments Download
M tests/standalone/io/link_test.dart View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/io/windows_file_system_links_test.dart View 1 4 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Bill Hesse
7 years, 9 months ago (2013-03-15 13:37:20 UTC) #1
Bill Hesse
https://codereview.chromium.org/12812010/diff/15/runtime/bin/file_win.cc File runtime/bin/file_win.cc (right): https://codereview.chromium.org/12812010/diff/15/runtime/bin/file_win.cc#newcode321 runtime/bin/file_win.cc:321: target += 4; We really need to copy the ...
7 years, 9 months ago (2013-03-18 09:05:54 UTC) #2
Søren Gjesse
LGTM, with comments https://codereview.chromium.org/12812010/diff/8001/runtime/bin/file.cc File runtime/bin/file.cc (right): https://codereview.chromium.org/12812010/diff/8001/runtime/bin/file.cc#newcode458 runtime/bin/file.cc:458: Dart_Handle err = DartUtils::NewDartOSError(); For Windows ...
7 years, 9 months ago (2013-03-18 12:28:03 UTC) #3
Bill Hesse
Made many changes to file_win.cc, so please take a look at it. Thanx. https://codereview.chromium.org/12812010/diff/8001/runtime/bin/file.cc File ...
7 years, 9 months ago (2013-03-18 16:13:27 UTC) #4
Søren Gjesse
lgtm https://codereview.chromium.org/12812010/diff/10002/runtime/bin/file_win.cc File runtime/bin/file_win.cc (right): https://codereview.chromium.org/12812010/diff/10002/runtime/bin/file_win.cc#newcode346 runtime/bin/file_win.cc:346: // Remove "\??\" from beginning of target. Don't ...
7 years, 9 months ago (2013-03-19 09:40:29 UTC) #5
Bill Hesse
7 years, 9 months ago (2013-03-19 10:34:03 UTC) #6
https://codereview.chromium.org/12812010/diff/10002/runtime/bin/file_win.cc
File runtime/bin/file_win.cc (right):

https://codereview.chromium.org/12812010/diff/10002/runtime/bin/file_win.cc#n...
runtime/bin/file_win.cc:346: // Remove "\??\" from beginning of target.
On 2013/03/19 09:40:29, Søren Gjesse wrote:
> Don't you mean \\?\ here?

No, I really mean \??\.  This is what is used in junctions, not \\?\.  I thought
it was a mistake too, but this is what it is.  This is also in the Chromium
code.

Powered by Google App Engine
This is Rietveld 408576698