| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/globals.h" | 5 #include "platform/globals.h" |
| 6 #if defined(TARGET_OS_WINDOWS) | 6 #if defined(TARGET_OS_WINDOWS) |
| 7 | 7 |
| 8 #include "bin/file.h" | 8 #include "bin/file.h" |
| 9 | 9 |
| 10 #include <fcntl.h> // NOLINT | 10 #include <fcntl.h> // NOLINT |
| 11 #include <io.h> // NOLINT | 11 #include <io.h> // NOLINT |
| 12 #include <stdio.h> // NOLINT | 12 #include <stdio.h> // NOLINT |
| 13 #include <string.h> // NOLINT | 13 #include <string.h> // NOLINT |
| 14 #include <sys/stat.h> // NOLINT | 14 #include <sys/stat.h> // NOLINT |
| 15 #include <WinIoCtl.h> // NOLINT | 15 #include <WinIoCtl.h> // NOLINT |
| 16 | 16 |
| 17 #include "bin/builtin.h" | 17 #include "bin/builtin.h" |
| 18 #include "bin/log.h" | 18 #include "bin/log.h" |
| 19 #include "bin/utils.h" |
| 19 | 20 |
| 20 | 21 |
| 21 namespace dart { | 22 namespace dart { |
| 22 namespace bin { | 23 namespace bin { |
| 23 | 24 |
| 24 class FileHandle { | 25 class FileHandle { |
| 25 public: | 26 public: |
| 26 explicit FileHandle(int fd) : fd_(fd) { } | 27 explicit FileHandle(int fd) : fd_(fd) { } |
| 27 ~FileHandle() { } | 28 ~FileHandle() { } |
| 28 int fd() const { return fd_; } | 29 int fd() const { return fd_; } |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 return kIdentical; | 553 return kIdentical; |
| 553 } else { | 554 } else { |
| 554 return kDifferent; | 555 return kDifferent; |
| 555 } | 556 } |
| 556 } | 557 } |
| 557 | 558 |
| 558 } // namespace bin | 559 } // namespace bin |
| 559 } // namespace dart | 560 } // namespace dart |
| 560 | 561 |
| 561 #endif // defined(TARGET_OS_WINDOWS) | 562 #endif // defined(TARGET_OS_WINDOWS) |
| OLD | NEW |