6#if defined(DART_HOST_OS_FUCHSIA)
9#include <zircon/syscalls.h>
10#include <zircon/types.h>
23void OSError::Reload() {
24 SetCodeAndMessage(kSystem, errno);
27void OSError::SetCodeAndMessage(SubSystem sub_system,
int code) {
28 set_sub_system(sub_system);
30 if (sub_system == kSystem) {
34 }
else if (sub_system == kGetAddressInfo) {
41const char* StringUtils::ConsoleStringToUtf8(
const char* str,
43 intptr_t* result_len) {
47const char* StringUtils::Utf8ToConsoleString(
const char*
utf8,
49 intptr_t* result_len) {
53char* StringUtils::ConsoleStringToUtf8(
char* str,
55 intptr_t* result_len) {
59char* StringUtils::Utf8ToConsoleString(
char*
utf8,
61 intptr_t* result_len) {
65bool ShellUtils::GetUtf8Argv(
int argc,
char**
argv) {
71int64_t TimerUtils::GetCurrentMonotonicMillis() {
72 return GetCurrentMonotonicMicros() / 1000;
75int64_t TimerUtils::GetCurrentMonotonicMicros() {
76 zx_time_t ticks = zx_clock_get_monotonic();
80void TimerUtils::Sleep(int64_t millis) {
static const size_t kBufferSize
constexpr uint64_t kMicrosecondsPerMillisecond
bool InitOnce(char **error)
constexpr intptr_t kNanosecondsPerMicrosecond