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