| 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_MACOS) | 6 #if defined(HOST_OS_MACOS) |
| 7 | 7 |
| 8 #include "bin/file.h" | 8 #include "bin/file.h" |
| 9 | 9 |
| 10 #include <copyfile.h> // NOLINT | 10 #include <copyfile.h> // NOLINT |
| 11 #include <errno.h> // NOLINT | 11 #include <errno.h> // NOLINT |
| 12 #include <fcntl.h> // NOLINT | 12 #include <fcntl.h> // NOLINT |
| 13 #include <libgen.h> // NOLINT | 13 #include <libgen.h> // NOLINT |
| 14 #include <limits.h> // NOLINT | 14 #include <limits.h> // NOLINT |
| 15 #include <sys/mman.h> // NOLINT | 15 #include <sys/mman.h> // NOLINT |
| 16 #include <sys/stat.h> // NOLINT | 16 #include <sys/stat.h> // NOLINT |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 } | 575 } |
| 576 return ((file_1_info.st_ino == file_2_info.st_ino) && | 576 return ((file_1_info.st_ino == file_2_info.st_ino) && |
| 577 (file_1_info.st_dev == file_2_info.st_dev)) | 577 (file_1_info.st_dev == file_2_info.st_dev)) |
| 578 ? File::kIdentical | 578 ? File::kIdentical |
| 579 : File::kDifferent; | 579 : File::kDifferent; |
| 580 } | 580 } |
| 581 | 581 |
| 582 } // namespace bin | 582 } // namespace bin |
| 583 } // namespace dart | 583 } // namespace dart |
| 584 | 584 |
| 585 #endif // defined(TARGET_OS_MACOS) | 585 #endif // defined(HOST_OS_MACOS) |
| OLD | NEW |