| 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(TARGET_OS_MACOS) |
| 7 | 7 |
| 8 #include <errno.h> // NOLINT | 8 #include <errno.h> // NOLINT |
| 9 #include <mach/clock.h> // NOLINT | 9 #include <mach/clock.h> // NOLINT |
| 10 #include <mach/mach.h> // NOLINT | 10 #include <mach/mach.h> // NOLINT |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } | 70 } |
| 71 | 71 |
| 72 | 72 |
| 73 char* StringUtils::Utf8ToConsoleString( | 73 char* StringUtils::Utf8ToConsoleString( |
| 74 char* utf8, intptr_t len, intptr_t* result_len) { | 74 char* utf8, intptr_t len, intptr_t* result_len) { |
| 75 UNIMPLEMENTED(); | 75 UNIMPLEMENTED(); |
| 76 return NULL; | 76 return NULL; |
| 77 } | 77 } |
| 78 | 78 |
| 79 | 79 |
| 80 char* StringUtils::StrNDup(const char* s, intptr_t n) { |
| 81 return strndup(s, n); |
| 82 } |
| 83 |
| 84 |
| 80 bool ShellUtils::GetUtf8Argv(int argc, char** argv) { | 85 bool ShellUtils::GetUtf8Argv(int argc, char** argv) { |
| 81 return false; | 86 return false; |
| 82 } | 87 } |
| 83 | 88 |
| 84 | 89 |
| 85 static mach_timebase_info_data_t timebase_info; | 90 static mach_timebase_info_data_t timebase_info; |
| 86 | 91 |
| 87 | 92 |
| 88 void TimerUtils::InitOnce() { | 93 void TimerUtils::InitOnce() { |
| 89 kern_return_t kr = mach_timebase_info(&timebase_info); | 94 kern_return_t kr = mach_timebase_info(&timebase_info); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 ASSERT(errno == EINTR); | 159 ASSERT(errno == EINTR); |
| 155 // Copy remainder into requested and repeat. | 160 // Copy remainder into requested and repeat. |
| 156 req = rem; | 161 req = rem; |
| 157 } | 162 } |
| 158 } | 163 } |
| 159 | 164 |
| 160 } // namespace bin | 165 } // namespace bin |
| 161 } // namespace dart | 166 } // namespace dart |
| 162 | 167 |
| 163 #endif // defined(TARGET_OS_MACOS) | 168 #endif // defined(TARGET_OS_MACOS) |
| OLD | NEW |