| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_OS_FUCHSIA) | 6 #if defined(TARGET_OS_FUCHSIA) |
| 7 | 7 |
| 8 #include "vm/os.h" | 8 #include "vm/os.h" |
| 9 | 9 |
| 10 #include <errno.h> | 10 #include <errno.h> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 "Generate events symbols for profiling with perf"); | 23 "Generate events symbols for profiling with perf"); |
| 24 | 24 |
| 25 #endif // !PRODUCT | 25 #endif // !PRODUCT |
| 26 | 26 |
| 27 const char* OS::Name() { | 27 const char* OS::Name() { |
| 28 return "fuchsia"; | 28 return "fuchsia"; |
| 29 } | 29 } |
| 30 | 30 |
| 31 | 31 |
| 32 intptr_t OS::ProcessId() { | 32 intptr_t OS::ProcessId() { |
| 33 UNIMPLEMENTED(); | 33 return static_cast<intptr_t>(getpid()); |
| 34 return 0; | |
| 35 } | 34 } |
| 36 | 35 |
| 37 | 36 |
| 38 const char* OS::GetTimeZoneName(int64_t seconds_since_epoch) { | 37 const char* OS::GetTimeZoneName(int64_t seconds_since_epoch) { |
| 39 UNIMPLEMENTED(); | 38 UNIMPLEMENTED(); |
| 40 return ""; | 39 return ""; |
| 41 } | 40 } |
| 42 | 41 |
| 43 | 42 |
| 44 int OS::GetTimeZoneOffsetInSeconds(int64_t seconds_since_epoch) { | 43 int OS::GetTimeZoneOffsetInSeconds(int64_t seconds_since_epoch) { |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 } | 303 } |
| 305 | 304 |
| 306 | 305 |
| 307 void OS::Exit(int code) { | 306 void OS::Exit(int code) { |
| 308 UNIMPLEMENTED(); | 307 UNIMPLEMENTED(); |
| 309 } | 308 } |
| 310 | 309 |
| 311 } // namespace dart | 310 } // namespace dart |
| 312 | 311 |
| 313 #endif // defined(TARGET_OS_FUCHSIA) | 312 #endif // defined(TARGET_OS_FUCHSIA) |
| OLD | NEW |