| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 <errno.h> | 5 #include <errno.h> |
| 6 #include <fcntl.h> | 6 #include <fcntl.h> |
| 7 #include <sys/stat.h> | 7 #include <sys/stat.h> |
| 8 #include <unistd.h> | 8 #include <unistd.h> |
| 9 #include <libgen.h> | 9 #include <libgen.h> |
| 10 | 10 |
| 11 #include "bin/builtin.h" |
| 11 #include "bin/file.h" | 12 #include "bin/file.h" |
| 12 | 13 |
| 13 class FileHandle { | 14 class FileHandle { |
| 14 public: | 15 public: |
| 15 explicit FileHandle(int fd) : fd_(fd) { } | 16 explicit FileHandle(int fd) : fd_(fd) { } |
| 16 ~FileHandle() { } | 17 ~FileHandle() { } |
| 17 int fd() const { return fd_; } | 18 int fd() const { return fd_; } |
| 18 void set_fd(int fd) { fd_ = fd; } | 19 void set_fd(int fd) { fd_ = fd; } |
| 19 | 20 |
| 20 private: | 21 private: |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 120 |
| 120 | 121 |
| 121 const char* File::PathSeparator() { | 122 const char* File::PathSeparator() { |
| 122 return "/"; | 123 return "/"; |
| 123 } | 124 } |
| 124 | 125 |
| 125 | 126 |
| 126 const char* File::StringEscapedPathSeparator() { | 127 const char* File::StringEscapedPathSeparator() { |
| 127 return "/"; | 128 return "/"; |
| 128 } | 129 } |
| OLD | NEW |