Index: runtime/bin/utils_linux.cc |
diff --git a/runtime/bin/utils_linux.cc b/runtime/bin/utils_linux.cc |
index ea6ef8c28b7c1f33f1e4fd31b6e22be3d06629e7..2029071abebae223b5e3d1cb21f85d6b1d06d9f7 100644 |
--- a/runtime/bin/utils_linux.cc |
+++ b/runtime/bin/utils_linux.cc |
@@ -14,7 +14,6 @@ |
#include "platform/assert.h" |
#include "platform/utils.h" |
- |
namespace dart { |
namespace bin { |
@@ -41,41 +40,49 @@ void OSError::SetCodeAndMessage(SubSystem sub_system, int code) { |
} |
} |
+ |
const char* StringUtils::ConsoleStringToUtf8( |
const char* str, intptr_t len, intptr_t* result_len) { |
UNIMPLEMENTED(); |
return NULL; |
} |
+ |
const char* StringUtils::Utf8ToConsoleString( |
const char* utf8, intptr_t len, intptr_t* result_len) { |
UNIMPLEMENTED(); |
return NULL; |
} |
+ |
char* StringUtils::ConsoleStringToUtf8( |
char* str, intptr_t len, intptr_t* result_len) { |
UNIMPLEMENTED(); |
return NULL; |
} |
+ |
char* StringUtils::Utf8ToConsoleString( |
char* utf8, intptr_t len, intptr_t* result_len) { |
UNIMPLEMENTED(); |
return NULL; |
} |
+ |
bool ShellUtils::GetUtf8Argv(int argc, char** argv) { |
return false; |
} |
+ |
void TimerUtils::InitOnce() { |
} |
+ |
int64_t TimerUtils::GetCurrentMonotonicMillis() { |
return GetCurrentMonotonicMicros() / 1000; |
} |
+ |
int64_t TimerUtils::GetCurrentMonotonicMicros() { |
struct timespec ts; |
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) { |
@@ -89,6 +96,7 @@ int64_t TimerUtils::GetCurrentMonotonicMicros() { |
return result; |
} |
+ |
void TimerUtils::Sleep(int64_t millis) { |
struct timespec req; // requested. |
struct timespec rem; // remainder. |