| 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_ANDROID) | 6 #if defined(TARGET_OS_ANDROID) |
| 7 | 7 |
| 8 #include <errno.h> // NOLINT | 8 #include <errno.h> // NOLINT |
| 9 #include <netdb.h> // NOLINT | 9 #include <netdb.h> // NOLINT |
| 10 #include <sys/time.h> // NOLINT | 10 #include <sys/time.h> // NOLINT |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 | 66 |
| 67 char* StringUtils::Utf8ToConsoleString( | 67 char* StringUtils::Utf8ToConsoleString( |
| 68 char* utf8, intptr_t len, intptr_t* result_len) { | 68 char* utf8, intptr_t len, intptr_t* result_len) { |
| 69 UNIMPLEMENTED(); | 69 UNIMPLEMENTED(); |
| 70 return NULL; | 70 return NULL; |
| 71 } | 71 } |
| 72 | 72 |
| 73 | 73 |
| 74 char* StringUtils::StrNDup(const char* s, intptr_t n) { |
| 75 return strndup(s, n); |
| 76 } |
| 77 |
| 78 |
| 74 bool ShellUtils::GetUtf8Argv(int argc, char** argv) { | 79 bool ShellUtils::GetUtf8Argv(int argc, char** argv) { |
| 75 return false; | 80 return false; |
| 76 } | 81 } |
| 77 | 82 |
| 78 | 83 |
| 79 void TimerUtils::InitOnce() { | 84 void TimerUtils::InitOnce() { |
| 80 } | 85 } |
| 81 | 86 |
| 82 | 87 |
| 83 int64_t TimerUtils::GetCurrentMonotonicMillis() { | 88 int64_t TimerUtils::GetCurrentMonotonicMillis() { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 ASSERT(errno == EINTR); | 122 ASSERT(errno == EINTR); |
| 118 // Copy remainder into requested and repeat. | 123 // Copy remainder into requested and repeat. |
| 119 req = rem; | 124 req = rem; |
| 120 } | 125 } |
| 121 } | 126 } |
| 122 | 127 |
| 123 } // namespace bin | 128 } // namespace bin |
| 124 } // namespace dart | 129 } // namespace dart |
| 125 | 130 |
| 126 #endif // defined(TARGET_OS_ANDROID) | 131 #endif // defined(TARGET_OS_ANDROID) |
| OLD | NEW |