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 "platform/globals.h" | 5 #include "platform/globals.h" |
6 #if defined(TARGET_OS_FUCHSIA) | 6 #if defined(TARGET_OS_FUCHSIA) |
7 | 7 |
8 #include "bin/platform.h" | 8 #include "bin/platform.h" |
9 | 9 |
10 #include <runtime/sysinfo.h> | 10 #include <runtime/sysinfo.h> |
(...skipping 10 matching lines...) Expand all Loading... |
21 char* Platform::resolved_executable_name_ = NULL; | 21 char* Platform::resolved_executable_name_ = NULL; |
22 int Platform::script_index_ = 1; | 22 int Platform::script_index_ = 1; |
23 char** Platform::argv_ = NULL; | 23 char** Platform::argv_ = NULL; |
24 | 24 |
25 bool Platform::Initialize() { | 25 bool Platform::Initialize() { |
26 return true; | 26 return true; |
27 } | 27 } |
28 | 28 |
29 | 29 |
30 int Platform::NumberOfProcessors() { | 30 int Platform::NumberOfProcessors() { |
31 return mxr_get_nprocs(); | 31 return mxr_get_nprocs_conf(); |
32 } | 32 } |
33 | 33 |
34 | 34 |
35 const char* Platform::OperatingSystem() { | 35 const char* Platform::OperatingSystem() { |
36 return "fuchsia"; | 36 return "fuchsia"; |
37 } | 37 } |
38 | 38 |
39 | 39 |
40 const char* Platform::LibraryPrefix() { | 40 const char* Platform::LibraryPrefix() { |
41 return "lib"; | 41 return "lib"; |
(...skipping 24 matching lines...) Expand all Loading... |
66 | 66 |
67 | 67 |
68 void Platform::Exit(int exit_code) { | 68 void Platform::Exit(int exit_code) { |
69 exit(exit_code); | 69 exit(exit_code); |
70 } | 70 } |
71 | 71 |
72 } // namespace bin | 72 } // namespace bin |
73 } // namespace dart | 73 } // namespace dart |
74 | 74 |
75 #endif // defined(TARGET_OS_FUCHSIA) | 75 #endif // defined(TARGET_OS_FUCHSIA) |
OLD | NEW |